NexusFi: Find Your Edge


Home Menu

 





Plot Daily Moving Averages on Intraday Chart


Discussion in ThinkOrSwim

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




 
Search this Thread

Plot Daily Moving Averages on Intraday Chart

  #1 (permalink)
brothernumpcee
Houston,TX
 
Posts: 4 since Jan 2018
Thanks Given: 0
Thanks Received: 1

Hello Everyone,

I’m trying to figure out how I can plot 1Y daily Moving Averages on an intraday chart. Essentially, I want to plot the 13, 50, and 200 day MA on the daily as horizontal lines on my intraday chart. As you know, MA can represent strong support/resistance zones on the daily and it would be convenient to see this directly on my intraday chart. I will appreciate if someone can share a script or snippet I can tinker with to try and figure this out.

Thanks a lot!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
devildriver6
Dallas, Texas
 
Posts: 43 since Jun 2015
Thanks Given: 2
Thanks Received: 32


brothernumpcee View Post
Hello Everyone,

I’m trying to figure out how I can plot 1Y daily Moving Averages on an intraday chart. Essentially, I want to plot the 13, 50, and 200 day MA on the daily as horizontal lines on my intraday chart. As you know, MA can represent strong support/resistance zones on the daily and it would be convenient to see this directly on my intraday chart. I will appreciate if someone can share a script or snippet I can tinker with to try and figure this out.

Thanks a lot!


To use higher period MA's on lower period charts, you can do the following....
The BOLD piece is what changes the period it's applied as.
The line length will be as long as the period is.... for instance, on a 5 minute chart, if you're tracking a 1 hour MA, it'll be 12 bars long.
On the same 5 minute chart, the daily will be horizontal for the entire day, then adjust the next day.


input Period = aggregationPeriod.DAY;
input AvgType = averageType.SIMPLE;
input Length = 13;


plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);

Reply With Quote
  #3 (permalink)
 
brewtrader's Avatar
 brewtrader 
Kaiserslautern, Germany
 
Experience: None
Platform: Sierra Chart and TOS
Broker: Infinity Futures, Interactive Brokers, and TDA
Trading: /RTY and /ES
Posts: 19 since Jul 2018
Thanks Given: 10
Thanks Received: 8


Cant' seem to make this work. I want to show the 200SMA from the daily chart on my 1m intraday chart. I copied the script and pasted it into a new TOS study. I changed the Period to 365, but It does not work. Any suggestions?

Reply With Quote




Last Updated on July 15, 2018


© 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