Skip to content
All library documents

New-Bar Moving-Average Signals with Separate Buy and Sell Risk Levels

Article MQL5 code base

Summary

This Expert Advisor bases its trading decisions on two moving averages, with periods of five and four, on a five-minute chart. It assigns separate take-profit and stop-loss levels to buy and sell positions. The decision conditions are evaluated only when a new bar appears, which the document says reduces CPU load and enables quicker testing in tick-based modes. This is a simple example of bar-driven signal evaluation paired with direction-specific exit settings.

The source identifies an EUR/USD five-minute test period and an initial deposit, but it supplies no performance figures, trade list, or risk-adjusted evaluation in the text provided. It also does not specify the moving-average type, precise crossover or comparison rules, or the actual stop and target values. Those omissions prevent readers from reconstructing the full strategy or assessing its robustness. The stated test context alone is not evidence that the approach is profitable or suitable for live trading.

Key ideas

  • The Expert Advisor uses two moving averages on a five-minute timeframe.
  • Trading conditions are checked only when a new bar appears.
  • Buy and sell trades use separately configured take-profit and stop-loss levels.
  • Bar-based evaluation is presented as a way to reduce processing load and speed testing.
  • The document names a historical EUR/USD test setup but provides no performance results.

Tags

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