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.
    Chris L.NinjaTrader Customer Service

    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.
      Chris L.NinjaTrader Customer Service

      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 RookieTrader, Today, 09:37 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by kulwinder73, Today, 10:31 AM
        0 responses
        7 views
        0 likes
        Last Post kulwinder73  
        Started by terofs, Yesterday, 04:18 PM
        1 response
        24 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by CommonWhale, Today, 09:55 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Working...
        X