![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2007
Posts: 35
Thanks: 0
Thanked 0 times in 0 posts
|
Is it possible that you could post the recommended code pattern for the following:
As a specific event occurs (for example the closing price of a bar crosses a certain price point) I want to enter a position (say 10 long). The strategy is not to do anything until that position has been reached. How do I ensure that the target position is reached no matter what? Running a test on a 1 tick chart on FDAX 09-07 I had some weird things happen. If I only call EnterLong() on the initial bar I sometimes got my order cancelled partially filled. If I resubmit until the target position is reached I sometimes got errors or overfill depending on if I called the function again with the target quantity or the target quantity minus the current MarketPosition.Quantity. The problems seemed to happen at random, but were much less frequent on slower moving markets. I am sure I must be doing something wrong, but I am just not sure what. Therefore my question. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Sorry, due to bandwidth reasons we are unable to provide support at that level. You might consider contacting a NinjaTrader consultant: http://www.ninjatrader.com/webnew/pa...injaScript.htm
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Esignal NT dll integration re: dll.call functions | New2This | Automated Trading | 24 | 06-21-2007 08:06 AM |
| Email functions don't apear to work | zoltran | Strategy Development | 5 | 03-23-2007 02:38 AM |
| using DLL interface functions in c# | Futures_Shark | Automated Trading | 4 | 01-03-2007 02:17 AM |
| Looking for TradeStation System that successfully uses NT .dll functions | JR | Automated Trading | 0 | 12-21-2006 03:49 AM |
| Is it possible to call ATI functions from NinjaScript? | BCA | Strategy Development | 3 | 04-17-2006 05:36 AM |