I have a 200 MA label that changes depending on the timeframe of my charts. Can someone add the code that will make it only show for the daily Timeframe on all charts no matter their timeframe?
Here is the code-
Here is the code-
Code:
input length = 200;
input avgtype = AverageType.EXPONENTIAL;
def ema1 = MovingAverage(avgtype, close, length);
AddLabel(1, length, if close > ema1 then Color.GREEN else Color.RED);