NexusFi: Find Your Edge


Home Menu

 





Converting 2 RSI Divergence from Tradingview to TOS


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,142 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
Kharmaz
Orlando, FL
 
Posts: 34 since Jun 2014
Thanks Given: 14
Thanks Received: 4

I need help with converting 2 RSI Divergence from Tradingview to TOS and NT8.
Introduced by Shizaru
https://www.tradingview.com/script/fH6e5TuN-RSI-Divergence/

Basically 5 RSI and 14 RSI Divergence. Instead of a line, I need the indicator to print columns, similar to picture.


Attached Thumbnails
Click image for larger version

Name:	Screenshot_20220807-141851~2.png
Views:	178
Size:	82.3 KB
ID:	326279  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
Daytrading to swingtrading
Traders Hideout
Thanks Mike. Godspeed.
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Converting NT7 indicators to NT8 for free
1 thanks
BERN ALGOS algo trading journal
1 thanks
Diary of a simple price action trader
1 thanks
  #2 (permalink)
ColoradoCliff
Parker CO/USA
 
Posts: 22 since Jun 2017
Thanks Given: 0
Thanks Received: 5


Kharmaz View Post
I need help with converting 2 RSI Divergence from Tradingview to TOS and NT8.
Introduced by Shizaru
https://www.tradingview.com/script/fH6e5TuN-RSI-Divergence/

Basically 5 RSI and 14 RSI Divergence. Instead of a line, I need the indicator to print columns, similar to picture.

Here's basic code for ToS. If you already have an indicator that works (except for the plot type), you can just select the histogram type of plot). I've preset that for you in this code:

declare lower;

input fastRSI = 5;
input slowRSI = 14;
input priceType = close;
input avgType = AverageType.WILDERS;

def divergance = RSI(length=fastRSI, price=priceType, average_type=avgType) - RSI(length=slowRSI, price=priceType, average_type=avgType);
#def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
#def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;

plot data = divergance;
data.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
data.AssignValueColor(if Data >0 then Color.UPTICK else Color.DOWNTICK);

2022-08-14-TOS_CHARTS


Reply With Quote




Last Updated on August 14, 2022


© 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