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 10-11-2010, 09:41 PM   #1
pureflame
Junior Member
 
Join Date: Oct 2010
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default EntriesPerDirection property

I have the following code in Initialize method:
Code:
    EntriesPerDirection = 1;
            EntryHandling = EntryHandling.AllEntries;
But when I do a backtest, there are still two same direction positions.

Thanks
pureflame is offline  
Reply With Quote
Old 10-12-2010, 05:18 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,420
Thanks: 252
Thanked 981 times in 963 posts
Default

pureflame, please doublecheck the UI settings then when you run the strategy backtest - are those then still selecting and showing as your order handling options?

Are you sure the trades are both open at the same time and it's not just a quick exit in between and then the signal is simply retaken?
NinjaTrader_Bertrand is online now  
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 Mike Winfrey Strategy Development 2 10-01-2010 04:01 AM
EntriesPerDirection/Scaling in RickStevenson1 Strategy Development 2 03-01-2010 08:46 AM
EntriesPerDirection mballagan Strategy Development 2 11-18-2009 11:08 AM
EntriesPerDirection question.. heech Strategy Development 8 03-27-2009 10:21 AM
Added Property to Strategy but Not Showing on Property Grid stocastix Automated Trading 2 11-07-2008 04:00 PM


All times are GMT -6. The time now is 09:57 AM.