Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Showing Series data to the right of the current bar?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment


      #3
      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


        #4
        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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X