I have some problem in my script with orders type of the subject.
If I use this line:
EnterShortStop(0, true, DefaultQuantity, EntryPrice, "Order01");
the script run ok always, but if I change this line for this:
EnterShortStopLimit(0, true, DefaultQuantity, EntryPrice, EntryPrice - StopInitial * TickSize, "Order01");
In the log view:
15/04/2013 1:23:40 Entered internal PlaceOrder() method at 15/04/2013 1:23:40: BarsInProgress=0 Action=SellShort OrderType=StopLimit Quantity=1 LimitPrice=88,98 StopPrice=89,13 SignalName='Order01' FromEntrySignal=''
But I obtain always the same error:
Market Replay Connection, Sell stop or sell stop limit orders can't be placed above the market. affected Order: SellShort 1 StopLimit@89,13 x 88,98
I don't understand why in the same situation the Stop order work ok and the Stop limit order not.
Can you help me? Any idea?
Thanks for all.
Comment