/// <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; }
public static IIndicator <double> Close(this IIndicator <IPriceC> This) => This.Transform(p => p.Close);
public static IIndicator <double> High(this IIndicator <IPriceH> This) => This.Transform(p => p.High);
public static IIndicator <double> Low(this IIndicator <IPriceL> This) => This.Transform(p => p.Low);
public static IIndicator <double> Open(this IIndicator <IPriceO> This) => This.Transform(p => p.Open);