public BarSpudGraphable(BarSpud bars) { this.bars = bars; timeIndices = bars.timeLookup(); bars.valueSet += bar => timeIndices[bar.time] = 0; bars.pushedDown += () => timeIndices = bars.timeLookup(); }
public DoubleSpudGraphable(string name, Spud <double> doubles, BarSpud bars) { this.name = name; this.doubles = doubles; timeIndices = bars.timeLookup(); bars.valueSet += bar => timeIndices[bar.time] = 0; bars.pushedDown += () => timeIndices = bars.timeLookup(); }