Here is the code: (real tight bands)
if (CrossAbove(EMA(Median, x), Bollinger(Median, 0.xx, xx).Lower, 1)
&& CrossAbove(EMA(Median, x), Bollinger(Median, 0.xx, xx).Middle, 1)
&& CrossAbove(Close, Bollinger(Median, 0.xx, xx).Upper, 1))
I think the last line should attempt to fill the order if the price action closes 2 ticks from the outer band.
Two questions:
1. How make the last line close between to values, say 2 and 4 ticks...
2. I want the pending order to cancel if it is not filled within 3 bars or less. Any help with the code would be great?
Comment