示例#1
0
 public BarSpudGraphable(BarSpud bars)
 {
     this.bars        = bars;
     timeIndices      = bars.timeLookup();
     bars.valueSet   += bar => timeIndices[bar.time] = 0;
     bars.pushedDown += () => timeIndices = bars.timeLookup();
 }
示例#2
0
 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();
 }