• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot T&S in chart

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

    Plot T&S in chart

    Hi, how can I plot T&S feed to be overlaid on the chart?

    I am able to pull the T&S data and display the most current T&S data in the top right, top left, bottom right, bottom left, or center location. However it is only showing me the most current data, I want to be able to collect and display all of the incoming data in a column on the chart.

    For example, have the last 50 T&S plots coming down from the top left side of the chart in a column.
    Last edited by brucelevy; 09-06-2016, 01:26 PM.

    #2
    Hi brucelevy,

    This would require a custom coded indicator to achieve.

    Attached is an example indicator that demonstrates how to find the information displayed in the Time & Sales windows to the output window running from a chart.

    With NinjaTrader 7, you can add this text to a text box using supported methods, however, this would not be scroll-able.
    http://ninjatrader.com/support/helpG...7/drawtext.htm
    http://ninjatrader.com/support/helpG...wtextfixed.htm

    Using unsupported methods, you could create a custom panel on the chart to display this information by modifying the chart controls.

    Attached is another example that demonstrates how to use unsupported and undocumented methods to add a custom panel to a chart.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I see the new window added to the side of the chart, but under where can I enter data to plot? I can't seem to get any text to show up in the new window.

      Comment


        #4
        Hello brucelevy,

        You would need to use winform code to add controls to the panel.

        _windowPanel.Controls.Add(myObject);

        Keep in mind that doing this is not supported by NinjaTrader Support to do. This example I provided you is an unsupported example that is meant to steer you in the right direction.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks, I am just having trouble getting the T&S data to load from top to bottom. It is doing it in the output window but only showing one refreshing line of text in the new window panel.

          Comment


            #6
            Hello brucelevy,

            You would need to be aggregating the data to a larger string.

            string resultString += string.Format( "{0:HH:mm:ss} | last: {1:0.00}, ask: {2:0.00}, bid: {3:0.00} | volume: {4} | color: green", e.Time, e.Price, askPrice, bidPrice, e.Volume );

            Then setting that resultString to a textbox or some other type of control and that control would be placed within the panel.

            As this is not supported by NinjaTrader Support to do, I would not be able to assist with this.
            This thread will remain open for any community members that would like to assist.

            You can also contact one of our professional NinjaScript Consultants who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like our business development follow up with you with a list of professional NinjaScript Consultants who would be happy to create this script or any others at your request.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sgordet, Today, 10:31 PM
            0 responses
            1 view
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by Ilpropio, Today, 09:45 PM
            0 responses
            2 views
            0 likes
            Last Post Ilpropio  
            Started by Revan, Today, 05:44 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_Marco  
            Started by superg3, Today, 07:57 PM
            0 responses
            4 views
            0 likes
            Last Post superg3
            by superg3
             
            Started by Longhornmark, Today, 07:06 AM
            5 responses
            35 views
            0 likes
            Last Post nkhoi
            by nkhoi
             
            Working...
            X