Discussions
»
Special Interest Groups
»
Tips & Tricks
»
Determining wether an Indicator has turned up or down
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)
|
Discussions
»
Special Interest Groups
»
Tips & Tricks
»
Determining wether an Indicator has turned up or down
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.