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

Bid/Ask Volume Update Frequency

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

    Bid/Ask Volume Update Frequency

    Hi,


    I couldn't find the answer so I started a new thread.

    I'm plotting using the GetCurrentAskVolume() and GetCurrentBidVolume() functions, but they are only getting updated on each tick, or when a trade is made.

    Is there a way to keep these continually updated as the Bid/Ask volumes change without trading?


    Thanks!
    Matthew

    #2
    Hello mattage86,

    Are you printing these in OnBarUpdate()?

    If so, this would print anytime the bar updates.

    You could instead use a timer..

    (edit corrected link to NT7 example)
    Last edited by NinjaTrader_ChelseaB; 09-12-2018, 07:03 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,


      Thanks for your quick reply. I am using OnBarUpdate().

      I like the timer idea, however won't this further delay the values being updated?


      My goal is to have my chart's volume data update as frequently as the ChartTrader Bid/Ask volumes are updated. So I need them to continually update in between ticks. Does that make sense?



      I'm brand new to programming for NinjaTrader so there may very well be something extremely basic that I'm not yet aware of.



      Matthew

      Comment


        #4
        Hello mattage86,

        The timer would triggering the frequency that you set this to and will be outside of OnBarUpdate.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Ok great. I will play with it.

          Are there any NT7 examples that you are aware of?

          Comment


            #6
            Hello mattage86,

            I see the example I linked in post #2 was for NT8. I corrected the link to examples for NT7.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              You’re awesome. Thanks for your help!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by itrader46, Today, 09:04 AM
              0 responses
              3 views
              0 likes
              Last Post itrader46  
              Started by timmbbo, Today, 08:59 AM
              0 responses
              1 view
              0 likes
              Last Post timmbbo
              by timmbbo
               
              Started by bmartz, 03-12-2024, 06:12 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by Aviram Y, Today, 05:29 AM
              4 responses
              14 views
              0 likes
              Last Post Aviram Y  
              Started by algospoke, 04-17-2024, 06:40 PM
              3 responses
              28 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X