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 -- Ignore unavailable to you. Want to Upgrade?


To: Bob Jagow who wrote (5363)7/12/1998 5:52:00 AM
From: Johan Van Houtven  Read Replies (1) | Respond to of 11149
 
Bob,

Try this list of stocks as input:

CATP
EMC
IM
AMCC
SCMM
BEST

Run the scan and you will see it does not output a high for AMCC SCMM BEST, the 3 last stocks in the list.

Basically, what I'm trying to do is to find the highest price a stock has ever traded at. If a stock has traded for more than 1 year, we'll accept the high during that year as the correct output. BUT if a stock has only traded LESS than 1 year, i.e. 50, 100 or 150 days for example, we want to check the ALL the days it has traded to determine the high during the period it has been trading.

It seems to me that one simply can not easily make a scan that MAKES SURE that it finds the high (or other item token for that matter) over ALL the days that stock has traded.

You would have to be able to determine EXACTLY how many days a stock has traded or how many days of data are available for that particular stock. And one would then use that number to calculate the 'EndDay' value for usage in Max( StartDay , EndDay , Item ).

StartDay := 0;
EndDay := -1* ( number - 1);

So if a stock has traded 155 days. One would want to get:

Max(0, -154, cl);

If anyone doesn't understand what I'm trying to do please let me know.

Max( StartDay , EndDay , Item )

Johan