public override void OnStopExecuted(Stop stop) { ClosePosition("T|止损平仓"); }
public Stop SetStop(Position position, double level, StopType type, StopMode mode) { Stop stop = new Stop(position, level, type, mode); Map.OQ_FQ_Stop[(object) stop] = (object) stop.stop; Map.FQ_OQ_Stop[(object) stop.stop] = (object) stop; Map.AddStop((object) stop.stop, this.strategyName); stop.TraceOnBar = this.stopTraceOnBar; stop.TraceOnTrade = this.stopTraceOnTrade; stop.TraceOnQuote = this.stopTraceOnQuote; return stop; }
public Stop SetStop(Position position, DateTime dateTime) { Stop stop = new Stop(position, dateTime); Map.OQ_FQ_Stop[(object) stop] = (object) stop.stop; Map.FQ_OQ_Stop[(object) stop.stop] = (object) stop; Map.AddStop((object) stop.stop, this.strategyName); stop.TraceOnBar = this.stopTraceOnBar; stop.TraceOnTrade = this.stopTraceOnTrade; stop.TraceOnQuote = this.stopTraceOnQuote; return stop; }
public virtual void OnStopExecuted(Stop stop) { }