Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print()

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

    Print()

    Ninja is crashing when I try to print. I am using NT 8.0.0.9. Just to test what the problem may be, I created an indicator that has Calculate = Calculate.OnEachTick. In OnBarUpdate(), I simply have:

    if (IsFirstTickOfBar)
    Print("Something\n");

    And NT crashes immediately every time I load this indicator. It never prints a single string. I am only loading 5 days of data. When I reopen Ninja, I get errors messages in the Logs that were supposedly caused by indicators that I do not have on a chart. Any ideas? Thanks.

    #2
    Hello,

    Thank you for the question.

    I tried the syntax provided but see no error when running it or any sign of a crash.

    Could you provide the whole script you are using for testing? Potentially this is caused by something else in the file and not that statement.

    Outside of checking the actual file, does this occur if you exclude that specific file from compilation and create a new file with the print statement?

    If you are getting other errors related to other indicators there is potentially something else happening that is causing the crash. Could you provide an image of the errors you are getting to further see what may be happening?


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    569 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X