newyork
Posts: 2 since Jun 2011
Thanks Given: 0
Thanks Received: 0
|
i have a set of conditions that will return true or false. Lets say i have condition1 to 5. i want condition1 and 2 happen 2 bars earlier and condition3 1 bar earlier then execute a buy.
but i just cant make it happen, it said Types are not compatible. this is what i did.
if condition 1 or condition2 = true and condition3 or condition4 = true then buy next bar at market;
but how can i make it two bars earlier for condition1 or 2 and one bar earlier for condition 3 or 4?
so what should i do to make it work?
any help would be greatly appreciate.
thanks
|