NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 07-07-2008, 05:45 AM   #1
cttsc
Junior Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Simultaneous Orders on the same side

Hi,

I think there is a bug in Ninja
I have found this situation on a NinjaScript Strategy:

I place 2 buy orders:

if (Condition1) EnterLongStop(1, Price1, "Order1");
if (Condition2) EnterLongStop(1, Price2, "Order2");

and always Price2 < Price1

The question is that if Condition1 and Condition2 are true then Ninja buys at Price1 and this is wrong.

Are there solution for this issue ?
cttsc is offline  
Reply With Quote
Old 07-07-2008, 06:28 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please see here:
http://www.ninjatrader-support.com/H...Direction.html
http://www.ninjatrader-support.com/H...verview36.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-07-2008, 07:17 AM   #3
cttsc
Junior Member
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok Dierk,

I saw this information thanks.

But, it's not the question.

In the situation of the first message with

EntryHandling to a value "AllEntries" and EntriesPerDirection to a value of "1" if Condition1 and Condition2 are true we must entry at Price2, not at Price1.
cttsc is offline  
Reply With Quote
Old 07-07-2008, 07:20 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Incorrect, 2nd Entry is rejected as the first entry was placed, since Condition1 is true.

Please debug your strategy as per here to understand what's going on: http://www.ninjatrader-support.com/v...ead.php?t=3627
NinjaTrader_Dierk 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
Server Side vs. Client side Khepfere Connecting 4 07-05-2008 03:43 PM
Simultaneous Orders cttsc Automated Trading 2 06-27-2008 08:10 PM
Server Side vs. Client Side solasc ATM Strategies (Discretionary Trading) 1 11-19-2007 12:06 PM
Is there a way to know which side I got the fill ?.... gsmaster Strategy Development 2 08-06-2007 04:34 AM
Multiple Simultaneous Trades at "Exit on Close" With Setting "1 Entry Per Direction&q KBJ Strategy Analyzer 1 04-27-2007 05:34 AM


All times are GMT -6. The time now is 10:19 AM.