Hello,
I'm new with MT4 and I have a problem that appear only when backtesting.
I try to open orders with this line :
OrderSend(Symbol(), OP_BUYSTOP, volume, prix, slippage, (prix - Pts_Stop), (prix + Pts_Limit), "Rebond haussier", iMagic, (TimeLocal()+OrderTimeout), Green);
When I run it "live" it works but when I backtest it with historical datas I've got "OrderSend error 3"
I have localised the problem : if I replace (TimeLocal()+OrderTimeout) with 0 it works.
Actually OrderTimeout is initialized by "input int OrderTimeout = 60;"
Any idea how to fix this ?
Thank you.