I have a strategy whereby under certain conditions a
EnterLongStopMarket(0, true, Quantity, entryPrice, buySignalName);
is positioned so that it is above the market price. Therefore when the price goes up it should hit this order and the OnOrderUpdate() and OnExecutionUpdate() methods are activated.
However, when the rice does reach the entryprice nothing happens. There is no "submit", "Accept", "Working" routine being activated at all and therefore no order is placed or filled.
My strategy parameters are as follows
Calculate = Calculate.OnEachTick;
EntriesPerDirection = 2;
EntryHandling = EntryHandling.UniqueEntries;
IsExitOnSessionCloseStrategy = true;
ExitOnSessionCloseSeconds = 30;
IsFillLimitOnTouch = false;
MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
OrderFillResolution = OrderFillResolution.Standard;
Slippage = 0;
StartBehavior = StartBehavior.ImmediatelySubmit; (was WaitUntilFlat but trying anything)
TimeInForce = TimeInForce.Gtc;
TraceOrders = false;
RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
StopTargetHandling = StopTargetHandling.PerEntryExecution;
BarsRequiredToTrade = 20;
It is almost like the events are not being activated, even when I set it to a market order...
This has now been driving me mad for a while so any help greatly appreciated.
Thanks in advance.
Comment