INVITE-ONLY SCRIPT

ANN TREND SPX500 1m-1H

55
Happy Trading! This is a collection of nine artificial neural networks (ANNs) trained on the S&P 500 to forecast uptrends, downtrends, or ranging markets. Each ANN is trained on one of the following timeframes: 1m, 2m, 3m, 5m, 10m, 15m, 30m, 45m, and 60m, and the appropriate model is selected automatically.

This indicator is the successor to my previous ANN Trend Prediction, now featuring improved feature vectors, refined backpropagation, and a stronger focus on asset- and timeframe-specific patterns for more precise predictions.

Settings

In the settings menu, you’ll find three options:

  • Indicator Timeframe – Choose between 1m and 1H.
  • Lookback – Define how many previous bars the ANN should use in its calculations.
  • Range Filter – Enable a third class, Ranging, in addition to Uptrend and Downtrend.


Alerts

The indicator generates two types of alert signals:

Trade Signal:
-1 = Uptrend
0 = Ranging
1 = Downtrend

Signal Age: Counts the number of bars since the last signal change.


Cheers

Disclaimer

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.