This script is written in Pine Script for TradingView platform and implements a simple RSI (Relative Strength Index) strategy for trading the Litecoin (LTC) to USDT pair on Binance exchange using a 5-minute chart.
Here’s a brief explanation of this strategy:
Parameters:
Operations:
This particular backtest has resulted in a profit of 391%, executed over 2400 trades, with a 42% profitability rate, a 14.6% drawdown, and a Sharpe ratio of 0.65.
However, it’s important to remember that past performance doesn’t guarantee future results. Also, the author suggests that additional filters can be added to this strategy to improve its performance.
/*backtest start: 2022-09-01 00:00:00 end: 2023-08-14 05:20:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=3 strategy("QuantNomad - RSI Strategy - LTCUSDT - 5m", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100) length = input(3) overSold = input(47) overBought = input(56) price = close // // author: QuantNomad // date: 2019-06-06 // RSI Strategy - LTCUSDT - 5m // https://www.tradingview.com/u/QuantNomad/ // https://t.me/quantnomad // vrsi = rsi(price, length) if (not na(vrsi)) if (crossover(vrsi, overSold)) strategy.entry("RsiLE", strategy.long, comment="RsiLE") if (crossunder(vrsi, overBought)) strategy.entry("RsiSE", strategy.short, comment="RsiSE") //plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)