Draw yesterday's high on streaming 15 min chart
Author: kelvinyip
Creation Date: 6/27/2019 8:38 PM
profile picture

kelvinyip

#1
Eugene, any sample on drawing yesterday's high on today's chart while the chart is streaming (15 mins) ?
I was trying to draw using 2 points, the 1st point is today's intraday bar ==0 but the 2nd point I want would be the streaming last bar's bar number... I see other post giving out code to access the last streaming bar...

Is that the way to do it or there is a much easier way ?
profile picture

Eugene

#2
The "last streaming bar" is incomplete and therefore cannot be used for plotting onto it. But you can draw a line from the first bar of today to the last charted bar (Bars.Count-1).

In Multi-Time Frame Analysis > Intraday/Daily section of the WealthScript Programming Guide, there's a how-to: "Overlay Daily Candlesticks on an Intraday Chart". Check out the sample code which shows how to refer to the key points.

Hope this helps.
profile picture

kelvinyip

#3
oh yeah bar -1... thanks. not enough sleep recently.
profile picture

Eugene

#4
You're welcome.
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).