This indicator highlights the 20th bar from the current bar and has the below applications for trading the HG Scalpius system:
- Determining if trend mode off switch is triggered, failing to set a new higher (lower) close in the trend with 20 bars
- Determining the highest (lowest) bar in the previous range to decide if a trade is high & tight
bars_back = input(defval=20, minval=0, title="Bars Back")
bgcolor(#9C27B0, offset=-bars_back, show_last=1)
If you come across or think of any other useful scripts for the HG Scalpius system please comment below!
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.