[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Metastock Coding - how to count the number of day based on given condition?



PureBytes Links

Trading Reference Links

Does anyone know how to code the following condition?

If current closing price is 10, then I would like to look for the price 
from the historical data, which was cross above or below 10 level, and 
select the first one to meet the requirement. After that it returns the 
number of day back for this condition from the current period?
Such as

23 Feb, 2006      10  [Today]
21 Feb, 2006      11
20 Feb, 2006      9.5 

then return 2 days from 23 Feb 2006

Does anyone have any suggestion?
Thank you in advance
Eric







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/