Registered User Joined: 6/24/2012 Posts: 35
|
Hi Bruce,
I want to create a counter for a dashboard which shows the number of bars since a crossover in either direction has occurred. This is beyond me, but I am hoping that you can help with this challenge.
Thanks
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
Try this. This checks for crossovers in either directly in the last 50 bars. If you find it necessary you can increase or decrease the look back parameter (50) below.
SinceTrue(XUP((MaxH9 + MinL9) / 2 , (MaxH26 + MinL26) / 2) OR XDOWN((MaxH9 + MinL9) / 2 , (MaxH26 + MinL26) / 2), 50)
|
Registered User Joined: 6/24/2012 Posts: 35
|
thank you, it looks like that may do the trick!
|