Guide
How does the ANN 2 signals strategy work ?
The ANN 2 signals strategy leverages two different Artificial Neural Network (ANN) predictions to determine trade entry and exit points based on price direction. The unique facet of this approach is it requires both ANN predictions to agree on the trend direction before initiating a trade. A long position is opened when both predictions suggest the price will go lower than a defined negative threshold, while a short position is opened when both predictions are above a positive threshold.
Utilizing two timeframes, a larger and a smaller one, the strategy computes the relative change of the average price (OHLC4) between the current and previous bar. The ANN takes these relative changes as input for predictions—one ANN for entry and the other for exit.
If the predictions later diverge, the strategy closes the corresponding position. For instance, if either the entry or exit prediction crosses over the threshold while in a long position, the trade is closed, ensuring alignment between the two predictions for the duration of the trade. Finally, to provide visual insights, the predictions are plotted, and the background color indicates the suggested trading direction.