I'm just learning EA writing. I am trying to write an EA to place buy positions below a specified price(Neutral Price) and place sell positions above that(I specified 3 zones above and 3 zones below the price).
This make my terminal strategy tester very slow and something like nested loops happens but I can not find were the problem is.
Pending positions are okay, but problem rises when I add the part in start module that I deactivated in the attached file( between /* and */).
I would be grateful if someone helps.
Thank you in advance.
Thanks for your reply.
It has only "Start profiling on Real data" and the tab "Start profiling on History data" is deactivated.
Do I have to test on real data or there is another option for debugging specially when market is not operating?
What does profiling do?
I can not use it for debugging. Would some one please help?