OPEN-SOURCE SCRIPT
تم تحديثه

Triple Close Indicator (TCI)

2 018
Triple Close Indicator (TCI)
Overview:
The Triple Close Indicator (TCI) is a trend-following and entry signal tool designed to simplify market decision-making. Using a 50-period moving average (MA) as the primary trend filter, TCI identifies consecutive close patterns to generate high-probability bullish and bearish entry signals. Its clean design ensures minimal chart clutter while highlighting actionable points.

How It Works:

Trend Identification

The 50 MA is the core trend filter:

Price above 50 MA → bullish trend

Price below 50 MA → bearish trend

Signal Lines (Green/Red Lines)

Green Line: Marks every 3rd consecutive higher close

Red Line: Marks every 3rd consecutive lower close

Signal lines extend 6 bars forward for reference

Users can customize line width, transparency, and style (solid/dotted)

Entry Signals (Triangles)

Bullish Entry:

Green line above 50 MA → look for a candle closing above this line within the next configurable lookback window (default 5 bars)

Red line above 50 MA → if a candle closes above this line within the lookback window, bullish entry is triggered

Bearish Entry:

Red line below 50 MA → look for a candle closing below this line within the lookback window

Green line below 50 MA → if a candle closes below this line within the lookback window, bearish entry is triggered

Visuals

50 MA line – yellow, main trend filter

Signal lines – green/red with customizable width, transparency, and style

Entry triangles – lime for bullish, red for bearish

Alerts are available for real-time notifications

How to Use Effectively:

Trend Confirmation

Only take long entries above 50 MA and short entries below 50 MA

Avoid counter-trend entries to reduce false signals

Signal Validation

Wait for a candle close beyond the signal line to confirm the entry

Use the configurable lookback window to capture the most recent valid candle

Combine with Other Filters (Optional)

Use volume, ATR, or RSI to filter low-probability setups

Multi-timeframe analysis can enhance signal reliability

Alerts

Use built-in TradingView alerts for real-time execution

Customize messages for notifications on mobile, email, or webhook

Inputs & Customization:

MA Type & Length: Choose SMA, EMA, WMA, or VWMA for 50 MA

Signal Line Colors: Green (bullish), Red (bearish)

Line Width & Transparency: Adjust visual clarity

Line Style: Solid or Dotted

Lookback Window: Number of bars to check for valid entry after a signal line

Best Practices:

Use higher timeframes (1H, 4H, daily) for more reliable signals

Avoid trading in tight consolidation zones; the indicator works best in trending markets

Combine with risk management: define stop-loss below/above signal lines or ATR multiples
ملاحظات الأخبار
Triple Close Indicator (TCI) — v1.2
A clean and flexible tool to spot momentum shifts and reversal zones based on triple-close sequences.
Includes optional MA-based trend filtering, complete visual customization, and reliable alerting — designed for traders who value clarity and confluence.
Turn the Trend Filter MA on or off as needed, or hide the MA line from the Style section for a minimalist look.

🔷 Triple Close Indicator (TCI) — v1.2 Update Highlights

The v1.2 update brings major usability and visual customization improvements while keeping the core logic intact.

🆕 What’s New

Trend Filter ON/OFF Option
Enable or disable Moving Average (MA)-based trend filtering. When enabled, entries align with MA direction. When disabled, pure triple-close logic applies.

Enhanced Customization
Full control over:
• MA type (SMA, EMA, WMA, VWMA) and length
• MA color and transparency
• Signal line width, style (solid/dotted), and transparency
• Entry triangle size (Tiny/Small/Normal), color, and transparency

Always-Visible MA Line
The MA line remains plotted for reference.
If you prefer not to display it, simply uncheck “Trend Filter MA” from the Style panel.

Improved Alerts & Tooltips
Clear tooltips for every option and precise alert conditions for bullish and bearish entries.

⚙️ How to Use

Core Logic: Detects three consecutive closes in one direction and triggers entry signals upon confirmation.

With Trend Filter: Generates filtered entries aligned with the selected MA trend.

Without Trend Filter: Displays pure momentum signals — ideal for identifying potential reversals.

Signal Lines: Short horizontal markers highlight triple-close zones that often act as future support or resistance.

💡 Pro Tip

Use TCI with other indicators or candlestick setups for confirmation.
Bullish triangles near support or bearish triangles near resistance offer powerful reversal entries.

إخلاء المسؤولية

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.