Trade on moment

Hi

i use OpenSell or OpenBuy() if my condation is true , But position create at the next candle .

how can create order moment of my condation is true?

Thanks.

It's spelled condition.

Drop your new bar code and make your condition using bar zero.