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,592 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?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
30 Sessions
21 thanks
Sober Journey With S&P
21 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 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