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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            85 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            67 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X