Skip to content
All library documents

Two-Moving-Average Bunny Cross Expert Advisor and Position Sizing

Article MQL5 code base

Summary

This expert advisor acts on signals from two moving-average indicators, whose settings are built into the program. It checks for signals only when a new bar appears. On a buy signal it closes sell positions, and on a sell signal it closes buy positions, making the opposing signal a position-reversal trigger.

Position size can be specified as a fixed lot amount or calculated dynamically from a risk percentage; the description says to use one approach at a time. The document refers to example buy and sell signals but does not explain the moving-average parameters, the signal conditions, or how the risk percentage is translated into size. It also provides no backtest evidence, transaction-cost assumptions, or risk controls beyond the sizing choice. The description therefore outlines the EA’s operating cycle without showing whether it is profitable or suitable for a particular market.

Key ideas

  • The advisor evaluates its signals when a new bar appears.
  • It uses two moving averages with settings fixed in the program.
  • A new buy or sell signal closes positions in the opposite direction.
  • Position size can be set as a fixed lot amount or a risk percentage.

Tags

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