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 Barry Milan, Today, 10:35 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by WeyldFalcon, 12-10-2020, 06:48 PM
      14 responses
      1,428 views
      0 likes
      Last Post Handclap0241  
      Started by DJ888, Yesterday, 06:09 PM
      2 responses
      9 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      40 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Today, 08:51 AM
      2 responses
      16 views
      0 likes
      Last Post bill2023  
      Working...
      X