OPEN-SOURCE SCRIPT
RS Rating Trailing Strategy

How It Works:
StageActionEntryBuy when RS Rating crosses above 80TrackingTrack the highest RS Rating while in positionExitSell when RS Rating drops 5 points below the high
Example:
RS Rating crosses from 79 to 81 → BUY
RS Rating climbs to 85 → High RS = 85, Stop = 80
RS Rating climbs to 95 → High RS = 95, Stop = 90
RS Rating drops to 92 → Still holding (above 90 stop)
RS Rating drops to 90 → SELL (hit trailing stop)
Settings:
SettingDefaultDescriptionRS Entry Level80Buy when RS crosses above thisRS Trailing Drop5.0Sell when RS drops this many points from highBenchmark IndexSP:SPXIndex for RS calculation
Table Shows:
Current RS Rating
Position status (LONG/FLAT)
Entry RS (what RS was when you bought)
High RS (highest RS since entry)
Stop RS (current trailing stop level)
Cushion (how far above stop you are)
The cushion turns orange when close to stop, red when very close.
StageActionEntryBuy when RS Rating crosses above 80TrackingTrack the highest RS Rating while in positionExitSell when RS Rating drops 5 points below the high
Example:
RS Rating crosses from 79 to 81 → BUY
RS Rating climbs to 85 → High RS = 85, Stop = 80
RS Rating climbs to 95 → High RS = 95, Stop = 90
RS Rating drops to 92 → Still holding (above 90 stop)
RS Rating drops to 90 → SELL (hit trailing stop)
Settings:
SettingDefaultDescriptionRS Entry Level80Buy when RS crosses above thisRS Trailing Drop5.0Sell when RS drops this many points from highBenchmark IndexSP:SPXIndex for RS calculation
Table Shows:
Current RS Rating
Position status (LONG/FLAT)
Entry RS (what RS was when you bought)
High RS (highest RS since entry)
Stop RS (current trailing stop level)
Cushion (how far above stop you are)
The cushion turns orange when close to stop, red when very close.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.