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

Traded at Bid or Ask

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

    Traded at Bid or Ask

    Hi

    What is the best way to determine if a price coming through was traded at the bid or ask. I see the functions GetCurrentBid() and GetCurrentAsk() but if I get a price Close[0] and then call these functions will they return data that was in synch with the price I have recieved (Close[0]) or is it possible that in the time I have made the call to GetCurrentBid()/getCurrentAsk() that they could have moved from where they were when the last trade was made at Close[0].

    What a lot of ramble ... basically what is the best way to determine if a the trade at Close[0] was done at the bid or ask.

    Many Thanks

    Paul

    #2
    Hi Paul, you can take a look at the BuySellVolume code for the core logic, then modify it as you need it - http://www.ninjatrader-support.com/H...ndicators.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Hi Paul, you can take a look at the BuySellVolume code for the core logic, then modify it as you need it - http://www.ninjatrader-support.com/H...ndicators.html
      Hi Bertrand

      Many Thanks

      Paul

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by f.saeidi, Yesterday, 02:09 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Jltarrau, Today, 05:57 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by kujista, Today, 06:23 AM
      0 responses
      2 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by traderqz, Yesterday, 04:32 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by f.saeidi, Today, 05:56 AM
      1 response
      5 views
      0 likes
      Last Post Jltarrau  
      Working...
      X