NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 01-05-2011, 10:40 AM   #1
kenb2004
Senior Member
 
Join Date: Jul 2010
Posts: 415
Thanks: 1
Thanked 4 times in 4 posts
Default Resetting Defaults

I've run a backtest on a strategy and saved properties as Default. Now they are always that way when I run the strategy live even if I change the code. How do I reset the strategy so the compiled code is what I'm running?
Thanks
kenb2004 is offline  
Reply With Quote
Old 01-05-2011, 10:49 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 Ken,

The defaults for strategies are stored here:
My Documents\NinjaTrader 7\templates\strategy\strategyName.xml.

With NinjaTrader closed you can manually delete the xml file from that location.

You can also update the settings when you run the strategy and then save new defaults.
Last edited by NinjaTrader_RyanM; 01-05-2011 at 10:54 AM.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 01-05-2011, 11:08 AM   #3
kenb2004
Senior Member
 
Join Date: Jul 2010
Posts: 415
Thanks: 1
Thanked 4 times in 4 posts
Default

Just a thought, how about a "Set As Default" button and a "Reset" button?
Thanks
kenb2004 is offline  
Reply With Quote
Old 01-05-2011, 11:15 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

Thank you for the suggestions, Ken.
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
Resetting Variables richp6 Strategy Development 4 12-30-2010 09:10 AM
Resetting Entries Per Direction rogueTrader Automated Trading 3 11-05-2010 10:36 AM
Resetting Sim101 cgeorgan Version 7 Beta General Questions & Bug Reports 1 08-11-2010 09:10 AM
Resetting a variable trader413 Strategy Development 8 09-14-2009 10:12 AM
resetting indicators dirtybrown Indicator Development 9 06-01-2009 02:06 PM


All times are GMT -6. The time now is 01:07 AM.