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,674 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
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
 
  #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