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

[EquisMetaStock Group] Help - Metastock coding ?



PureBytes Links

Trading Reference Links

I would like to count the number of occurrence based on the current 
close price, such as loading 1000 days of data, which close price is 
higher that the current one.

It can be simply coded as following, but many codes need to be written
If(C > Ref(C,-1),1,0)+
If(C > Ref(C,-2),1,0)+
If(C > Ref(C,-3),1,0)+
If(C > Ref(C,-4),1,0)+
If(C > Ref(C,-5),1,0)+ ...

Does anyone know any simple code on doing this kind of calculation? 
Thank anyone for suggestion
Eric







 
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/