study(title="Intraday - Exponential Moving Average 3 CrossOver", shorttitle="EMA3CO", overlay=true)
length1 = input(5, minval=1)
src1 = input(close, title="Source")
e1 = ema(src1, length1)
plot(e1, color=lime,linewidth=1)

length2 = input(15, minval=1)
src2 = input(close, title="Source")
e2 = ema(src2, length2)
plot(e2, color=green,linewidth=2)

length3 = input(25, minval=1)
src3 = input(close, title="Source")
e3 = ema(src3, length3)
plot(e3, color=red,linewidth=3)


plotshape(crossover(e1,e2), "Up Arrow", shape.triangleup,location.belowbar,blue,0,0)
plotshape(crossover(e2,e3), "Up Arrow", shape.triangleup,location.belowbar,green,0,0)


plotshape(crossover(e2,e1), "Down Arrow", shape.triangledown,location.abovebar,purple,0,0)
plotshape(crossover(e3,e2), "Down Arrow", shape.triangledown,location.abovebar,red,0,0)


免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。