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

Notification

Icon
Error

Options
Go to last post Go to first unread
pakki  
#1 Posted : Friday, August 19, 2011 5:43:00 AM(UTC)
pakki

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?
mstt  
#2 Posted : Sunday, August 21, 2011 5:40:23 PM(UTC)
mstt

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
pakki  
#3 Posted : Wednesday, September 7, 2011 9:22:31 PM(UTC)
pakki

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.