NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-07-2010, 09:37 AM   #1
Jeremytang
Senior Member
 
Join Date: Jun 2010
Location: Calgary, AB
Posts: 100
Thanks: 0
Thanked 2 times in 2 posts
Send a message via MSN to Jeremytang Send a message via Skype™ to Jeremytang
Default Strategy Serialization

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?
Jeremytang is offline  
Reply With Quote
Old 10-07-2010, 09:46 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Jeremy,

These are stored in:
My Documents\NinjaTrader 7\templates\strategy
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-07-2010, 11:14 AM   #3
Jeremytang
Senior Member
 
Join Date: Jun 2010
Location: Calgary, AB
Posts: 100
Thanks: 0
Thanked 2 times in 2 posts
Send a message via MSN to Jeremytang Send a message via Skype™ to Jeremytang
Default Empty

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
Jeremytang is offline  
Reply With Quote
Old 10-07-2010, 11:20 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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?
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-07-2010, 12:43 PM   #5
Jeremytang
Senior Member
 
Join Date: Jun 2010
Location: Calgary, AB
Posts: 100
Thanks: 0
Thanked 2 times in 2 posts
Send a message via MSN to Jeremytang Send a message via Skype™ to Jeremytang
Default

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
Jeremytang is offline  
Reply With Quote
Old 10-07-2010, 01:03 PM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

They're stored here:
My Documents\NinjaTrader 7\templates\strategy

You must first Right Click > Save as Default when setting up the strategy.
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 10:52 AM.