def hull_moving_average(data, period):
catch_errors.check_for_period_error(data, period)<EOL>hma = wma(<EOL><NUM_LIT:2> * wma(data, int(period/<NUM_LIT:2>)) - wma(data, period), int(np.sqrt(period))<EOL>)<EOL>return hma<EOL>
Hull Moving Average.

Formula:
HMA = WMA(2*WMA(n/2) - WMA(n)), sqrt(n)