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

Re: [EquisMetaStock Group] Help - Metastock coding ?



PureBytes Links

Trading Reference Links

Thank everyone for suggestions

Sum(C>REF(C,-1),days);
The code "C > Ref(C,-1)" only check with the previous one, and it 
cannot check with Ref(C,-2), Ref(C,-3), Ref(C,-4) ...

Cum(LastValue(C)>C);
which is closer to what I need, but it can only show the result for the 
last day.  If there is an approach to show the result for every day, 
then it will great, will it be the limitation for Metastock Coding?

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)+ ...

Do you have any more suggestion ?
Thank everyone
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/