Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing to OutputWindow from DrawingTools

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

    Printing to OutputWindow from DrawingTools

    I am starting to create a new DrawingTool.
    How do I Print to the OutputWindow from a DrawingTool script?

    I have tried the following and nothing shows up in th NinjaScript Output window:
    Print("OnMouseDown");
    Print(String.Format("Method: {0}", "OnMouseDown" ));
    NinjaTrader.Code.Output.Process(string.Format("Met hod: {0}", "OnMouseDown"),PrintTo.OutputTab1):

    Thanks

    #2
    Hello,

    I am reviewing your inquiry and will be back with a reply shortly.

    I look forward to assisting further.

    Comment


      #3
      Hello,

      Thank you for your patience.

      To make sure output is printed to the output window we will use this call:
      Code:
      NinjaTrader.Code.Output.Process("message", PrintTo.OutputTab1);
      There are several event driven methods in draw object code.

      OnMouseDown, OnChartMouseDown, OnRender, etc..

      Could you please post the entire OnMouseDown method in your script so I may investigate this matter further?

      I look forward to your reply.

      Comment


        #4
        Thanks for the confirmation. It works on one of the drawing tools I created but not the other. On the one it does not work I am guessing it has serious issues but I am not seeing any error messages or entries into the log. I will keep working on it to discover the problem or it may need to be deleted and start over.

        Thanks again.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        80 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        46 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
        66 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X