This script is a tweaked version of the Exponential Hull Moving Average that allows you to introduce a longer lookback period for reversal signals. In all current implementations of the EHMA, the reversal (color change from red to green) is calculated by taking the current value of the MA and comparing it to the previous calculated value. This EHMA version allows you to alter the lookback for more conservative reversal signals. The default value is 3, meaning if the EMA is greater than the value of the EHMA calculated 3 periods ago, it will turn green. This makes it less responsive, and less prone to early signalling.