![]() |
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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 ? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Please see here:
http://www.ninjatrader-support.com/H...Direction.html http://www.ninjatrader-support.com/H...verview36.html
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |