Expert advicor with Fractal

 

Dear programmers,

I have programmed the fractal indicator for trade. Everything is as I expected but there is only one problem. When the algorithm is true it opens order normally and puts take profit after TakeProfit hits because of situation is still true it opens new order. I dont want this, I just want than EA opened order just one time per when it is true to open order.

Please help me to solve this. If Ican solve this I have too much ideas to do

Waiting for your help and support

Best regards,

Adil Abdullayev

 

Indicators can NOT wait, they can not sleep. Indicators can NOT open orders - it will hang the terminal.

Where is your code to open one time per bar?

Reason: