Start and stop EA in base of candle

 

Hi to every body.

I have a problem with my EA.

It work in base of candle previous value.

So it opens OP with some value of previous closing/opening/highest/lowest candles.

When EA close the OP I need that EA doesn't open any new OP until the current candle will be closed.

Some one can help me on this?

Thank you!

Reason: