public BarCounter(SpudBase bars) : this(bars, 0) { }
public PriceTrailingStop(Position position, SpudBase close, double stopPrice, string name) : base(position, name, STOP, close.manager) { this.stopPrice = stopPrice; this.close = dependsOn(close); }
public BarCounter(SpudBase bars, int start) : base(bars.manager) { this.start = start; this.bars = dependsOn(bars); barsStart = bars.count(); }
bool cleanup(SpudBase barsSinceStopOut) { bars.removeChild(barsSinceStopOut); barsSinceStopOut.manager.remove(barsSinceStopOut); return(true); }