Plot weekly data on to an intraday chart
Author: Starburst
Creation Date: 4/6/2019 6:00 PM
profile picture

Starburst

#1
What is be the best coding technique or work a round to plot daily or weekly data on to an intraday chart only if they are within the high or low for the day or a defined price range for that day so as to not crunch the screens intraday data into a straight line?
Thank you for your help.
profile picture

Eugene

#2
I'd start with the WealthScript Programming Guide > Multi-Time Frame Analysis > Intraday/Weekly,Monthly chapter:

CODE:
Please log in to see this code.
profile picture

Starburst

#3
Here is what I came up with. Is this the best way to do this by turning the plots on or off as you encounter them?
CODE:
Please log in to see this code.

profile picture

Eugene

#4
Looks good on the surface. Since your code evaluates the PlotEMA...dlyOn / PlotEMA...wkOn variables only once @ ( bar == Bars.Count - 1 ) then turning the plots on or off is OK.
profile picture

Starburst

#5
Thank you Eugene you’re the best.
profile picture

Eugene

#6
Thank you for the kind words!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).