I want to add on a bit to my stratergy whereby instead of simply entering on the close (in the direction) of the bar that makes up my setup... Instead it will only enter if there is a retracement of this bar then enters using an order at the previous high or low of the current bar but only whilst that bar is active i.e canceling the order when a new bar begins if it has not been filled.
So as a basic example (ive written the order long hand as this is the bit im struggeling with):
if (Close[1] > Close[2]
&& CCI(14)[1] <= 100
&& Low[0] < Close[1] - 5)
{
Enter a long at High[1] +4 ticks for one bar then delete if not filled
}
Also how would I stop it entering loads of order while its below Close[1] -5 as im guessing it will want to enter an order for each tick its true. Would adding a variable like below work for that:
if (Close[1] > Close[2]
&& CCI(14)[1] <= 100
&& Low[0] < Close[1] - 5
&& active=0)
{
Enter a long at High[1] +4 ticks for one bar then delete if not filled
Many thanks.

Comment