That is my trigger.
But I dont want to buy right after my trigger has been sent, I want to buy if the price retraces to the 20 period EMA within the next 20 bars.
Can i do this?
Can i Set:
How do I restrict the Buy entry to be within only 20 bars of the trigger bar?
Code: Select all
LongEntryPrice = xAverage(Price,20);
if MomentumOscillator = Highest(MomentumOscillator,3) then Buy next bars LongEntryPrice limit;