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