//@version=4
study(title="MA Cross", overlay=true, resolution="")
fastMA = sma(close, 55)
medMA= sma(close, 89)
slowMA = sma(close,233)
plot(fastMA, color = color.red)
plot(medMA, color = color.green)
plot(slowMA,color= color.black)
plot(cross(fastMA,medMA,slowMA) ? short : na, style = plot.style_cross, linewidth = 4)
I want to plot a crossover of three different moving averages but i'm not sure what function to use in order to cross all three of them according to the value. As function only lets me crossover two moving averages MA..
Ex:50 day moving average should be greater than 80 (i.e. displayed on top) and 80 be greater than 200(i.e. above 200 but lower than 80 on display) and have them corssover at once point
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…