Can someone help me code candle colors based on the following conditions and colors:
def cond1 = if EMA10 > EMA10[1] and EMA10 < EMA65 then 1 else 0; # WHITE
def cond2 = if EMA10 > EMA10[1] and EMA10 > EMA65 then 1 else 0; # GREEN
def cond3 = if EMA10 < EMA10[1] and EMA10 > EMA65 then 1 else 0; # MAGENTA
def cond4 = if EMA10 < EMA10[1] and EMA10 < EMA65 then 1 else 0; # RED
Your help is greatly appreciated.
def cond1 = if EMA10 > EMA10[1] and EMA10 < EMA65 then 1 else 0; # WHITE
def cond2 = if EMA10 > EMA10[1] and EMA10 > EMA65 then 1 else 0; # GREEN
def cond3 = if EMA10 < EMA10[1] and EMA10 > EMA65 then 1 else 0; # MAGENTA
def cond4 = if EMA10 < EMA10[1] and EMA10 < EMA65 then 1 else 0; # RED
Your help is greatly appreciated.