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 jaybedreamin, Today, 05:56 PM
    0 responses
    3 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Working...
    X