Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

General question

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

    General question

    Hello,
    This is going to be a very unspecific question. I'll do the best I can to explain myself. I have a situation with an indicator I've created where occasional it will print my dot without all the conditions being satisfied. Is there a way (like TraceOrder) to track down a specific instance of an indicator?
    Thanks

    #2
    Hello,

    Thanks for the note.

    It is best to use the below technique to debug your code and figure out what is causing it.



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks for the information. I printed a string message in the Output Window, but there was no time or date. I looked in Help, but couldn't find the info I was hoping for. Can you give me an example of how to combine the string with a date and time? Thanks.

      Comment


        #4
        Hello,

        Sure,

        Print(Time[0] + " I Worked ");

        You can use Time[0] and use a + between variables or strings to concatenate them together.

        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        157 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        91 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        143 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        130 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X