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 r68cervera, Today, 05:29 AM
        0 responses
        3 views
        0 likes
        Last Post r68cervera  
        Started by geddyisodin, Today, 05:20 AM
        0 responses
        6 views
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        35 views
        0 likes
        Last Post JonesJoker  
        Started by GussJ, 03-04-2020, 03:11 PM
        12 responses
        3,240 views
        0 likes
        Last Post Leafcutter  
        Started by AveryFlynn, Today, 04:57 AM
        0 responses
        7 views
        0 likes
        Last Post AveryFlynn  
        Working...
        X