If you feel there is an issue with the platform, please isolate to as simple a script as possible, and provide the steps needed to see the issue. Send to [email protected] or attach to this thread.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Print()-how to limit output lines printed...
Collapse
X
-
Hi,
I forwarded the simplest compiled Stoch indicator with CrossAbove/Below and Print(). The problem: getting multiple lines of output per cross/arrow. Expected to see single arrow - single line of output. Hope to hear from you soon. Please help.
Regards, Art.
Comment
-
Art,
Please find attached output for running your indicator. I added CurrentBar to the print statement so you can see it is only printing one time per bar.
The code you have presented so far needs to be debugged and simplified. We unfortunately can't provide the debugging service you request, but have partners who offer this service.
Attached FilesRyan M.NinjaTrader Customer Service
Comment
-
All I need is to know is how to get the correct values from the first line of output and disregard the rest as only the first line brings the correct vals for some of my variables... In your attachment I see the same problem - many, many, many... lines of output per cross with bar count. Can you please email ([email protected]) or attach my whole script with your fix or just the Print() line from the script. I do not know how to add CurrentBar to Print() correctly. I tried to add CurrentBar as follows ... Print(.... +CurrentBar) at the end - does not help at all.
This is important issue to me and I intend to get level 2-3...10 support if needed and not bcs I have nothing better to do...
Thank you.
Regards, Art.Last edited by Art09; 11-16-2010, 11:01 AM.
Comment
-
Art, I'll ask Ryan to attach the script he created in his testing so you can check it out - if you currently do not have the skills to add the + CurrentBar for debug purposes I would suggest you take some time working through our coding tutorials showcased here -
Those will cover the basics you need to get going in NinjaScript.
Should you still have issues debugging you're code a NinjaScript consultant may be the best solution to get this professionally created for you, please see Ryan's link in the previous post for a list.
Thanks
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment