Rank: Member
Groups: Registered, Registered Users Joined: 8/19/2011(UTC) Posts: 16
|
I want to find the Maximum & Minimum values in the indicator after it has crossed the zero line. I am looking at this in a histogram style.
For eg.. when the indicator crosses above zero. Assume there were 15 bars above zero before it crossed below zero. And suppose the 12th bar carried the highest value. How would find this value?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Pakki
This seems to do what you want. Just substitute your custom formula for MACD() in variable "A".
A:=MACD();
B:=Cross(A,0);
D:=Cross(0,A);
F:=HighestSince(1,B,A);
G:=LowestSince(1,D,A);
ValueWhen(1,B+D,If(B,G,F));
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 8/19/2011(UTC) Posts: 16
|
Thanks Roy,
Precise solution provided. Excellent
Pakki
|
|
|
|
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.