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 aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.