EMA Crossover Signals with MACD Confirmation and Hedge Orders
Summary
This expert advisor generates signals when two moving averages intersect, using a selectable bar to determine whether the signal comes from the current or previous bar. An optional MACD filter checks the main MACD line's position relative to zero on that selected bar. When a signal appears with no open positions, the EA opens a position and places four pending stop orders in the same direction at a configurable hedge distance, with a set expiration time.
The EA can close opposing positions when a reverse signal arrives and applies a trailing stop and trailing step to open positions. Its parameters cover trade size, stop loss, take profit, hedge spacing, pending-order lifetime, and signal-bar selection. The document describes the mechanics but gives no results from its referenced EURUSD, 30-minute test, nor details on costs, fills, or drawdowns. The behavior and risk of the pending hedge orders therefore require independent testing under the intended broker and execution conditions.
Key ideas
- The EA signals when two moving averages cross, using either the current or previous bar.
- An optional filter requires the main MACD line to be on a specified side of zero.
- After opening a position, the EA places four same-direction pending stop orders at a configurable distance and expiration.
- Reverse signals can close opposite positions, while open positions use trailing stops.
- The document lists configurable trade and order parameters but provides no test results or execution analysis.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.