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 08-13-2009, 06:50 AM   #1
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default Running multiple strategies simultaneously

Can you please refer me where to find out how to run multiple strategies simultaneoulsy...
Last edited by d.allen101; 08-13-2009 at 06:52 AM.
d.allen101 is offline  
Reply With Quote
Old 08-13-2009, 07:33 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

d.allen101,

Running multiple strategies is seamless. All you do is add multiples onto a chart or into the strategies grid. They will all run simultaneously.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-13-2009, 07:38 AM   #3
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default

what i'm asking for is examples/help doc info on coding it. i'd like to have different strategies run under certain conditions. example:

if(condition1)
{
strategy1(); //this is a independent strategy written outside of the current class
}
else if(condition2)
{
strategy2();
}
etc...
Last edited by d.allen101; 08-13-2009 at 07:45 AM.
d.allen101 is offline  
Reply With Quote
Old 08-13-2009, 07:59 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Not sure what you are asking for. Strategies do not call each other. They do not interact in any way with one another.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-13-2009, 08:02 AM   #5
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default

if i have 3 different strategies how do i go about creating a 4th strategy that uses the other 3 strategies?
d.allen101 is offline  
Reply With Quote
Old 08-13-2009, 08:06 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

As stated, strategies do not interact in any way with each other.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-13-2009, 10:58 PM   #7
raycam
Senior Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 0
Thanked 1 time in 1 post
Default

I had three strategies running at once and by laboriously working to make one the same time frame as another I set it up in the conditions wizard with fresh names for each entry and exit and profit targets/ stoploss. It took a while but works really well. I now have 2 strategies working because one is a tick chart strategy and the other a minute one. It doesn't seem to matter how many strategies you have running at once it would just be nice to have it neat in one. I want mine to fire off a trade whether the other strategy has fired or not- totally independent and that is what you get with multiple strategies running at once. When a condition is to check for FLAT before proceeding it is only checking for flat in that strategy.
Don't know if this helps- probably not. I dont know much about actual coding and stuff.
raycam
raycam is offline  
Reply With Quote
Old 08-14-2009, 05:50 AM   #8
d.allen101
Senior Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks raycam! hey, can you forward me the file so i can checkout the code?
d.allen101 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
Running NT 7 and 6.5 simultaneously - possible? JS999 Connecting 1 06-07-2009 10:53 PM
Running in Sim and Live modes simultaneously? bluelou Connecting 3 03-25-2009 09:27 AM
Running Multiple Strategies on 1 Instrument SystemTrading Strategy Development 5 02-25-2009 12:04 PM
trading multiple accounts simultaneously? zweistein SuperDOM and other Order Entry Windows 12 02-20-2009 09:14 AM
Is it possible to scroll multiple charts simultaneously? shliang Charting 2 03-04-2008 07:12 AM


All times are GMT -6. The time now is 11:30 PM.