Internally calculated moving average
A note should be added that when choosing a moving average, the first SM values (up to the moving average period) have no preceded SM data, hence the moving average is not calculated correctly. Either these SMI values have to be removed manually afterwards or these SMI values should be left out in the output. (E.g. choosing 31 days lag, the first 31 daily SM values which are to be processed lack preceded SM information)