Thank you Mladen,
Now the indicator works without errors.
Is it possible to backtest multiple currency pair on the same EA?
I'm trying to send 2 orders with different pairs and the error below occurs.
Error: OrderSend error 4106
I am using the code below to send the orders
Code: Select all
par1="ERUUSD";
par2="GBPUSD";
numeroorden= OrderSend(par1,OP_SELL,par1_lot, MarketInfo(par1, MODE_BID),15,0,0,ComentOrdem,magcnumber,0,Red); // Sell EURUSD
numeroorden= OrderSend(par2,OP_BUY,par2_lot, MarketInfo(par2, MODE_ASK),15,0,0,ComentOrdem,magcnumber,0,Green); // Buy GBPUSD
The error only occurs in the backtest
Thank you,
Rogério