This strategy is based on Relative Strength Index (RSI) and Average True Range (ATR) channel, suitable for 5-min and 15-min timeframes, belonging to super scalping strategy type. It determines long/short direction entry points through RSI indicator and utilizes ATR channel to set stop loss and take profit, realizing high frequency trading.
This strategy belongs to high frequency scalping trading type. It sets entry and exit points through RSI indicator and ATR channel for quick trades. The advantages are quick profit with good risk control, suitable for trading along the trend. However, close market watch is needed with enough capital supporting frequent trades. Overall speaking, this strategy performs well for trend trading and could be further improved on profitability through optimization.
/*backtest start: 2023-11-20 00:00:00 end: 2023-11-27 00:00:00 period: 30m basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=4 strategy("Super Scalper - 5 Min 15 Min", overlay=true) // Create Indicator's shortSMA = ema(close, 21) longSMA = ema(close, 65) rsi = rsi(close, 14) atr = atr(14) // Specify conditions longCondition = open < close-atr shortCondition = open > atr+close GoldenLong = crossover(shortSMA,longSMA) Goldenshort = crossover(longSMA,shortSMA) plotshape(shortCondition, title="Sell Label", text="Sell", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0) plotshape(longCondition, title="Buy Label", text="Buy", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0) plotshape(Goldenshort, title="Golden Sell Label", text="Golden Crossover Short", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.blue, textcolor=color.white, transp=0) plotshape(GoldenLong, title="Golden Buy Label", text="Golden Crossover Long", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.yellow, textcolor=color.white, transp=0) // Execute trade if condition is True if (longCondition) stopLoss = low - atr * 2 takeProfit = high + atr * 5 strategy.entry("long", strategy.long, 1, when = rsi > 50) if (shortCondition) stopLoss = high + atr * 2 takeProfit = low - atr * 5 strategy.entry("short", strategy.short, 1, when = rsi < 50) // Plot ATR bands to chart plot(atr+close) plot(close-atr) // Plot Moving Averages plot(shortSMA, color = color.red) plot(longSMA, color = color.yellow)