|09-07-2009, 07:19 PM||#1|
Join Date: Sep 2009
Thanked 0 times in 0 posts
Enter*Limit order + ProfitTarget + reverse position problem
In my first, simple!, strategy I reach NT limitations:
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
- 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||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|