I have written a simple RSI code but don’t know how to write an add on to stop being stopped repeatedly by the same trend.
If RSI >70 sell short. Fine easy.
But if it dips to say RSI 65 and then heads back up to RSI 73 and hits my stop loss and then heads back down and then back to RSI >70 it will sell short again but still in a bull trend.
What code do I insert to detail if stopped out do not enter a new short sell trade unless RSI < 50 then heads back to 70 on a completely different rally later than day.
Many thanks for any help