Announcement

Collapse
No announcement yet.

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 sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      77 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      313 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      314 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      149 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      114 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X