Forum

OrderModify() not working optimally

Basically, I want my EA to manage open trades with OrderModify(). My EA is programmed to take trades when 2 Moving Averages are crossing. Every time the 2 Moving Averages cross, it opens 2 trades. Trade 1: Take Profit = 1.0 * ATR Stop Loss = 1.5 * ATR Trade 2: No Take Profit Stop Loss = 1.5 * ATR

How do I move Stop Loss to Breakeven with a certain ATR value?

Basically, I want my EA to manage open trades with OrderModify(). My EA is programmed to take trades when 2 Moving Averages are crossing. Every time the 2 Moving Averages cross, it opens 2 trades. Trade 1: Take Profit = 1.0 * ATR Stop Loss = 1.5 * ATR Trade 2: No Take Profit Stop Loss = 1.5 * ATR

Expert Advisor Optimization repeating same results. PLEASE HELP!

I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible. When I run a backtest , change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the