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

[EquisMetaStock Group] Re: ROC formula



PureBytes Links

Trading Reference Links

Well, there seems to be another way:

Try this one:

a:=Mov(C,9,S);
b:=Mov(C,21,S);
wh:=ValueWhen(1,Cross(a,b),C);
If(a>=b,C/wh-1,0)

Regards,

mc

--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> Yahya,
> 
> Your formula would require a variable lookback period for the ROC. 
> The only way to accomplish this would be to use a variable DLL of the 
> ROC.
> 
> There is one in our files section that you could use. 
> Your formula would look like this:
> 
> a:=Mov(C,9,S);
> b:=Mov(C,21,S);
> x:=If(a>=b,1,0);
> y:= BarsSince(x<1);
> ExtFml("Forum.ROC",C,y,0)
> 
> 
> Hope this helps,
> 
> Preston
> 
> 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, Yahya Kemal Beler 
> <yahyakemalbeler@> wrote:
> >
> > Hi,
> > 
> > I want to develop a formula like this:
> > 
> > a:=Mov(C,9,S);
> > b:=Mov(C,21,S);
> > x:=If(a>=b,1,0);
> > y:= BarsSince(x<1);
> > 
> > ROC(c,y,%)
> > 
> > But how?
> > 
> > Thanks
> >
>



------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/