public override void OnStopExecuted(Stop stop)
 {
     ClosePosition("T|止损平仓");
 }
示例#2
0
文件: Strategy.cs 项目: heber/FreeOQ
 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;
 }
示例#3
0
文件: Strategy.cs 项目: heber/FreeOQ
 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;
 }
示例#4
0
文件: Strategy.cs 项目: heber/FreeOQ
 public virtual void OnStopExecuted(Stop stop)
 {
 }