Exemplo n.º 1
0
 /// <inheritdoc />
 public MovingRange(IIndicator <IPriceHL> source, int period)
 {
     Source         = source;
     Period         = period;
     High           = Source.Transform(p => p.High);
     Low            = Source.Transform(p => p.Low);
     Hhv            = High.HighestValue(Period);
     Llv            = Low.LowestValue(Period);
     Source.Update += SourceOnUpdate;
 }
Exemplo n.º 2
0
 public static IIndicator <double> Close(this IIndicator <IPriceC> This) => This.Transform(p => p.Close);
Exemplo n.º 3
0
 public static IIndicator <double> High(this IIndicator <IPriceH> This) => This.Transform(p => p.High);
Exemplo n.º 4
0
 public static IIndicator <double> Low(this IIndicator <IPriceL> This) => This.Transform(p => p.Low);
Exemplo n.º 5
0
 public static IIndicator <double> Open(this IIndicator <IPriceO> This) => This.Transform(p => p.Open);