NexusFi: Find Your Edge


Home Menu

 





Chart label for RSI, EMA16, SMA 50, SMA 200 for TOS


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
sunnysca
lake city Fl
 
Posts: 1 since Nov 2016
Thanks Given: 0
Thanks Received: 0

Hello

i was looking for study to get chart label for TOS chat and this is what i found

def rsi = RSIWilder("over bought" = 95, "over sold" = 5, price = close(period = AggregationPeriod.FOUR_DAYS));
AddLabel(yes, rsi, if rsi >= 95 or rsi <= 5 then Color.RED else Color.WHITE);


but how about instead of four days i want for month i try to change it but value is not right

please guide me actually i was looking to have Chart label for RSI SMA 50 SMA 200 And ema 16


once again thanks


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
 
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
30 Sessions
1 thanks
Big Mike in Ecuador
1 thanks
  #2 (permalink)
devildriver6
Dallas, Texas
 
Posts: 43 since Jun 2015
Thanks Given: 2
Thanks Received: 32


sunnysca View Post
Hello

i was looking for study to get chart label for TOS chat and this is what i found

def rsi = RSIWilder("over bought" = 95, "over sold" = 5, price = close(period = AggregationPeriod.FOUR_DAYS));
AddLabel(yes, rsi, if rsi >= 95 or rsi <= 5 then Color.RED else Color.WHITE);


but how about instead of four days i want for month i try to change it but value is not right

please guide me actually i was looking to have Chart label for RSI SMA 50 SMA 200 And ema 16


once again thanks

If I'm reading this correctly, you simply want an adjustable aggregation?
Try adding this...

input Period = aggregationPeriod.Month;

...then replacing the current non-adjustable aggregation period phrase with the input phrase of Period, like this...

def rsi = RSIWilder("over bought" = 95, "over sold" = 5, price = close(period = Period));
AddLabel(yes, rsi, if rsi >= 95 or rsi <= 5 then Color.RED else Color.WHITE);

Also, rather than referencing, you might want to consider using the inputs, for adjust-ability later.

Final note - the Wilders average type is default in the RSI, so the correct language for this is as follows edits highlighted....

input period = AggregationPeriod.MONTH;

def rsi = reference RSI("over bought" = 95, "over sold" = 5, price = close(period = period));
AddLabel(yes, rsi, if rsi >= 95 or rsi <= 5 then Color.RED else Color.WHITE);


Reply With Quote




Last Updated on November 16, 2016


© 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