Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OrderFlowCumulativeDelta Sync

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

    OrderFlowCumulativeDelta Sync

    Hi,

    in my strategy I have 60 min bars, using Calculate.OnEachTick, therefore I am not adding BarsPeriodType.Tick to update the OrderFlowCumulativeDelta indicator.

    As a secondary dataseries I have AddDataSeries(BarsPeriodType.Minute, 5);

    As I need to sync the OrderFlowCumulativeDelta indicator with the secondary 5 min bar series, what is the correct way to do that? Is the following correct?

    OrderFlowCumulativeDelta(BarsArray[1], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).Update(OrderFlowCumulativeDelta(BarsArray[1], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).BarsArray[0].Count - 1, 1);
    Thank you
    Martin


    #2
    Hello martin70,

    Thank you for your inquiry.

    Note this indicator runs off tick data, so a 1-tick series must be added in order for it to run (even if you are using Calculate.OnEachTick).

    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


    However, you can still supply the 5-minute bars as the data series to your indicator call (like your post notes). Just make sure you update the secondary series of your hosted indicator (from the BIP index of the 1-tick series) to make sure the values are in sync, as shown in the examples from the link above.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X