private void GoLong() { SetStopLoss("stop1", CalculationMode.Price, Close[0] - (Stop*TickSize), false); EnterLong(DefaultQuantity,""); } private void ManageOrders() { if (Position.MarketPosition == MarketPosition.Long) { if (High[0] > Position.AvgPrice + (Target1*TickSize)) SetStopLoss("target1", CalculationMode.Price, Position.AvgPrice, false); } }
5/31/2013 9:37:00 AM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='stop1' Mode=Price Value=1645.25 Currency=0 Simulated=False 5/31/2013 9:37:00 AM Entered internal PlaceOrder() method at 5/31/2013 9:37:00 AM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
manageorder() is placed in OnBarUpdate() and I get the same results if i set COBC true/false
Comment