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

GetCurrentAskVolume()

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

    GetCurrentAskVolume()

    Just to Verify, Get CurrentAskVolume. is that the current volume bought or sold per tick? Is there a way to tell if it was a sell order of a buy order such as buy ask, buy market or buy bid.
    I want to record the differences between the 3

    #2
    Hello ballboy11,

    Thanks for your post.

    GetCurrentAskVolume() will return the current realtime Ask volume.

    Using GetCurrentAskVolume() and running the script with Calculate.OnEachTick will return the current Ask volume for each incoming tick.

    OnMarketData() could be used to get the Last, Ask, and Bid volume values. See this BuySellVolume indicator that comes default with NinjaTrader to see how to differentiate Ask and Bid volume. To view the script, open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the BuySellVolume indicator.

    See the help guide documentation linked below also for more information and sample code.

    GetCurrentAskVolume(): https://ninjatrader.com/support/help...taskvolume.htm
    OnMarketData(): https://ninjatrader.com/support/help...marketdata.htm

    Let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Aviram Y, Today, 05:29 AM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by bmartz, 03-12-2024, 06:12 AM
    3 responses
    30 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X