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
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
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")