Hi guy's im trying to not get error using this lines
HERE = if timeframe.period=='D'
display=display.all
else
display=display.none
EMA= ema(close,20)
plot(EMA,color=color.red,HERE) //or
plot(timeframe.period=='D'?EMA:na,color=color.red,HERE)
the intention is to draw the EMA only in a specific timeframe so that when the timeframe is changed the n/a is removed in the values next to
study("My script")
displayed in main chart