Skip to content
All library documents

Accelerator Oscillator Perceptron With Reversal Sizing

Article MQL5 code base

Summary

This Expert Advisor uses four Accelerator Oscillator readings, sampled at the selected bar shift and three successive seven-bar intervals, as inputs to a weighted perceptron. It multiplies each reading by a weight derived from an optimized parameter, sums the results, and buys when the output is positive or sells when it is negative.

Positions begin with a required stop loss and no take profit. When a position has gained more than the stop distance plus spread, an opposite signal triggers a reversal using a larger position volume. Without an opposite signal, the stop is moved to the entry position’s stop level; the stop also provides an exit when the trade is losing. The document says a chart shows default-parameter results for EURUSD on a 15-minute timeframe over the prior year, but gives no performance statistics or validation details. The weights are intended for genetic-algorithm optimization, so the reported example does not establish robustness or out-of-sample performance.

Key ideas

  • The strategy combines four Accelerator Oscillator values separated by seven bars as perceptron inputs.
  • Optimized parameters determine input weights, and the sign of the weighted sum selects the trade direction.
  • Every initial position requires a stop loss and opens without a take-profit target.
  • An opposite signal can reverse a profitable position with larger volume after profit exceeds the stop distance plus spread.
  • The document mentions a EURUSD 15-minute chart but supplies no quantitative performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.