Help in Error finding in a very simple EA

To add comments, please log in or register
hhemmat
64
hhemmat  

Hi 

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.

Files:
2018-Test.mq4 12 kb
Carl Schreiber
Moderator
9102
Carl Schreiber  
If an EA is slow use the profiler - in the editor below the menu entry Debug.
hhemmat
64
hhemmat  
Carl Schreiber:
If an EA is slow use the profiler - in the editor below the menu entry Debug.

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?

hhemmat
64
hhemmat  

What does profiling do?

I can not use it for debugging. Would some one please help?

To add comments, please log in or register