Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        19 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        3 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by XXtrader, Yesterday, 11:30 PM
        0 responses
        4 views
        0 likes
        Last Post XXtrader  
        Working...
        X