im looking for programming help for this scenario
if the bar closes in RED i want to enter short position once the first green bar appear after this bar and vice versa. I also want to check how big the bar is , for example open price is 10$ close price 11$ . i only want to star looking for the next bar if the price difference betwen open and close is minimum 3$ or -3$
is this correct?
// Conditions to enter Long positions
c1 = open < close and close – open > 5
c2 = open > close and open – close > 5
// Conditions to enter Short positions
c3 = open > close and open – close > 5
c4 = open < close and close – open > 5
thanks for any help