Hi.
Traded successfully with this strategy manuellt. Would it be possible to code it?
Simple for someone with skills 😊
Sweden 30 Cash (100SK) 1min chart.
Go short if RSI closing above 70,83 and crossing down under 70, closing. Hold 4 points. SL 6 points above entry price.
Go long if RSI close below 28,5 and closing above 30. Hold 4 points. SL 6 points below entre price. Never hold over night.
There you go (not tested):
MyRSI = rsi[14](close)
S1 = MyRSI > 70.83
L1 = MyRSI < 28.5
ES = MyRSI crosses under 70
EL = MyRSI > 30
// LONG entry
If L1 And not LongOnMarket then
Buy 1 contract at Market
Endif
// SHORT entry
If S1 And not ShortOnMarket then
Sellshort 1 contract at Market
Endif
// LONG exit
If EL and LongOnMarket then
Sell at Market
Endif
// SHORT exit
If ES and ShortOnMarket then
Exitshort at Market
Endif
// SL & TP
Set Stop pLoss 6
Set Target pProfit 4
SL and TP seem too tight. Check with your broker if they are within required limits for the traded instrument.