protected override void OnBarUpdate() { stopOrder = ExitLongStop(0, true, 1, Math.Min(myLongStop,GetCurrentBid(0)), "[B]myLongTrailStop[/B]", "myLongEntry"); } protected override void OnExecution(IExecution execution) { if(Position.MarketPosition==MarketPosition.Long) { stopOrder = ExitLongStop(0, true, execution.Order.Filled, execution.Order.AvgFillPrice - (20*TickSize), "[B]myLongTrailStop"[/B], "myLongEntry"); } }
GT
Comment