Apprentice, thanks for the strategy.
I added some parameters to select the entry and exit points.
(I don't understand buff? so refer to the lines as below)
Using a (Green) RSI cross of (Red) Trade line
Entry Buy -
1) Cross anywhere
2) Cross below BL (Buy Level - typically 32)
3) Cross below CL (Centre Level - 50)
Entry Sell -
1) Cross anywhere
2) Cross above SL (Sell Level - typically 68)
3) Cross above CL (Centre Level - 50)
Exit Buy -
1) Cross anywhere
2) Cross above SL (Sell Level - typically 68)
3) Cross above CL (Centre Level - 50)
Exit Sell -
1) Cross anywhere
2) Cross below BL (Buy Level - typically 32)
3) Cross below CL (Centre Level - 50)
You can now select any of these entry and exit points to suit your strategy.
The stop and limit I tested on H1 but as I am not an experienced programmer,
I couldn't get stop and limit to work on D1