Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Bars since tenkan/kijun cross Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mikemacdonald2006
Posted : Tuesday, January 23, 2018 4:51:04 PM
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

StockGuy
Posted : Tuesday, January 23, 2018 7:36:15 PM

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)

 

mikemacdonald2006
Posted : Tuesday, January 23, 2018 10:15:41 PM
Registered User
Joined: 6/24/2012
Posts: 35

thank you, it looks like that may do the trick!

Users browsing this topic
Guest-1

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.