How to execute the order immediately after 'Cross' instead of after the close of the candle in AFL

#1
How to execute the order immediately after 'Cross' instead of after the close of the candle in AFL. My Current AFL has a function which performs execution of order after the moving average crossover, but the order gets executed only after the closure of the current candle. Instead of that, I want to execute the order as soon as the crossover happens.

Thanks
 

Similar threads