Hello all expert coders,
I wrote an ea to move away from spending countless hours on the monitors. I am doing some back testing but whenever I run a back test i get the following error:
Warning : Can not execute new OP_SELL order for Symbol EURUSD. Maximum number of 1 open positions reached.
Now the strange thing is that if i run it on demo/live account, it works fine and does what is meant for. So you may ask what is the problem? Well I would like to add some more logic such as a trade manager and few more things, and guess i need to do the back testing to reach confidence to go live trading.
i have attached the code, thanks in advance for any help provided
I wrote an ea to move away from spending countless hours on the monitors. I am doing some back testing but whenever I run a back test i get the following error:
Warning : Can not execute new OP_SELL order for Symbol EURUSD. Maximum number of 1 open positions reached.
Now the strange thing is that if i run it on demo/live account, it works fine and does what is meant for. So you may ask what is the problem? Well I would like to add some more logic such as a trade manager and few more things, and guess i need to do the back testing to reach confidence to go live trading.
i have attached the code, thanks in advance for any help provided
Attached File(s)
forexStrategy.mq4
37 KB
|
171 downloads
GridEA Return This Year:
na