Plotting Into The Future

optim

New member
Joined
Feb 19, 2021
Posts
1
Likes
0
Hi All,

I have a number of indicators and data series that I would like to plot to the right of the current bar. Basically, the data is predictions from a series of machine learning models that I would like to show as a Path plotted into the future. I'm not sure if this is something the platform can already handle, or if I need to plot it myself using the Graphics2D handle?

Has anyone done something similar?

Thanks,

Daniel
 
If you know what value needs to go where (if you can calculate them into the future), I guess you could use index + (a number of bars into the future) to draw your lines. Just store the values like this:

Java:
series.setDouble(index+(numberOfBarsIntoTheFuture), valueName, Value);

and plot the lines as a path using that valueName.


Haven't tested this yet, though
 
Last edited:
Top