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
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        191 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,230 views
        0 likes
        Last Post xiinteractive  
        Working...
        X