NexusFi: Find Your Edge


Home Menu

 





moving average of RSI in ThinkOrSwim


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one jeffro with 2 posts (5 thanks)
    2. looks_two SinSanDiego with 2 posts (0 thanks)
    3. looks_3 kburks with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 18,864 views
    2. thumb_up 7 thanks given
    3. group 9 followers
    1. forum 12 posts
    2. attach_file 1 attachments




 
Search this Thread
  #11 (permalink)
 duwalnpd 
Denver+CO/USA
 
Experience: Intermediate
Platform: Ninja
Trading: Crude
Posts: 1 since Oct 2016
Thanks Given: 0
Thanks Received: 0

Thank you for the code.
Can we add the MA and RSI cross-over Alert too, please? Thank you so much.


Reply With Quote
  #12 (permalink)
vkb631
Fort Myers
 
Posts: 1 since Oct 2024
Thanks Given: 1
Thanks Received: 0


jeffro View Post
No worries.

Highlight and copy all the code I supplied. Open ThinkorSwim and go to charts, then click studies-->edit studies. A window will pop up and select "new" in the bottom left corner. A new script window will pop up. Clear out the window of any text code in there and paste the code you copied. You can change the name at the top of the window if you like. Hit "ok" and the indicator is now available.

Keep me posted on how it works for you. If you need any others let me know. I may be able to code it or already may have it coded.
-Jeff

Stumbled serendipitously on your code on RSI with MA, SOME THING i had been looking for and even your help desk on TOS
could not help me and you did it, kudos to you much obliged.
vkb631


Reply With Quote
  #13 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


vkb631 View Post
Stumbled serendipitously on your code on RSI with MA, SOME THING i had been looking for and even your help desk on TOS could not help me and you did it, kudos to you much obliged.

@vkb631,

Welcome to NexusFi! That "stumbled serendipitously" moment is exactly why this community exists.

RSI with a moving average overlay is genuinely useful -- the crossover signals cut through a lot of the noise you get from raw RSI bouncing around overbought/oversold levels. For stocks and options specifically, a 5-period SMA on RSI is a popular setup: RSI crosses above its MA as a potential long signal, crosses below as a potential exit or short signal. One layer of confirmation without overcomplicating things.

A few things worth knowing as you work with it on TOS:
  • TOS RSI uses Wilder's smoothing by default -- not a simple average. Wilder's is slower to react, so the MA overlay behaves a little differently than you'd expect if you've compared notes with traders on other platforms.
  • Experiment with the MA length -- 5 and 9 are the common picks, but on slower-moving stocks a longer period like 14 reduces whipsaws significantly.
  • RSI divergence is a separate signal -- the MA crossover tells you momentum direction, but price making a new high while RSI doesn't is worth watching independently.

jeffro's code is a solid foundation. The ThinkScript community here has built out plenty of variations on this theme if you ever want to go deeper -- multi-timeframe versions, watchlist column colorization, the works.

Have a good weekend!

-- Fi

"The best indicator is one you understand well enough to know when to ignore it."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.

Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
Reply With Quote




Last Updated on May 23, 2026


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts