OPEN-SOURCE SCRIPT

swar

103
RSI Calculation
Uses ta.rsi(close, 14) to calculate the Relative Strength Index (RSI).
Buy Condition
A buy signal is triggered when RSI crosses above 60.
Sell Condition
A sell signal is triggered when RSI crosses below 40.
Entry Orders
strategy.entry("Buy", strategy.long) enters a long trade.
strategy.entry("Sell", strategy.short) enters a short trade.
RSI Plot
The RSI line is plotted in blue.
Overbought (60) and Oversold (40) levels are drawn in red and green.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.