Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Posts: 20
|
How to find Reference of a formula value at Peaks Or trough
I use;
Bars1:=Peakbars(1,High,5);
fmval:= Ref( fml("myindicator") , Bars1 * -1);
If i use above then I get the error that only constant values can be used in Ref() Function.
How to solve it??
Any help will be appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 4/1/2006(UTC) Posts: 135 Location: Romania
|
First i must warn u that peak and trough functions are using zig-zag and in consequence they are dynamic.
ref(fml("yourindicator"),-lastvalue(peakbars(2,h,3)))
or
valuewhen(1,peakbars(1,h,3)=0,fml("yourindicator"))
or
valuewhen(2,peakbars(1,h,3)=0,fml("yourindicator"))
first two codes are dynamic and uselles and the last one i think that it could be used for something if u really want to
:)
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Posts: 20
|
|
|
|
|
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.