Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bid/Ask Volume combined with Hist Volume

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

    #16
    Bid & ask hist volume

    Hello,

    Anybody here can explain How the Logic work with this indicator please.

    Thank you

    Alain

    Comment


      #17
      Hello I need exactly this indicator but i need this:

      protected override void OnMarketData(MarketDataEventArgs e)
      {
      if (e.MarketDataType == MarketDataType.Ask)
      askPrice = e.Price;
      else if (e.MarketDataType == MarketDataType.Bid)
      bidPrice = e.Price;
      else if (e.MarketDataType == MarketDataType.Last)
      {
      if (askPrice > 0 && e.Price >= askPrice)
      buys += e.Volume;
      else if (bidPrice > 0 && e.Price <= bidPrice)
      sells += e.Volume;
      }
      }

      working on historical data - using cqg from nt. is it possible? and how do i get it?

      well i need on candle close get volume ask and volume bid on close of the candle.. or is there another way?
      thankx a lot
      Paul

      Comment


        #18
        Hello kujista,

        Thanks for your post.

        We are sorry this post has been missed and we will be investigating what had happened here so we can fix any issues that have caused this post to be missed.

        OnMarketData can only be used with Realtime data. In NinjaTrader 8, the Tick Replay feature can be enabled to allow for OnMarketData to be played back historically.

        Please see the link below for details.



        You can also use a Multi Time Frame approach in NinjaTrader 8 which would be less resource intensive than Tick Replay. Please see the example attached.

        Please let us know if we can be of further assistance.

        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        56 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X