I am developing a NT8 Script where the strategy is supposed to trigger once price closes above 20 EMA (with strategy being triggered on bar close). What is happening is once bar is closed, the strategy is triggering entry (on long or short) on the ask price / market order immediately. Resulting in me often getting bad entries as I am planning to use the platform for trading futures only.
Is there a way, I can modify the code so that once the strategy is triggered, I can enter long on the pullback to 9 EMA (price / bid = 9 EMA) instead of being entering immediately on ask price / market order?

Comment