I place market order to buy and then exitlonglimit, however, instead of exitlonglimit the "buy to cover" is placed (and does not get executed), check this:
2/17/2011 8:13:00 PM Entered internal PlaceOrder() method at 2/17/2011 8:13:00 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=0.1M LimitPrice=0 StopPrice=0 SignalName='long_5279' FromEntrySignal=''
2/17/2011 8:13:00 PM Entered internal PlaceOrder() method at 2/17/2011 8:13:00 PM: BarsInProgress=0 Action=BuyToCover OrderType=Limit Quantity=0.02M LimitPrice=1.3583 StopPrice=0 SignalName='target3 long_5279' FromEntrySignal='long_5279'
and this is the command:
if (Position.MarketPosition == MarketPosition.Long)
{
order[1] = ExitLongLimit(0,true,enter_quantity/5, enter_price+bar_sequence[3]*tick_size, "target3 " + enter_name, enter_name);
}
Am I doing something wrong? I am running the .2 version, just downloaded on windows xp sp3.
Sergey.

Comment