Need help plotting RSI along with the price

venus360

New member
Need help plotting RSI along with the price in the same window... Even if you help me find pieces of code, I may be able to string them together. I am new to thinkscript but I have done some programming.

I was first wondering if it possible. The reason I want to plot it along with the price is to see the divergence more clearly.
  • I don't care at all about the overbought or oversold.
  • I would like to use Weighted average of the past X time periods
  • SumGain = sum of points gained on the past X up periods
  • SumLoss = sum of points lost on the past down periods
  • RS = SumGain / SumLoss
  • I want to plot the RSI = 100 - [100(1+RS)]
Thanks a lot.
 
Last edited:

korygill

Well-known member
VIP
How would this draw/scale if plotted in same window as price? Wont this RSI be 0 to 100? That wont look very good I am thinking on say Tesla at 400. Your price plot will get squished. Maybe I am not understanding how you envision this working.
 

venus360

New member
I have seen it on another traders charting program. It may have been a custom indicator.

I agree the chart will be busy, but I want to use it for end of day review. If plotting in the same window is not a priority, is there any indicator / script available that I can tweak?

Thank you.

Screenshot is here. In this chart , price, rsi, and moving averages are also included.

p3SEeN2.png
 
Last edited:

horserider

Well-known member
VIP
Agree with Kory. You will need to solve scaling problem to plot RSI along with moving averages.

Are you plotting the RSI or this and calling it RSI "I want to plot the RSI = 100 - [100(1+RS)] " ?
 

korygill

Well-known member
VIP
ok, i see. you want to use primary and secondary axis. you can just do this in TOS with no special code. add RSI to Upper plot area (price) and select secondary axis (left axis).
 

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Top