Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Exported DLL and Strategy Analyzer
Collapse
X
-
Hello -=Edge=-,
Thank you for your updates on this matter.
We are looking into this on our end. I can confirm I see the same issue.
-
Originally posted by -=Edge=- View PostJust wanted to check back to see if you were able to duplicate what I am experiencing?
Code:[COLOR=#080808]IsInstantiatedOnEachOptimizationIteration[/COLOR] = [COLOR=#0000ff]true[/COLOR];
Last edited by -=Edge=-; 07-23-2015, 02:03 PM.
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello Edge,
Thank you for your update on this matter.
I had tested this previously and did not see the issue. I will test with your uploaded documents, and thank you for adding the disclaimer on the protected .dll file.
The dll is not protected or obfuscated in any way, and is nothing more than an exact copy of the SMA indicator renamed and exported as a non protected compiled assembly.. Just in case you wanted to try duplicating the export..
Leave a comment:
-
Hello Edge,
Thank you for your update on this matter.
I had tested this previously and did not see the issue. I will test with your uploaded documents, and thank you for adding the disclaimer on the protected .dll file.
Leave a comment:
-
Exported DLL and Strategy Analyzer
I brought up this issue during B2 and was told that it was fixed in B3, but I'm still experiencing the same issue... I'll try to explain using a simple example...
I've duplicated the default SMA indicator without any modifications and renamed it SMADLL.. I've exported it as a compiled assembly without any type of confuscation or protection.. The export produces SMADLL.dll and SMADLL.cs.. I've then copy'd and modified the default SampleMACrossOver strategy to use the new SMADLL indicator instead of the default SMA, and exported it as a normal cs file named SampleSMADLLCrossOver.cs .. I've also thrown in a couple print statements in the strat so that you can see what if any errors are happening..
All this was done under B3... Now on a Virtual Machine for testing purposes, with B3 installed as well.. I've imported both the above indicator and strat, as well as added the SMADLL into the references.. Now I open a new strategy analyzer and do a standard backtest using the SampleSMADLLCrossOver on a CL 08-15 1min chart, all default settings, while connected to Kinetick.. So far everything works fine..
Now, I change the BackTest type from Standard to Optimization, modify the Fast parameter to 10:20:1 and try to run it again.. At this point it does run the first backtest for Fast 10, but on all subsequent test 11-20 I get this printed in the output window..
------------------
System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.Indicators.Indicator.SMADL L(ISeries`1 input, Int32 period)
at NinjaTrader.NinjaScript.Strategies.SampleSMADLLCro ssOver.OnStateChange()
Object reference not set to an instance of an object.
------------------
Running this same strat the exact same way on the machine that has the SMADLL as a cs file works just fine.. It's only the machine that is using the dll that has the problem..
I've combined and included all the code in an importable zip file below. Import it into NT8 B3 as you would any script.. By importing this, it will add the SampleSMADLLCrossOver strategy to the strategies folder, the SMADLL dll and cs file to the custom folder, and will also automatically add the SMADLL as a reference without needing to do so thru the NSEditor...
Again, Please be Aware by importing this file, It does contain a will install a non protected DLL file and will add a reference to it!
Please Advise!
Attached FilesTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
179 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by ghoul, Today, 06:02 PM
|
0 responses
7 views
0 likes
|
Last Post
by ghoul
Today, 06:02 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
6 responses
19 views
0 likes
|
Last Post
by Barry Milan
Today, 06:01 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM | ||
Started by DJ888, 04-16-2024, 06:09 PM
|
4 responses
13 views
0 likes
|
Last Post
by DJ888
Today, 04:28 PM
|
Leave a comment: