Mike Webster posted this tweet recently,
Just adding a quick take on it which will add it to the chart as a label. Enjou!!
Just adding a quick take on it which will add it to the chart as a label. Enjou!!
Code:
def ema21 = MovAvgExponential(close, 21);
AddLabel(yes, if low > ema21 then "GAS" else "BRAKE", if low > ema21 then Color.GREEN else Color.RED);