Skip to content
All library documents

Moving Average and Parabolic SAR Signals for EA Position Reversals

Article MQL5 code base

Summary

This description outlines an Expert Advisor that checks for signals when a new bar appears. Its displayed decision rules open a long position when the fast moving average is above both the normal and slow averages and two Parabolic SAR readings are below the prior bar’s close. The short rule reverses those comparisons. The text says indicator values are taken from bar one, meaning the most recently completed bar, and describes trailing an open position. An opposite-direction signal closes the existing position before opening the new one.

The introduction also says the EA uses two RSI indicators, but the shown decision rules contain moving averages and SAR values only, leaving RSI’s role unclear. The document gives no parameter values, market specification, risk limits, or performance evidence. It therefore describes the signal and position-switching concept, but is insufficient to assess profitability or reproduce all EA behavior.

Key ideas

  • The EA evaluates its signals when a new bar forms, using values from the completed bar.
  • A long signal requires the fast moving average to exceed two other averages while both SAR readings are below the close.
  • The short signal applies the inverse moving-average and SAR comparisons.
  • An opposite signal closes the current position before opening the new direction, and trailing is used.
  • The text mentions RSI inputs, but the displayed signal rules do not explain how RSI is used.

Tags

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