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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    164 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    317 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X