A Bar-Based EMA Strategy That Adds Positions Until Net Profit
Summary
This Expert Advisor opens trades only when a new bar appears and permits new entries only during configured working hours, while allowing positions to close outside that window. Its initial direction rule compares the 200-period exponential moving average with the new bar: it buys when the average is below the bar and sells when it is above. Position size is fixed by the user, and the exit condition is aggregate net profit, including commission and swap, reaching a chosen account-currency threshold.
If the open basket is not profitable at a new bar, the system holds it and adds another position while total net profit remains negative. After the first eight open positions, additional entries are constrained by minimum price spacing and, at larger distances from the first entry, by skipping bars. The description provides rules but no backtest or risk analysis; repeated accumulation can increase exposure, and no protective loss limit is specified.
Key ideas
- The Expert Advisor evaluates its rules only at the start of a new bar.
- Initial trade direction follows the position of price relative to a 200-period EMA.
- Positions use a fixed size and close when basket net profit reaches a configured threshold.
- Additional positions accumulate during losses, with entry spacing and bar-skipping rules after eight positions.
- The document gives no backtest results or defined maximum-loss control.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.