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 04-06-2008, 04:34 AM   #1
dennisdd
Junior Member
 
Join Date: Apr 2008
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default Copying a strategy

Hello,

I would like to copy a strategie, to keep the old one and base a new one on the old. But I can't finde a way to do that.
Is it possible, without unlocking the code?


Thanks for your help,

Dennis
dennisdd is offline  
Reply With Quote
Old 04-06-2008, 08:00 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Unfortunately it is not possible without unlocking the code...

What you can do is in the Conditions and Actions screen, you can save a condition set as a template by right clicking in the grid of conditions. As you then create a new strategy, you can load this template.
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-06-2008, 09:32 PM   #3
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default

I did what you describe and found that process to be even more annoying, I saved a template assuming that that specific template could be "added" to wizardd conditions i already inputed. IE if i use the same wizard criteria for a ma cross i turned it into a template. Then later on in a new strategy after spending 20 mins building things i decided to "load" the template that had the ma criteria i wanted also. It loaded it alright, by deleting everything else. I am curious if this is by design and if anyone plans on changing it in new releases. For wizard use it would make sense to right click a specific line, choose copy, then be able to paste that line into other lines without it deleting the other lines and just pasting that line.

thanks

Tim

I state this so users are wary that the "load" template will delete everything else you made. i am using version 6.5
timmyb is offline  
Reply With Quote
Old 04-07-2008, 12:28 AM   #4
dennisdd
Junior Member
 
Join Date: Apr 2008
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for your quick replies!

I found out, that renaming a strategie creates a new one with the new given name... at least thats the case with my version.
Thats good news.
dennisdd is offline  
Reply With Quote
Old 05-07-2008, 01:21 PM   #5
Gabriel Cooper
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default

As a note, I have found the lack of copy to be the most annoying feature in the software... so far. It would be great to have the ability added in future releases, the first thing I tried to dow as iteratively build on my work in the wizard by copying previous strategies... and I couldn't!

Overall, that's actually saying something good about NT. As annoying as I found this, it's not that bad for being the worst thing I've come across. The software is great!
Gabriel Cooper is offline  
Reply With Quote
Old 05-08-2008, 02:07 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Thanks for the input Gabriel. We will add it to the list of future considerations.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-08-2008, 02:11 AM   #7
dennisdd
Junior Member
 
Join Date: Apr 2008
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

Hey Gabriel,

have You tried to just rename an existing strategy?
For me it duplicates it correctly, so this is a nice workaround, or just an error on my installation?

Dennis
dennisdd 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
copying a standard indicator zq655 General Programming 7 01-21-2008 10:58 AM
Copying a strategy BradB Strategy Development 3 01-24-2007 06:31 AM


All times are GMT -6. The time now is 05:19 PM.