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).
    BertrandNinjaTrader Customer Service

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

        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);
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Started by samish18, 04-17-2024, 08:57 AM
            16 responses
            60 views
            0 likes
            Last Post samish18  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            9 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            18 views
            0 likes
            Last Post traderqz  
            Started by algospoke, 04-17-2024, 06:40 PM
            5 responses
            47 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X