OPEN-SOURCE SCRIPT

[FGL] Stochastic ATR Trend Indicator

215
This indicator:
  1. Detects trend direction using ATR-based dynamic bands around SMA.
  2. Generates buy/sell signals using Stochastic crossover conditions filtered by trend.
  3. Colors candles to show trend direction.
  4. Plots a visual “trend zone” band on the chart.


INPUT PARAMETERS:
  • Stochastic Length → Period for the stochastic oscillator.
  • Smooth K and Smooth D → Smoothing parameters for %K and %D lines.
  • ATR Length → Period used for SMA-based trend detection.


LOGIC FLOW
  • Determine trend using long ATR-based SMA channel.
  • Detect momentum change with Stochastic cross.
  • Confirm both momentum and price align with trend.
  • Generate buy/sell signal + change candle color.


STRATEGIC INTERPRETATION
  • Best use: Trend-following momentum entries.
  • Avoids: Countertrend false signals by filtering with trend value.
  • Signals:
    • Buy: In uptrend + bullish stochastic crossover.
    • Sell: In downtrend + bearish stochastic crossover.


Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.