OPEN-SOURCE SCRIPT

Indices trends

According to the Dow theory, indices must confirm each other. Based on this idea, I develop an indices trends indicator, including SPY, DIA, and QQQ. The indices trends were calculated based on the average of the short- (blue) and intermediate-term (orange) changes of indices moving average slopes. In addition, IWM trends are shown as a reference in gray color.

Use this indicator together with one of SPY, DIA, QQQ, or IWM to show the overall market conditions.
Moving AveragesTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer