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. A sample buy setup requires MACD to be below zero, its main line to exceed its signal line, and price to be above the moving average. Two configurable filters refine the signal: the ratio between the MACD lines and price distance from the moving average. The user can choose whether to evaluate the current bar or the previous bar, and signals are checked only when a new bar appears.
If a position loses more than a configured pip threshold, the advisor can add a larger position in the same direction, with the lot increase controlled by a coefficient. It permits only one direction at a time and closes all trades if both buys and sells are detected. The description explains the rules but supplies no performance evidence. Averaging into losses can increase exposure, and the document does not specify exit rules or risk limits.
Key ideas
- The entry signal combines MACD direction and level with price relative to a moving average.
- Ratio and distance filters can further constrain the signal.
- Signals and potential additions are evaluated only on a new bar.
- A losing position beyond a pip threshold triggers a larger same-direction addition.
- The advisor closes all trades if it detects simultaneous buy and sell positions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.