HMA - Hull Moving Average
Last updated
double value1 = 2 * WMA(InSeries, (int)(Period / 2))[0];
double value2 = WMA(InSeries, Period)[0];
diffSeries.Set(value1 - value2);
Value.Set(WMA(diffSeries, (int) Math.Sqrt(Period))[0]);//Output the value for the HMA
Print("The current HMA value is " + HMA(21)[0]);