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 futurenow, 12-06-2021, 05:49 PM
            18 responses
            879 views
            0 likes
            Last Post dj0ntz
            by dj0ntz
             
            Started by nailz420, 05-14-2025, 09:14 AM
            1 response
            118 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
            0 responses
            525 views
            1 like
            Last Post NinjaTrader_Brett  
            Started by domjabs, 05-12-2025, 01:55 PM
            2 responses
            85 views
            0 likes
            Last Post domjabs
            by domjabs
             
            Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
            1 response
            123 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Working...
            X