public PortfolioStop(StrategyBase strategy, DateTime time, bool stopStrategy) :base(){ this.dUqRtBdT71 = StopType.Trailing; this.Wa9RdDJEOa = StopMode.Percent; this.rfci6isjj5 = StopFillMode.Stop; this.sKmRoRmeN5 = strategy; this.ElNRan0isi = strategy.Portfolio; this.RUQiAxBBaC = stopStrategy; this.dUqRtBdT71 = StopType.Time; this.XoERmcoQ62 = Clock.Now; this.xTNRf1TvWo = time; this.FuNRz16ilo = this.ElNRan0isi.GetValue(); if (!(this.xTNRf1TvWo > this.XoERmcoQ62)) return; Clock.AddReminder(new ReminderEventHandler(this.AaPRYK2epA), this.xTNRf1TvWo, (object) null); }
public StopBase() : base() { this.fType = StopType.Trailing; this.fMode = StopMode.Percent; this.fTraceOnQuote = true; this.fTraceOnTrade = true; this.fTraceOnBar = true; this.fTraceOnBarOpen = true; this.fTrailOnOpen = true; this.fFilterBarSize = -1L; this.fFilterBarType = BarType.Time; this.fFillMode = StopFillMode.Stop; this.textEnabled = true; this.toolTipEnabled = true; this.toolTipFormat = ""; this.activeColor = Color.Purple; this.executedColor = Color.RoyalBlue; this.canceledColor = Color.Gray; }
public PortfolioStop(StrategyBase strategy, DateTime time, bool stopStrategy) : base() { this.dUqRtBdT71 = StopType.Trailing; this.Wa9RdDJEOa = StopMode.Percent; this.rfci6isjj5 = StopFillMode.Stop; this.sKmRoRmeN5 = strategy; this.ElNRan0isi = strategy.Portfolio; this.RUQiAxBBaC = stopStrategy; this.dUqRtBdT71 = StopType.Time; this.XoERmcoQ62 = Clock.Now; this.xTNRf1TvWo = time; this.FuNRz16ilo = this.ElNRan0isi.GetValue(); if (!(this.xTNRf1TvWo > this.XoERmcoQ62)) { return; } Clock.AddReminder(new ReminderEventHandler(this.AaPRYK2epA), this.xTNRf1TvWo, (object)null); }
internal void method_3(Bar bar_0) { if (this.traceOnBar && (this.filterBarSize < 0L || (this.filterBarSize == bar_0.Size && this.filterBarType == BarType.Time))) { this.trailPrice = this.GetPrice(bar_0.Close); PositionSide positionSide = this.side; if (positionSide != PositionSide.Long) { if (positionSide == PositionSide.Short) { this.currPrice = this.GetPrice(bar_0.High); this.fillPrice = this.currPrice; if (this.trailOnHighLow) { this.trailPrice = this.GetPrice(bar_0.Low); } } } else { this.currPrice = this.GetPrice(bar_0.Low); this.fillPrice = this.currPrice; if (this.trailOnHighLow) { this.trailPrice = this.GetPrice(bar_0.High); } } StopFillMode stopFillMode = this.fillMode; if (stopFillMode != StopFillMode.Close) { if (stopFillMode == StopFillMode.Stop) { this.fillPrice = this.stopPrice; } } else { this.fillPrice = this.GetPrice(bar_0.Close); } this.method_1(); } }
public PortfolioStop(StrategyBase strategy, double level, StopType type, StopMode mode, bool stopStrategy) :base(){ this.dUqRtBdT71 = StopType.Trailing; this.Wa9RdDJEOa = StopMode.Percent; this.rfci6isjj5 = StopFillMode.Stop; this.sKmRoRmeN5 = strategy; this.ElNRan0isi = strategy.Portfolio; this.QqtReC8Evy = level; this.dUqRtBdT71 = type; this.Wa9RdDJEOa = mode; this.RUQiAxBBaC = stopStrategy; this.oURRNWOggg = this.ElNRan0isi.GetValue(); this.uLLipPWdua = this.oURRNWOggg; this.FuNRz16ilo = this.aIZRlrvLwJ(); this.XoERmcoQ62 = Clock.Now; this.xTNRf1TvWo = DateTime.MinValue; this.i7uRq8Sj1g(); this.agAikbNDtv = this.oURRNWOggg; this.uLLipPWdua = this.oURRNWOggg; this.QJSRn03JW5(); }
public PortfolioStop(StrategyBase strategy, double level, StopType type, StopMode mode, bool stopStrategy) : base() { this.dUqRtBdT71 = StopType.Trailing; this.Wa9RdDJEOa = StopMode.Percent; this.rfci6isjj5 = StopFillMode.Stop; this.sKmRoRmeN5 = strategy; this.ElNRan0isi = strategy.Portfolio; this.QqtReC8Evy = level; this.dUqRtBdT71 = type; this.Wa9RdDJEOa = mode; this.RUQiAxBBaC = stopStrategy; this.oURRNWOggg = this.ElNRan0isi.GetValue(); this.uLLipPWdua = this.oURRNWOggg; this.FuNRz16ilo = this.aIZRlrvLwJ(); this.XoERmcoQ62 = Clock.Now; this.xTNRf1TvWo = DateTime.MinValue; this.i7uRq8Sj1g(); this.agAikbNDtv = this.oURRNWOggg; this.uLLipPWdua = this.oURRNWOggg; this.QJSRn03JW5(); }
public StopBase() : base() { this.fType = StopType.Trailing; this.fMode = StopMode.Percent; this.fTraceOnQuote = true; this.fTraceOnTrade = true; this.fTraceOnBar = true; this.fTraceOnBarOpen = true; this.fTrailOnOpen = true; this.fFilterBarSize = -1L; this.fFilterBarType = BarType.Time; this.fFillMode = StopFillMode.Stop; this.textEnabled = true; this.toolTipEnabled = true; this.toolTipFormat = ""; this.activeColor = Color.Purple; this.executedColor = Color.RoyalBlue; this.canceledColor = Color.Gray; }