Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

? Add future (predicted) data to DataSeries object?

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

    ? Add future (predicted) data to DataSeries object?

    Hello,

    Is it possible to add future data to DataSeries object? I need to create object with realtime & predicted data & have a possibility to use standard technical analysis functions against it.

    Thanks,
    Igor

    #2
    Igor, you could populate your custom DataSeries with any value needed, however we would not allow peeking into the future thus the most current index position you can use is the currentbar (0).

    Comment


      #3
      Igor,

      I have already turned in a request that they change this behavior.

      I do not see that looking into the future is even possible as long as they do not provide future bar data (either make the bar data be a subclass of DataSeries whose indexer prevents forward references, or else make the values be a subclass with an indexer that permits forward references). And even if you could see future data I'm not sure that would be any worse than any other logic error in programming an indicator.

      I recently needed it for the same reason you do -- I needed to store predicted data (to fill in the tails of a left-shifted moving average with predicted values). The fact I could not do so complicated my life a great deal, and ended up taking longer than it should have to program that.

      I really do hope that they recognize that there can be a valid need to write predicted data (and to read that data for debugging).

      --EV

      Comment


        #4
        Yes, ETFVoyageur, now it will take a lot of efforts to emulate something like MA line looking into the future.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        310 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        349 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X