Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OnMarketData generates strange value sometimes

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

    OnMarketData generates strange value sometimes

    Hi, Im using Zenfire and FDAX (Eurex) every dozen or so trades I am getting OnMarketData triggering with the data type set as last however when I read e.Price it is zero and e.Volume has a large (bigger than a real trade) number that appears to be some sort of sequence number.

    I guess the data feed is using this for something else probably the days total volume? Just checking.

    #2
    NickA, I'll give it a run here and will look into if expected or not - are you on NT7 R2 here?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      So far I'm not seeing it happen here, what code do you use printing in OnMarketData()?
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Hi Bertrand I am 99.9% sure it is a 'special' quote that give the cumulative volume for the day. Don't put yourself to any further trouble,

        Cheers.

        Comment


          #5
          If you just print the e.Price and dont filter for any event, then you could see all those being returned, one being the dailyVol - http://www.ninjatrader.com/support/h...aeventargs.htm
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Thanks,

            I think there may have been a bug in my code (print statement outside a conditional).

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ETFVoyageur, 04-30-2024, 02:04 PM
            11 responses
            94 views
            0 likes
            Last Post ETFVoyageur  
            Started by bubblegum, 03-18-2024, 10:41 AM
            3 responses
            43 views
            0 likes
            Last Post vjsworld  
            Started by JamesK1, Today, 02:48 PM
            1 response
            10 views
            0 likes
            Last Post JamesK1
            by JamesK1
             
            Started by llanqui, Today, 03:51 PM
            0 responses
            9 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by Quanto, 04-17-2024, 10:43 AM
            2 responses
            24 views
            0 likes
            Last Post Quanto
            by Quanto
             
            Working...
            X