Now to define the setup:
At the first bar of the session, set variable Setup = 0
If BarCounter >= N, then:
- If the high of the current bar is greater than the R_Level of the previous bar, then Setup = 1
- If the low of the current bar is less than the S_Level of the previous bar...