![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
Hi, I'm trying to debug the XML Serialization of a strategy (with a generic List)... but I can't find the XML file where the strategies are serialized... where are they kept?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Jeremy,
These are stored in: My Documents\NinjaTrader 7\templates\strategy
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
Thanks for the reply Ryan,
I don't see anything in that directory. Does that mean the serialization failed? I don't see any indication of that happening in the logs. Jeremy |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
These files relate to default strategy settings. They will appear only when you first Right Click > Save as Default for a given strategy. You have this available whenever you are trying to run a strategy.
Is this the type of property you are trying to serialize or something else?
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
|
When I create a strategy (or attach it to a chart) under the "Strategies" tab, the strategy has to save my parameter setting somewhere (I'm assuming via XML serialization); so that when I quit NT and reload it, it's reloaded with all my strategies where I left them, including the parameter settings I've chosen to use.
Where does NT stash these serializations? Jeremy |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
They're stored here:
My Documents\NinjaTrader 7\templates\strategy You must first Right Click > Save as Default when setting up the strategy.
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Serialization error | photog53 | Version 7 Beta General Questions & Bug Reports | 14 | 09-02-2010 12:33 AM |
| Serialization... | funk101 | Miscellaneous Support | 1 | 05-22-2009 08:27 AM |
| Serialization Error | gyoung | Miscellaneous Support | 14 | 05-03-2009 04:33 AM |
| XML Serialization during strategy run...? | heech | Strategy Development | 4 | 03-12-2009 10:16 AM |
| Serialization error | ct | Strategy Development | 1 | 09-12-2008 02:32 PM |