OPEN-SOURCE SCRIPT
RSI of Ratio

What it does:
Calculates RSI on the ratio of current symbol vs a user-selected compare symbol
(default: NSE:NIFTY). This shows whether the stock is strong or weak relative
to the index.
How to use:
- RSI above 60 → stock outperforming the index (gray dark fill)
- RSI 50–60 → mildly outperforming
- RSI 40–50 → mildly underperforming
- RSI below 40 → stock underperforming the index (gray dark fill)
Settings:
- RSI Length: default 30
- Compare Symbol: any TradingView symbol (Nifty, BTC, SPX, Gold etc)
- All levels adjustable: 70/60/50/40/30
Calculates RSI on the ratio of current symbol vs a user-selected compare symbol
(default: NSE:NIFTY). This shows whether the stock is strong or weak relative
to the index.
How to use:
- RSI above 60 → stock outperforming the index (gray dark fill)
- RSI 50–60 → mildly outperforming
- RSI 40–50 → mildly underperforming
- RSI below 40 → stock underperforming the index (gray dark fill)
Settings:
- RSI Length: default 30
- Compare Symbol: any TradingView symbol (Nifty, BTC, SPX, Gold etc)
- All levels adjustable: 70/60/50/40/30
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.