Skip to content
All library documents

Completed-Candle EMA and RSI Entries with Spread and Position Checks

Article MQL5 code base

Summary

Aegis Quantum Lite is described as an educational MetaTrader 5 expert advisor using completed-candle signals. It opens a buy when the fast exponential moving average is above the slow average and RSI exceeds its configured buy threshold; a sell uses the inverse average relationship and RSI below its sell threshold. Both entry paths require the spread to remain under a limit, no existing position on the chart symbol, and a newly completed candle. The listed defaults include 9 and 21 period averages, a 14 period RSI, fixed 0.01 lot size, and optional 500 point stop-loss and take-profit distances.

The notes also describe execution safeguards: checks for trading permissions and free margin, an order pre-check, and use of the symbol’s supported filling mode. The document provides no backtest, market, or live trading results, so it establishes implementation behavior rather than evidence of profitability. Fixed sizing and a single-position restriction limit some exposure patterns but do not establish that losses are controlled under all conditions.

Key ideas

  • The entry signals combine fast and slow exponential moving averages with RSI thresholds.
  • Signals are evaluated after a completed candle and only once per candle when configured.
  • The advisor filters entries by spread and blocks another position on the chart symbol.
  • It uses fixed lot sizing and can attach stop-loss and take-profit distances.
  • Order checks and account-permission checks are described, but no performance evidence is given.

Tags

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