Plotting intraday bars up to a certain time.
Author: redliontrader
Creation Date: 10/10/2008 4:43 PM
profile picture

redliontrader

#1
I want to plot bars say from whenever up to a certain time during the day. The range setting works for daily bars in the scale/data range section, but there is no end time for intraday plots.

I want to be able to plot a chart and see what it looked like at 11:30am on April 20th, with no bars plotted beyond that point.

Hints?

RLT
profile picture

Cone

#2
Use the horizontal scrollbar or just click and drag the chart until you hide what you don't want to see.
profile picture

redliontrader

#3
But I want to drag a linear regression channel backward with the scroll bar. Is there someway to find out the last bar displayed on the screen?
profile picture

Cone

#4
Assuming the Candlestick ChartStyle -

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

redliontrader

#5
You get what you ask for.

That does work. But moving the scroll bar does not recalculate the indicators. Is there not anyway to only draw up to a certain bar?
profile picture

Cone

#6
Okay, why do you only want to draw up to a certain bar? I mean, I can tell you how to hide the plot of an indicator after a certain bar, but I've already given you 2 solutions for your request and you're still not satisfied.

What are you after and why?

I know that you only want to load an intraday chart up to a certain time of day, but you already know that's not possible. But if you just don't want to see what comes next, the scroll bar works very well.

(Well, anything's possible - you could create your own custom adapter with a U.I. to deal with for each chart request. But at this point, I don't know why anyone would be motivated to do such a thing.)
profile picture

redliontrader

#7
I want a playback simulator.

I want to see the chart and indicators as they would have develop in real-time (or much faster of course).

Scrolling one bar at a time with the mouse works fine for continuous indicators. But for a linear regression channel or trend lines that are redrawn on a bar by bar basis the scrolling doesn't work.

profile picture

Cone

#8
This will have to be done in the same way Aleksey did it for Version 4 - by creating a streaming adapter that reads static data files. That type of work will have to wait until we get our real streaming adapters in place.

We also need to get the LinearRegLine function in Version 5. With that, you can draw your own regression channel that updates with the chart. In fact, with the code to determine the displayed bar numbers, that would be all you need.
profile picture

redliontrader

#9
Is there anyway to set the LeftEdgeBar property?
A method to scroll the chart?
profile picture

Cone

#10
No, no.
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).