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 07-22-2009, 07:03 AM   #1
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default Strategy won't open both positions

I have attached a simple strategy where I'm trying to open two seperate positions, so I can scale out. I have run it twice and each time it only opens the first position named RTM1. The position named RTM2 does not open. Can anyone help me with this?

Thanks for your time.

Safetrading
Attached Files
File Type: zip RTMtest.zip (1.1 KB, 2 views)
safetrading is offline  
Reply With Quote
Old 07-22-2009, 07:19 AM   #2
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

safetrading,

When you run your strategy there is an option called EntriesPerDirection. Please bump that up to two.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-22-2009, 07:45 AM   #3
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default Thanks

Boy, I wish everything is life was that simple. Thanks again, have a great day.

Safetrading
safetrading 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
How to start strategy with open positions. Czarek Strategy Development 2 07-14-2009 09:16 AM
Open/close positions ad_hehe Strategy Development 2 06-22-2009 09:33 AM
Open positions in Ninjatrader but not live daxtrading Automated Trading 11 05-26-2009 10:27 AM
Open positions when closing application tjendra Miscellaneous Support 9 04-20-2009 10:28 AM
Limiting open contract positions gg80108 Miscellaneous Support 1 03-24-2009 01:19 PM


All times are GMT -6. The time now is 01:39 PM.