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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
153 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
133 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
128 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment