NexusFi: Find Your Edge


Home Menu

 





Indicator for TOS


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
TradingForALiving
Miami Florida US
 
Posts: 16 since Oct 2015
Thanks Given: 6
Thanks Received: 1

I was wondering if someone can help me. ThinkOrSwim has an indicator called relative strength which compares the stock to the SPX. Would anyone know how to apply a 20 period EMA to this indicator? Any help would be greatly appreciated. Thanks


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
RTH vs ETH: when your chart and Volume Profile trading h …
NinjaTrader
Datafeed for Atas
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
My Rant with AMP Futures
Trading Reviews and Vendors
EA
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
TopStep Trader disappointment
2 thanks
Want your NinjaTrader indicator created, free?
1 thanks
  #2 (permalink)
k6webhm
Washington DC
 
Posts: 2 since Jan 2018
Thanks Given: 0
Thanks Received: 3

declare lower;

#RS
input CorrelationWithSecurity = "SPX";
def close2 = close(CorrelationWithSecurity);

plot RS = if close2 == 0 then 0 else close/close2;
RS.setDefaultColor(GetColor(6));

def sr = CompoundValue("historical data" = RS, "visible data" = if isNaN(sr[1]) then RS else sr[1]);
plot SRatio = sr;
SRatio.setDefaultColor(GetColor(5));

#EMA of RS
input price = close;
input length = 20;
input displace = 0;
input showBreakoutSignals = no;

plot AvgExp = ExpAverage(RS[-displace], length);
plot UpSignal = RS crosses above AvgExp;
plot DownSignal = RS crosses below AvgExp;

UpSignal.SetHiding(!showBreakoutSignals);
DownSignal.SetHiding(!showBreakoutSignals);

AvgExp.SetDefaultColor(GetColor(1));
UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);


Reply With Quote
Thanked by:
  #3 (permalink)
TradingForALiving
Miami Florida US
 
Posts: 16 since Oct 2015
Thanks Given: 6
Thanks Received: 1


This is exactly what I was looking for..... Thank you so much, its greatly appreciated!


Reply With Quote




Last Updated on October 8, 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