OPEN-SOURCE SCRIPT

ELHAI INDICES CHECKER

Description
The Major Indices Trend Checker is a powerful TradingView indicator designed to monitor the trend synchronization of the three major U.S. stock indices:
✅ S&P 500 (SPX)
✅ Nasdaq 100 (NDX)
✅ Dow Jones Industrial Average (DJI)

This indicator checks whether all three indices are bullish or bearish during each candle formation. If one of them is out of sync (e.g., two indices are bullish while one is bearish), the indicator triggers an alert and highlights the background in red, helping traders identify potential market indecision or divergence.

Key Features
📌 Live Market Monitoring – Works in real-time, updating dynamically with every tick.
📌 Bullish/Bearish Trend Check – Confirms if all three indices are aligned in the same trend.
📌 Mismatched Trend Detection – Alerts you when at least one index is not following the others.
📌 Custom Alerts – Set up TradingView alerts to notify you when a trend mismatch occurs.
📌 Visual Background Highlight – Red background indicates an out-of-sync market.

How It Works
The script retrieves open and close prices for SPX, NDX, and DJI.
Determines whether each index is bullish (close > open) or bearish (close < open).
If all three indices are bullish or all are bearish, it remains neutral.
If one index is out of sync, an alert is triggered and the background turns red.
How to Use
Apply the indicator to your TradingView chart.
Select any timeframe – it works on all intraday, daily, and higher timeframes.
Enable alerts: Go to Alerts → Create Alert, select "Trend Mismatch", and choose how often you want to be notified.
Use it with other indicators for confirmation, such as moving averages, RSI, or MACD.
Best Use Cases
✔ Day traders & scalpers – Spot market uncertainty early in the session.
✔ Swing traders – Identify moments when markets lack alignment before making a move.
✔ Trend followers – Avoid entering trades when major indices disagree on direction.

Final Notes
This indicator helps you stay ahead of market indecision by highlighting divergence among major indices. Use it as a confirmation tool alongside your strategy to improve your market timing and decision-making.

Wyłączenie odpowiedzialności