Update 29.8.2023: Refactored the EA to work on modern hedging method mt5 accounts. Also simplified the strategy to what matters the most (theres lots of useless/low impact stuff in original version), in essence the strategy is this:
- Build long/short positions with RSI
- When above 70, sell
- When below 30, buy
- Before selling/buying another time, wait for the RSI to visit level 50. This discourages trading against strong trends. - There must be a mechanism that favors closing the positions rather than letting long/short position grow bigger and bigger
- Only allow the position to grow if price is above daily median (buy) or below median (sell)
- Trades that shrink the total position don't have that rule, so positions naturally stay small - Lastly, limit the trading actions to more volatile half of the day by comparing fast and slow ATR values
The reduced strategy is not quite as profitable as the original one, but still clearly on the black after 6700 trades. Feel free to add your ideas to this.





