NexusFi: Find Your Edge


Home Menu

 





Converting 2 RSI Divergence from Tradingview to TOS


Discussion in ThinkOrSwim

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




 
Search this Thread

Converting 2 RSI Divergence from Tradingview to TOS

  #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:	67
Size:	82.3 KB
ID:	326279  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts