55 : this($
"AROON({upPeriod},{downPeriod})", upPeriod, downPeriod)
68 var max =
new Maximum(name +
"_Max", upPeriod + 1);
70 input => ComputeAroonUp(upPeriod, max, input),
71 aroonUp => max.IsReady,
75 var min =
new Minimum(name +
"_Min", downPeriod + 1);
77 input => ComputeAroonDown(downPeriod, min, input),
78 aroonDown => min.IsReady,
118 private static decimal ComputeAroonDown(
int downPeriod, Minimum min, IndicatorDataPoint input)
121 return 100m * (downPeriod - min.PeriodsSinceMinimum) / downPeriod;