PoshTrader

SFX Trend or Range

A remarkably simple but very useful indicator. Earlier and clearer signals than ADX or VHF. More positive ranging signal than any other indicators.

Aqua = ATR
Orange = StdDev
Red = Smoothed Moving Average of the StdDev


Usage:

Any pair, any time frame. Best used on majors and M15 period or higher

  • Orange breaks above Red when below Aqua = Trend building
  • Orange breaks below Red when above Aqua = Trend exhausting
  • Orange below Red when below Aqua = Ranging/Sideways market
Open-source script

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study(title="SFX Trend or Range", shorttitle="SFX TOR")

ATR_len = input(12, title="ATR Length")
StdDev_len = input(12, title="StdDev Length")
SMA_len = input(3, title="SMA Length")


ATR = atr(ATR_len)
StdDev = stdev(close, StdDev_len)
SMA = sma(StdDev, SMA_len)


plot(ATR, linewidth=2, color=aqua, title="ATR")
plot(StdDev, color=orange, title="StdDev")
plot(SMA, color=red, title="SMA")