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 mattlaguardia, Today, 07:25 AM
    0 responses
    7 views
    0 likes
    Last Post mattlaguardia  
    Started by TheTradingMantis, 12-21-2022, 07:55 AM
    3 responses
    23 views
    0 likes
    Last Post TheTradingMantis  
    Started by birdog, Today, 06:56 AM
    0 responses
    13 views
    0 likes
    Last Post birdog
    by birdog
     
    Started by TallTim, Yesterday, 06:13 AM
    3 responses
    51 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Entwaze, Today, 06:41 AM
    0 responses
    19 views
    0 likes
    Last Post Entwaze
    by Entwaze
     
    Working...
    X