I have been trying to create a buy (red to green) or sell ( green to red) strategy based on the change in color of the HMA average. Tried using buy = HMA > HMA[1] and HMA[1] < HMA[2]; Sell = HMA < HMA[1] and HMA[1] > HMA[2]; but it buy and sell signal does not match the color change. Would appreciate help on this if it can be done. Tried for several hours but can't figure it out. I can create arrows at the color change but can't create correct Strategy for Buy and Sell trades. It appears that using the HMA values do not follow the smooth curve of the average line.