Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketDataType.DailyVolume???

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

    MarketDataType.DailyVolume???

    Hi, I would like to know what kind of volume this is? Why is the value not the same as with the volume indicator on a daily basis?

    I have a strategy (OnBarClose) and would like to process the intraday volume. That's why I wanted to do this with this method, and have noticed that the volumes are not the same.

    Code:
    if (e.MarketDataType == MarketDataType.DailyVolume)
    {[INDENT]CurrentDayVolume = e.Volume;[/INDENT]
     }
    Attached Files
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    The MarketDataType.DailyVolume would be the daily volume metric which your data provider has calculated on the server side. That could be different from the volume series for a variety of reasons such as the session which that was counting volume for. If you are trying to calculate the daily volume from any series then you would need to use the historical Volume series or count the volume which is coming in with the OnMarketData override and MarketDataType.Last events. You can see the .VolumeCounter indicator for an example of working with the Volume series or the VolumeProfile indicator for working with the OnMarketData volume.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X