refactor to allow indicators to more easily consume other indicators
preparation for using sma indicator inside of bollinger bands indicator