@polishinglife I think you have to loop. However, have those condition be met after another or could there be some other RSI cycles that don't hit above 75 or below 40?
I'd start a loop from candle ID1 to candle ID100. The last condition is the trigger for the loop.
Order:
ID1 RSI x< 60 (don't know if x< works here otherwise <)
loop from ID2 to IDx where >75 [exit condition RSI < 40 or loop counter 100]
check if IDx+1 and x+2 were also >75
create another loop for candle IDx+4 until <60 say it's candle IDy with [exit condition RSI < 40 or loop counter 100]
create another loop starting from candle ID y+1 and check if RSI >75. If true asuming candle IDz [exit condition RSI < 40 or loop counter 100]
For the 75 condition may work this block, but if going backward in the loop you need to care that "iterator+3" is less than 100, where the integer variable iterator is the loop index.
0_1570548613621_4ad6f696-4909-4c93-bb66-167c3fc7a0eb-image.png