Search
Products
Community
Markets
News
Brokers
More
IN
Get started
Community
/
Ideas
/
RSI 3
PETROVIETNAM GAS JOINT STOCK CORPORATION
RSI 3
By nghiaquan68a8df94c24adf4f9d
Follow
Follow
17 hours ago
0
17 hours ago
```pinescript
//
version
=5
indicator(title="Triple RSI", shorttitle="3x RSI", overlay=false)
// RSI periods
rsiPeriod1 = 6
rsiPeriod2 = 12
rsiPeriod3 = 20
// Calculate RSI values
rsi1 = ta.rsi(close, rsiPeriod1)
rsi2 = ta.rsi(close, rsiPeriod2)
rsi3 = ta.rsi(close, rsiPeriod3)
// Plot RSI values
plot(rsi1, color=color.new(color.green, 0), title="RSI 6") // RSI 6 - màu xanh lá
plot(rsi2, color=color.new(color.orange, 0), title="RSI 12") // RSI 12 - màu vàng đậm
plot(rsi3, color=color.new(color.red, 0), title="RSI 20") // RSI 20 - màu đỏ đậm
// Optionally add horizontal lines for reference
hline(70, "Overbought Level", color=color.gray, linestyle=hline.style_dotted)
hline(30, "Oversold Level", color=color.gray, linestyle=hline.style_dotted)
```
Technical Indicators
nghiaquan68a8df94c24adf4f9d
Follow
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the
Terms of Use
.