Education only. This is not investment advice and nothing here is a buy or sell recommendation. Trading carries risk of loss, and past results do not predict the future. Practise with TradingView's Paper Trading (fake money) only, never connect broker API keys or place live orders from these lessons. For personal advice, talk to a SEBI-registered Investment Adviser.
By the end of this lesson you will have an RSI indicator in its own pane, with levels you can change, shaded zones and labels, and you will have proved its numbers match TradingView's built-in RSI.
You need: TradingView with the Pine Editor, an AI chat or agent, lessons 1 and 2 done · Time: 8 minutes
RSI (Relative Strength Index) compares the average size of recent up-moves with the average size of recent down-moves, usually over 14 bars, and turns the result into a number between 0 and 100.
- Near 100: most recent moves were up, and big.
- Near 0: most recent moves were down, and big.
- The levels 70 and 30 are only common conventions. You can change them.
Because RSI is on a 0 to 100 scale, it does not fit on the price chart. It needs its own pane under the price: in Pine that is
overlay = false.RSI lives in its own pane. Above 70 is a description of recent moves, not an instruction. Why?Many beginners read "RSI above 70" as "sell now". It only means price rose fast lately, and it can stay above 70 for weeks. Knowing what a number measures stops you from reading orders into it.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- Prompt the RSI indicator
- Prove the numbers
- Labels, limits and a better prompt
- Recap