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

Volume vs getCurrentBidVolume() or getCurrentAskVolume()

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

    Volume vs getCurrentBidVolume() or getCurrentAskVolume()

    I am working on an algorithm with volume and sales.

    with the time and sales as soon as a contract is bought or sold does the getCurrentBidVolume() get the last ticks volume or the whole volume of the candle. IE 1 min, 5 minute, range etc.

    what I want will result a delta value for myself. if at the end of Close[0] if the volume is negative then there were more bids than asks and vice versa.

    i will be working on calculate bar on close as false

    #2
    T&S is in the past.

    That is not current.

    Do you see otherwise?

    Comment


      #3
      Hello ballboy11, and thank you for your questions.

      Originally posted by ballboy11 View Post
      does the getCurrentBidVolume() get the last ticks volume or the whole volume of the candle
      The result of the attached script is

      getCurrentBidVolume is the last tick's volume
      Originally posted by ballboy11 View Post
      What I want will result in a delta value for myself. If, at the end of Close[0], the volume is negative, then there were more bids than asks, and vice versa.
      Please review the documentation here on creating a Level 2 book. We are happy to help with any specific questions that come up. I have included an example to help you get started.

      Attached Files
      Jessica P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by dustydbayer, Today, 01:59 AM
      0 responses
      1 view
      0 likes
      Last Post dustydbayer  
      Started by inanazsocial, Today, 01:15 AM
      0 responses
      2 views
      0 likes
      Last Post inanazsocial  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      10 views
      0 likes
      Last Post guillembm  
      Working...
      X