Pi generating buy signal before the candle closes pls help for correct code

In Pi when I have written a simple crossover code

Buy if

CROSSOVER(CLOSE, EMA(CLOSE, 100))

and sell if

CROSSOVER(EMA(CLOSE, 100), CLOSE )

It is generating Buy or Sell Signal the moment it crosses… It Should Do it on Close of the candle above that level.

Yes Siddhu, in the next release you will have an option while taking your strategy live, if you want the alert at the end of candle or anytime during the candle.

1 Like