How can this forecasted data be visually and correctly positioned on the chart? Plots can't have negative indexes, I'm also failing to see how to the Draw methods to accomplish this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Showing Series data to the right of the current bar?
Collapse
X
-
Showing Series data to the right of the current bar?
I'm developing an indicator that makes and estimation of any input Series into the future, from 1 to N bars forward from the last bar inclusive. The inputs series may have a Price Series overlay or not on their Y axis. Therefore, I'd need to present the "future data" as a price series overlay and sub panels as applicable.
How can this forecasted data be visually and correctly positioned on the chart? Plots can't have negative indexes, I'm also failing to see how to the Draw methods to accomplish this?Tags: None
-
Hello volIQ,
In general that is not possible because bars have not been built yet, that is the future. You would have to use OnRender and then use X/Y coordinates that are not linked to bars in order to project something to the chart edge. You can see the rendering code for the Ray tool for an example of the math involved in doing that.
-
I'll check the Ray tool, thanks for the lead.
Seems to me that this would be a wonderful enhancement request.
In reality algorithmic trading is all about predicting short term future values or state. Visually representing these predictions would help in asserting veracity / error rate of the prediction.
It would be very useful to enhance the Plot and Drawing Tools to accept negative bar numbers, i.e. a barnum of -1 = one bar into the future and appropriately draw on x and Y coordinates as applicable.
Comment
-
Hello volIQ,
Because the market is not know ahead of time its impossible to create bars in the future for the bars ago system. The only other way to project into the future would be to move the chart bars to the left using the charts properties and then draw in the empty space using X/Y coordinates using rendering and math where there are no bars. You can use math and rendering like the Ray tool to extend a line to the chart panel in a specific direction but there are no bars to reference in that direction so anything would be a rendering at that point.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment