Get your API key

Lesson 3 of 5

RSI in its own pane, with levels and labels

Build an RSI with editable 70/30 levels, shaded zones and labels, and prove its numbers match TradingView's built-in RSI.

8 min Log in to open

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.

One step at a time, like flipping pages.

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

  1. 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.

    Diagram with a price pane on top and an RSI pane below with dashed lines at 70 and 30, a red label 73.0 where RSI rises above 70 and a green label 27.0 where it falls below 30, plus a note that RSI above 70 does not mean sell now
    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:

  1. Prompt the RSI indicator
  2. Prove the numbers
  3. Labels, limits and a better prompt
  4. Recap