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 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
    42 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