Hi Everyone,
can some one please help me with the below?
So i have 3 conditions coded. Lets say c1, c2, c3
What i want to code
- check if c1 and c2 happen on a candle. for example, if c1 and c2 then…
- if step one is confirmed then for the next 20 candles look for c3.
- when step 2 happens, go long on the next bar
for example, on current bar (lets call it )bar[0], c1 and c2 are met and then on 5th bar after bar[0] if c3 happens then open of 6th bar strategy should go long
Would someone please help