SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Ron Oda who wrote (7936)11/29/1998 2:31:00 AM
From: Boom Dog  Read Replies (1) of 11149
 
Handling stocks < 2 yrs old

Hi, Ron

In QP2 you can use the DaysLoaded variable to find out how many days of data there are. Then you can do something like this:

float oldmax;
DaysRequired = 22; // Makes sure at least 22 days of data

if (DaysLoaded >= 471) then
oldmax := max(-21,-470,hi);
else
oldmax := max(-21,1-DaysLoaded,hi);
endif

and then do your comparison: Max(0, -20, hi)>=oldmax*.95
and thus handle younger stocks...

Yours,

Boom Dog
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext