NexusFi: Find Your Edge


Home Menu

 





easy language to TOS: SellRSI by Howard Wang


Discussion in ThinkOrSwim

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




 
Search this Thread

easy language to TOS: SellRSI by Howard Wang

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
Footprint for strategy Builder
NinjaTrader
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
39 thanks
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
14 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

Good Luck and Good Trading

Reply With Quote
Thanked by:




Last Updated on February 3, 2019


© 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