OPEN-SOURCE SCRIPT
RVGI with Editable Signal + EMA Filter

Relative Vigor Index (RVGI) with Editable Signal + EMA Filter
This script enhances the standard RVGI by letting you set both the RVGI Length (green line) and the Signal Length (red line), which is not adjustable in TradingView’s default version. It also adds an optional EMA trend filter (1/14 by default) to highlight when the market is in a bullish trend.
Features:
Adjustable RVGI length (main green line).
Adjustable signal line smoothing (red line).
Optional EMA fast/slow filter (default 1/14).
Automatic BUY/SELL markers on RVGI crossovers when EMA filter is positive.
Alert conditions for long entries and exits.
This setup was optimized through backtesting for assets like Solana and AVAX, but inputs are fully configurable for use on any market and timeframe. Backtests conducted on daily timeframe.
Strategy tested
Entry rule: RVGI green line crosses above red line AND EMA 1 is above EMA 14.
Exit Rule: RVGI red line crosses above green
A simple strategy with remarkable back test results, tested on SOLUSDT (1D)
Strategy also tested on AVAXUSDT found RVGI settings length 44 signal 5 to be favourable for maximum return on investment.
All back testing on daily timeframe.
This script enhances the standard RVGI by letting you set both the RVGI Length (green line) and the Signal Length (red line), which is not adjustable in TradingView’s default version. It also adds an optional EMA trend filter (1/14 by default) to highlight when the market is in a bullish trend.
Features:
Adjustable RVGI length (main green line).
Adjustable signal line smoothing (red line).
Optional EMA fast/slow filter (default 1/14).
Automatic BUY/SELL markers on RVGI crossovers when EMA filter is positive.
Alert conditions for long entries and exits.
This setup was optimized through backtesting for assets like Solana and AVAX, but inputs are fully configurable for use on any market and timeframe. Backtests conducted on daily timeframe.
Strategy tested
Entry rule: RVGI green line crosses above red line AND EMA 1 is above EMA 14.
Exit Rule: RVGI red line crosses above green
A simple strategy with remarkable back test results, tested on SOLUSDT (1D)
Strategy also tested on AVAXUSDT found RVGI settings length 44 signal 5 to be favourable for maximum return on investment.
All back testing on daily timeframe.
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.
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.
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.