OPEN-SOURCE SCRIPT
Telah dikemas kini

SMA7 Tail Reversal

322
📌 Description:
The SMA7 Tail Reversal indicator is designed to identify potential counter-trend trading opportunities by checking if candle wicks (tails) respect a key moving average level (SMA7).
This indicator highlights price action where candles are clearly separated from the moving average, suggesting a possible reversal or temporary correction.

📌 How It Works:
  1. Moving Average Calculation:
    Calculates a simple moving average (SMA) of length 7 to act as the primary trend filter.

  2. Candle Classification:

    Bullish Candle: A candle where the closing price is higher than the opening price, with a short upper wick.

    Bearish Candle: A candle where the closing price is lower than the opening price, with a short lower wick.

  3. Conditions for Coloring Candles:
    Long Condition (Green Candle):

    High & Low are both below the SMA7 line.

    Volume is above the 20-period average.

    A bullish candle is detected.

    Short Condition (Red Candle):

    High & Low are both above the SMA7 line.

    Volume is above the 20-period average.

    A bearish candle is detected.


📌 Visual Representation:
Green Candles: Potential long signals when price action stays below the SMA7 line.
Red Candles: Potential short signals when price action stays above the SMA7 line.
Yellow Line: SMA7, used as the dynamic threshold for signal generation.


📌 Usage:
Best applied to volatile markets with clear trends.
Effective in detecting counter-trend opportunities where price diverges from the SMA7 line.
Works well with additional confirmation tools for better accuracy.




Nota Keluaran
// Softer candle color settings
var color longCol = #6EE7B7 // Light Green (Soft long signal)
var color shortCol = #FCA5A5 // Light Red (Soft short signal)
Nota Keluaran
without plot sma7
Nota Keluaran
sma 7
Nota Keluaran
plotbar(open, high, low, close, color=barCol)
Nota Keluaran
ALMA condition updated!
Nota Keluaran
color updated!
Nota Keluaran
rollbacked
Nota Keluaran
Zigzag mode updated
Nota Keluaran
no zigzag
Nota Keluaran
Zigzag styled dotted

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.