Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Last Traded Volume?

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

    Last Traded Volume?

    Hello,

    The only way I was able to calculate last traded volume is as such:

    double tradeVol = previousVol == 0 ? Volume[0] : Volume[0] - previousVol;
    previousVol = Volume[0];

    Is there any better way? Is there a variable that holds this info?

    Thanks,
    redduke

    #2
    On 6.5 you could track the OnMarketData events
    DierkNinjaTrader Customer Service

    Comment


      #3
      Hi Dierk,

      But as of current version, is the way I specified the only way?

      When is 6.5 coming out?

      Thanks,
      redduke

      Comment


        #4
        Sorry, I have not tested your code.
        NT6.5 is available as beta here: http://www.ninjatrader-support.com/v...ead.php?t=3994
        DierkNinjaTrader Customer Service

        Comment


          #5
          Dierk,

          Great news!!!!

          Are the code examples on how to use OnMarketData released as well? I also remember seeing posts that 6.5 will support accessing DOM and Time and Sales? Are these code examples also available?

          Thanks,
          redduke

          Comment


            #6
            Yes they are.
            http://www.ninjatrader-support.com/v...ead.php?t=3478

            Sample on OnMarketData is work in progress and will be posted at same location.
            DierkNinjaTrader Customer Service

            Comment


              #7
              Thanks you very much for this great info.

              Regards,
              redduke

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rafaelabe1977, Today, 08:34 AM
              2 responses
              4 views
              0 likes
              Last Post s.kinra
              by s.kinra
               
              Started by ayrton74, Today, 08:40 AM
              1 response
              2 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by qm trader, Yesterday, 05:51 PM
              2 responses
              24 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by pdennis, Today, 07:43 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by NinjaTrader_Brandon, Today, 07:49 AM
              0 responses
              14 views
              0 likes
              Last Post NinjaTrader_Brandon  
              Working...
              X