logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Ben_Zurich  
#1 Posted : Thursday, February 8, 2007 12:48:29 AM(UTC)
Ben_Zurich

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/4/2006(UTC)
Posts: 57
Location: Zurich, Switzerland

maybe this is also of use to you or maybe somebody has a more elegant way of doing this?

{Turning UP}
Daysback:=4;
Trigger:=0.00;
Indicater:=Fml("call the indicator here");
MtmLow:=LLV(Ref(Indicater,-1),Daysback);

((Indicater-MtmLow)/Abs(Indicater))>Trigger;

________________________________________________

{Turning DOWN}
Daysback:=4;
Trigger:=0.00;
Indicater:=Fml("call the indicator here");
MtmHigh:=HHV(Ref(Indicater,-1),Daysback);

((MtmHigh-Indicater)/Abs(Indicater))>Trigger;

____________________________________________

Instead of Indicater:=Fml...
you could of course plug in an indicator and its parameters directly, like
Indicater:=Mov(C,55,E)


Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.