Hey, hope everyone is doing well. I recently incorporated the HULLMA into my trading using their turning points as indication of whether or not to be long or short. Can someone point me to the direction where I can create a label that turns red/green whenever the turning points happen? thanks in advance!
This is the HMA code
This is the HMA code
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2008-2022
#
input price = close;
input length = 20;
input displace = 0;
plot HMA = MovingAverage(AverageType.HULL, price, length)[-displace];
HMA.DefineColor("Up", GetColor(1));
HMA.DefineColor("Down", GetColor(0));
HMA.AssignValueColor(if HMA > HMA[1] then HMA.color("Up") else HMA.color("Down"));