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,239 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
32 thanks
Just another trading journal: PA, Wyckoff & Trends
23 thanks
Trading with Intuition
17 thanks
Self sabotage reframed
11 thanks
ApexTraderFunding.com experience and review
10 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


© 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