I'm trying to plot horizontal line on daily 20 ema price, but getting error while doing so ' Error An argument of 'series float' type was used but 'input float' is expected' I'm a beginner, any help is appreciated.. How to plot the same on multiple timeframes like weekly, monthly
Here is the code..
//@version=5
indicator("My script", overlay=true )
e20 = ta.ema(close, 20)
hline(e20, title = "DEMA", color = color.green, linestyle = hline.style_dotted, linewidth=2)
plot(close)