Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketDataType.DailyVolume

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

    MarketDataType.DailyVolume

    looking for clarification in following code snippet

    protected override void OnMarketData(MarketDataEventArgs e)
    {

    if (e.MarketDataType == MarketDataType.DailyVolume)
    Print("Last = " + e.Price + " " + e.Volume);

    }

    When e.MarketDataType = MarketDataType.DailyVolume

    1.) Is e.Volume the daily volume at e.Price ?

    2.) Does this event occur at every trade at e.Price?

    3.) Assuming the above answers are yes, is the daily summation logic based on the session start configuration settings in NT chart or is it based on some value of the instrument as defined by the data provider? When does the summation reset?
    Last edited by tulanch; 10-03-2014, 05:31 PM.

    #2
    Hello Tulanch,

    Thank you for your note

    1) e.Volume will be the volume of the DailyVolume in this regard.

    2). No, this event will only occur when the MarketData being called is DailyVolume.
    Think of the condition as a filter. When ever OnMarketData() gets called only the one tick data with DailyVolume will cause the condition to be true.

    3) This data is provided by the data vendor. You would need to contact them about when the this summation is reset.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    6 responses
    36 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X