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 michi08, 10-05-2018, 09:31 AM
              3 responses
              740 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by sightcareclickhere, Today, 01:55 PM
              0 responses
              1 view
              0 likes
              Last Post sightcareclickhere  
              Started by Mindset, 05-06-2023, 09:03 PM
              9 responses
              258 views
              0 likes
              Last Post ender_wiggum  
              Started by Mizzouman1, Today, 07:35 AM
              4 responses
              18 views
              0 likes
              Last Post Mizzouman1  
              Started by philmg, Today, 01:17 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Working...
              X