Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can i put block trades on the chart ?

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

    How can i put block trades on the chart ?

    The block trades comes in T&S window, how can I plot them on the chart ?

    Any suggestion please.

    #2
    Darshiit, you would need to create a custom indicator in NinjaScript to plot / identify those. For accessing market data streams, you can use OnMarketData() (Level1) and OnMarketDepth() (Level2).

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Darshiit, you would need to create a custom indicator in NinjaScript to plot / identify those. For accessing market data streams, you can use OnMarketData() (Level1) and OnMarketDepth() (Level2).
      Thanks Bertrand,

      I m having Data Level I, Can u please build sample code. C# is new to me, so will take time in building indicators. Later on will share many as once if i get familiar with it.

      Comment


        #4
        Unfortunately I'm not aware of a direct sample for this, to get you started, please take a look at this page - http://www.ninjatrader-support.com/H...arketData.html

        For creating your own Level 2 book, you can review this - http://www.ninjatrader-support2.com/...ead.php?t=3478

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Unfortunately I'm not aware of a direct sample for this, to get you started, please take a look at this page - http://www.ninjatrader-support.com/H...arketData.html

          For creating your own Level 2 book, you can review this - http://www.ninjatrader-support2.com/...ead.php?t=3478
          I've already looked into it. But i m not able to find function for LastTradeSize , Will be thankful if anyone can help me out with this.

          Comment


            #6
            OnMarketData'a Last price would also have the volume you can access -

            Code:
            if (e.MarketDataType == MarketDataType.Last) 
                    Print("Last = " + e.Price + " " + e.Volume);

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            38 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            63 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X