Half Trend Indicator Python