MA and MACD Signals with Loss-Based Position Averaging
Summary
This expert advisor combines a moving average with MACD to open trades and add to losing positions. It checks for signals or additions when a new bar appears. A sample buy setup requires MACD below zero, its main line above its signal line, and price above the moving average; filters based on the main-to-signal ratio and price distance from the average further qualify the setup. The trader can choose whether the signal uses the current bar or the previous completed bar.
When the worst losing position exceeds a configured pip-loss step, the EA may add another trade in the same direction using an increased lot size. It allows positions in only one direction at a time and closes all positions if it detects both buys and sells. This averaging approach can increase exposure as losses deepen. The supplied description gives no backtest results, risk limits, exit logic, or evidence of profitability, and does not explain how the lot coefficient controls total portfolio risk.
Key ideas
- The EA checks for entries and additions at the start of a new bar.
- A sample buy signal combines MACD direction and level with price relative to a moving average.
- Ratio and price-distance filters refine the indicator signal, and the selected bar can be current or completed.
- The EA adds a larger same-direction position when the worst losing trade passes a pip-loss threshold.
- It closes all trades if both long and short positions are present, but the description gives no performance evidence or broader risk controls.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.