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 11-18-2009, 10:27 AM   #1
mballagan
Member
 
Join Date: Nov 2008
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default EntriesPerDirection

I have created a strategy where I enter long say 3 contracts for 1st profit target, 2 contracts for second profit target and 1 contract for 3rd profit target.

So profit_target1 < profit_target2 < profit_target3.

If EntriesPerDirection = 3 does this mean that at any one time a maxiumum of 3 contract positions can be opened?

So in the example above we are fine as each order has <=3 contracts.

But if for the first profit target we open a long position for 5 contracts then the order engine will split this up into 2 and 3 if EntriesPerDirection = 3? Does this cause any problems in real time trading or should I increase the EntriesPerDirection value?
mballagan is offline  
Reply With Quote
Old 11-18-2009, 10:37 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

mballagan,

EntriesPerDirection does not influence how many contracts you hold. It only influences how many entry orders you can place in the same direction. Setting it to 3 means you can go long 3 separate times simultaneously before it will prevent any more long trades when already holding long positions based on the 3 entry orders.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-18-2009, 11:08 AM   #3
mballagan
Member
 
Join Date: Nov 2008
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default EntriesPerDirection

Ok so in this case I'm entering a maximum of 3 seperate orders so EntriesPerDirection = 3 makes sense.

Thanks Josh.
mballagan 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
EntriesPerDirection question.. heech Strategy Development 8 03-27-2009 10:21 AM
EntriesPerDirection Error mdrichards Strategy Development 10 02-02-2009 07:16 AM
Setting EntryHandling || EntriesPerDirection From Program Overridden by BackTest Parameters KBJ Strategy Analyzer 4 05-01-2007 07:24 AM


All times are GMT -6. The time now is 11:33 AM.