OPEN-SOURCE SCRIPT
Supertrade's RVI Long-Only Strategy with SL/TP (RR 1:3)

This strategy, titled "Supertrade’s RVI Long-Only Strategy with SL/TP (RR 1:3)", is designed to capitalize on potential bullish reversals using the Relative Vigor Index (RVI) as its core signal generator. It is best optimized for trading XAUUSD on the 15-minute timeframe, where it has demonstrated favorable historical performance.
The RVI is calculated using a 10-period standard deviation of the closing price, with smoothing applied through a 14-period exponential moving average. This approach helps to distinguish between uptrend and downtrend volatility, allowing the strategy to identify momentum shifts with precision. A long position is triggered when the RVI crosses above the 20 level, suggesting a potential transition from a weak to a stronger bullish phase.
Risk management is embedded through a user-defined stop-loss (default set at 1% below the entry price) and a fixed reward-to-risk ratio of 1:3. This means that for every 1% of capital risked, the strategy targets a 3% gain, maintaining favorable risk-reward dynamics throughout its execution. Once a position is entered, it will exit automatically at either the stop-loss or take-profit level, depending on which is reached first.
This strategy is meant for educational and research purposes only. While it has performed well historically on specific assets and timeframes, past performance is not indicative of future results. Market conditions can change, and no strategy guarantees success in all environments. Please exercise proper risk management and test thoroughly before applying in live markets.
The RVI is calculated using a 10-period standard deviation of the closing price, with smoothing applied through a 14-period exponential moving average. This approach helps to distinguish between uptrend and downtrend volatility, allowing the strategy to identify momentum shifts with precision. A long position is triggered when the RVI crosses above the 20 level, suggesting a potential transition from a weak to a stronger bullish phase.
Risk management is embedded through a user-defined stop-loss (default set at 1% below the entry price) and a fixed reward-to-risk ratio of 1:3. This means that for every 1% of capital risked, the strategy targets a 3% gain, maintaining favorable risk-reward dynamics throughout its execution. Once a position is entered, it will exit automatically at either the stop-loss or take-profit level, depending on which is reached first.
This strategy is meant for educational and research purposes only. While it has performed well historically on specific assets and timeframes, past performance is not indicative of future results. Market conditions can change, and no strategy guarantees success in all environments. Please exercise proper risk management and test thoroughly before applying in live markets.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Trade forex, indices, stocks and metals with up to US$100.000 in company's funding.
Complete a challenge to access funding or go for instant deposit.
Trading involves substantial risk. Not financial advice
Complete a challenge to access funding or go for instant deposit.
Trading involves substantial risk. Not financial advice
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Trade forex, indices, stocks and metals with up to US$100.000 in company's funding.
Complete a challenge to access funding or go for instant deposit.
Trading involves substantial risk. Not financial advice
Complete a challenge to access funding or go for instant deposit.
Trading involves substantial risk. Not financial advice
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.