OPEN-SOURCE SCRIPT
Cập nhật

SMA7 Tail Reversal

235
📌 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.




Phát hành các Ghi chú
// Softer candle color settings
var color longCol = #6EE7B7 // Light Green (Soft long signal)
var color shortCol = #FCA5A5 // Light Red (Soft short signal)
Phát hành các Ghi chú
without plot sma7
Phát hành các Ghi chú
sma 7
Phát hành các Ghi chú
plotbar(open, high, low, close, color=barCol)
Phát hành các Ghi chú
ALMA condition updated!
Phát hành các Ghi chú
color updated!
Phát hành các Ghi chú
rollbacked

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.