NexusFi: Find Your Edge


Home Menu

 





easy language to TOS: SellRSI by Howard Wang


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
xtrender
Boston
 
Posts: 5 since Feb 2019
Thanks Given: 1
Thanks Received: 2

SRSI (S&C feb 2019 by Howard Wang) ELS

inputs: length(20);
vars: srsi(0), srsin(0),k(0);

srsin=0;
for k=0 to length-1
Begin
Value1=absvalue(close[k]-open[k]);
Value1=absvalue(high[k]-low[k]);
if value2 =0 then value3=0
else
value3=value1/value2;
srsin=srsin+value3;
end;
srsi=srsin/length;

plot1(0.38);
plot2(srsi);
plot3(-0.38);
plot4(0);

//////###below my attempt to convert to TOS it plots something but does not oscilate between + and - help appreciated

declare lower;

input Length = 20;

plot srsi = (fold k = 0 to length-1 with srsin = 0 do srsin+
getvalue(if AbsValue(high[k]-low[k]) == 0
then AbsValue(close[k]-open[k])/AbsValue(high[k]-low[k])==0
else (AbsValue(close[k]-open[k])/AbsValue(high[k]-low[k])),k,length))/length;

plot upper = 0.38;
plot zero = 0;
plot lower = -0.38;


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
netarchitech
NY, NY
 
Posts: 68 since Dec 2011
Thanks Given: 27
Thanks Received: 19

@xtrender:

Link: https://usethinkscript.com/d/53-sell-relative-strength-index-srsi-indicator-for-thinkorswim

Credit: Mr. Wang for the original content and @JakesDad for the conversion --> https://researchtrade.com/forum/read.php?7,2258,8118#msg-8118

Good Luck and Good Trading


Reply With Quote
Thanked by:




Last Updated on February 3, 2019


© 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