![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Sep 2009
Posts: 51
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
In my first, simple!, strategy I reach NT limitations: Code:
2008-04-18 00:00:00 Entered internal PlaceOrder() method at 2008-04-18 00:00:00: Action=Buy OrderType=Limit Quantity=1 LimitPrice=207,33 StopPrice=0 SignalName='MyEntryLong' FromEntrySignal='' 2008-04-18 00:00:00 Ignored PlaceOrder() method at 2008-04-18 00:00:00: Action=Buy OrderType=Limit Quantity=1 LimitPrice=207,33 StopPrice=0 SignalName=MyEntryLong' FromEntrySignal='' Reason='An Enter() method to submit an entry order has been ignore. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.' - Entry when SMA >/< Close[0] - Enter Long/Short Limit orders with price open +/- xx pips - Profit Target xxx pips - no closing positions, just open opposite or close by ProfitTarget - backtesting on 1 day bars I used NT sample code from "SampleOnOrderUpdate.cs", I modified it for opening not only long but also short positions and opening not market but limit orders. And still my reversal doesn't work - when ShortLimitOrder and ProfitTarget orders are open, new LongLimitOrder order is rejected ![]() What to do? Please help! it's almost dawn behind the window... I already read few threads about similar problem and whole NT "NinjaScript" part of documentation.
Last edited by Argo1; 09-07-2009 at 07:23 PM.
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Position.MarketPosition with unfilled limit orders | honvl | Strategy Development | 1 | 06-05-2009 12:23 PM |
| Best way to reverse a position? | Idruna | Strategy Development | 10 | 09-24-2008 10:17 PM |
| Reverse position with only one order | jmreal | Strategy Development | 3 | 07-10-2008 06:20 AM |
| Moving Stop Loss and Enter Reverse | kgillis23 | Strategy Development | 2 | 03-11-2008 10:14 PM |
| Limit orders - book position kept when new orders are generated | Fabrice | Automated Trading | 6 | 10-13-2007 03:16 PM |