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 geddyisodin, 04-25-2024, 05:20 AM
      8 responses
      58 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      4 responses
      3,285 views
      1 like
      Last Post jgualdronc  
      Started by Option Whisperer, Today, 09:55 AM
      0 responses
      5 views
      0 likes
      Last Post Option Whisperer  
      Started by halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      22 views
      0 likes
      Last Post halgo_boulder  
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Working...
      X