Skip to content
All library documents

Moving Average Trend and Standard Deviation Entry Rules

Article MQL5 code base

Summary

The described expert advisor combines two moving averages with a standard deviation indicator. Its stated sell setup requires the fast moving average to be below the slow one, the preceding candle to be bearish and close below the fast average, and standard deviation to rise above a preset threshold. Positions are closed when an opposite signal arrives. The document says there are no stop-loss, take-profit, or trailing-stop orders, and that multiple positions may be opened in the same direction without a stated cap.

The description provides one directional example and outlines position exit behavior, but it does not specify parameter values, the corresponding buy conditions, asset or timeframe, or any backtest or live results. The lack of protective exits and limit on same-direction exposure is not described, so risk and drawdown behavior cannot be assessed from this material. The rules are a signal recipe rather than evidence of profitability.

Key ideas

  • The EA uses fast and slow moving averages to define directional bias.
  • A sell setup also requires a bearish prior candle closing below the fast average.
  • Rising standard deviation above a preset threshold is an additional sell condition.
  • Positions close when an opposite signal arrives, with no stop loss, take profit, or trailing stop described.
  • The document provides no performance evidence or full specification of the buy setup.

Tags

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