NexusFi: Find Your Edge


Home Menu

 





Converting 2 RSI Divergence from Tradingview to TOS


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,081 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:	165
Size:	82.3 KB
ID:	326279  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
5 thanks
Darmok and Jalad at Tanagra
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