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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    111 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    59 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    37 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    41 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    78 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X