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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X