Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Generated Code Bug with Commented out Properties
Collapse
X
-
Generated Code Bug with Commented out Properties
It seems as though the generated code ignores when properties are commented out with the /* */ syntax. It still tries to include input parameters that are commented out into the generated code.Tags: None
-
Thanks Chelsea. That actually didn't work in this case. I had to delete out the commented out properties for it to compile. I think the code parser is ignoring the comment syntax for some reason.
Comment
-
I have come across it too at times. The issue though seems to be inconsistent. Usually I just switch to inline comments from the block comment, though on occasion I have had to restore the property, compile successfully, then delete the property and recompile.Originally posted by GrumpyTrader View PostIt seems as though the generated code ignores when properties are commented out with the /* */ syntax. It still tries to include input parameters that are commented out into the generated code.
As Chelsea says, sometimes the only resolution has been to copy the code into another indicator and delete the errant one before compiling.
Comment
-
Hi Chelsea,
I copied it to a new indicator, but I didn't delete the old one. The only way to fix it was to delete the commented out properties.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, Today, 06:46 AM
|
0 responses
11 views
0 likes
|
Last Post
by Mindset
Today, 06:46 AM
|
||
|
Started by M4ndoo, Yesterday, 05:21 PM
|
0 responses
17 views
0 likes
|
Last Post
by M4ndoo
Yesterday, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
15 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
82 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
48 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment