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

Question BuySellStrength Indicator...

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

    Question BuySellStrength Indicator...

    In the Indicators area...looking at the BuySellStrength indicator... looking at the Ninjascript....the bidvol and askvol therein...do those represent the actual trade volume at each tick ?

    Thanks

    #2
    Hello Alfred,

    int bidvol = GetCurrentBidVolume();
    int askvol = GetCurrentAskVolume();

    This represents the current volume for the best bid and best ask.


    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      In an indicator...how does one get the actual buy & sell trade volume as shown in the time and sales window ??

      Thanks
      Last edited by Alfred; 12-23-2010, 08:49 AM.

      Comment


        #4
        Hello Alfred,

        You can work with OnMarketData() to capture the stream of level I data.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          OnMarketData backfill

          Will this backfill if I lose my connection for a few seconds?

          Thank you.

          Comment


            #6
            Originally posted by DudaoRJ View Post
            Will this backfill if I lose my connection for a few seconds?

            Thank you.
            Hello DudaoRJ,

            Thank you for your post.

            This would not backfill as OnMarketData() and GetCurrentBidVolume() and GetCurrentAskVolume() are real-time only.

            Please let me know if you have any questions.

            Comment


              #7
              Thank you for your reply. Is the backfill available in NT8 in some way? I'd need historical bid/ask best levels to compare them with tick prices. But I need it to backfill. Thank you.

              Comment


                #8
                Hello DudaoRJ,

                Thank you for your response.

                NinjaTrader 8 has the option to use Tick Replay which will trigger last events in OnMarketData. You can use this to backfill objects that generally use the real-time updates.

                You can find documentation on developing for Tick Replay and using Tick Replay at the following links:

                Please let me know if you have any questions.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by nandhumca, Today, 03:41 PM
                0 responses
                1 view
                0 likes
                Last Post nandhumca  
                Started by The_Sec, Today, 03:37 PM
                0 responses
                3 views
                0 likes
                Last Post The_Sec
                by The_Sec
                 
                Started by GwFutures1988, Today, 02:48 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by ScottWalsh, 04-16-2024, 04:29 PM
                6 responses
                32 views
                0 likes
                Last Post ScottWalsh  
                Started by frankthearm, Today, 09:08 AM
                10 responses
                36 views
                0 likes
                Last Post frankthearm  
                Working...
                X