NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe MA on 1 chart with label


Discussion in ThinkOrSwim

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




 
Search this Thread

Multi Timeframe MA on 1 chart with label

  #1 (permalink)
mwmarketing
Ladson sc USA
 
Posts: 1 since Dec 2015
Thanks Given: 0
Thanks Received: 0

looking for an addon to the code below or re write to display the average of all MA in a label across multiple time frames on 1 chart. example if 55MA is 200 on 1hr chart and the 55ma on 15 min is 195 the average would be 197.5

I would want 8ma, 55ma, 21ma and 233ma
across 1,2,5,10,20,30,55 time frames.


below is my MA code any help is appreciated!

 
Code
plot CCr = Average(close, 2);
CCr.SetDefaultColor(Color.RED);
CCr.SetLineWeight(3);

plot CCg = if !IsNaN(close) then Average(close[3], 3) else Double.NaN;
CCg.SetDefaultColor(CreateColor(51,255,18));
CCg.SetLineWeight(2);

plot ma8 = ExpAverage(close, 8);
ma8.SetDefaultColor(Color.YELLOW);
ma8.SetLineWeight(3);

plot ma21 = ExpAverage(close, 21);
ma21.SetDefaultColor(Color.BLUE);
ma21.SetLineWeight(3);

plot ma233 = Average(close, 233);
ma233.SetDefaultColor(Color.BLACK);
ma233.SetLineWeight(3);

plot ma55 = Average(close, 55);
ma55.SetDefaultColor(Color.DARK_ORANGE);
ma55.SetLineWeight(3);

Reply With Quote




Last Updated on December 13, 2015


© 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