Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Optimizer throws assertion
Collapse
X
-
Thank you for your question traderpards. If you make your class abstract it will be invisible to the strategy analyzer. Abstract classes in C# do not share the limitations of abstract classes in other languages. I have attached a copy of the SampleMACrossover strategy. The only modifications to this strategy that were made were changing the name and adding the abstract keyword. Please let us know if there are any other ways we can help.Attached Files
Leave a comment:
-
Optimizer throws assertion
I have a strategy base class that doesn't do anything but support the class that inherits from it. It should never be called or even considered. So I assigned string.Empty to the name and that makes it so it doesn't appear in the UI and therefore can't be selected, which is what I want.
Unfortunately, the strategy analyzer doesn't like it. It throws a big assertion dialog that begins with "NS object with bad localized name."
Apparently, making this base class appear invisible requires more than making the name an empty string. So what's the right way to do that?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bomberone3, 07-16-2020, 05:01 PM
|
7 responses
373 views
0 likes
|
Last Post
![]()
by 00deluxe00
Today, 05:23 AM
|
||
Started by Jema1, Today, 12:23 AM
|
3 responses
22 views
0 likes
|
Last Post
![]()
by s.kinra
Today, 04:03 AM
|
||
Started by elliot5, Today, 03:09 AM
|
0 responses
4 views
0 likes
|
Last Post
![]()
by elliot5
Today, 03:09 AM
|
||
Started by soon123, Today, 12:51 AM
|
1 response
4 views
0 likes
|
Last Post
![]()
by s.kinra
Today, 03:51 AM
|
||
Started by soon123, Yesterday, 11:14 PM
|
1 response
12 views
0 likes
|
Last Post
![]()
by s.kinra
Today, 04:16 AM
|
Leave a comment: