TradingView
DragonByte
7 de Out de 2019 13:57

SMA 21/30/50/100/200 with Cross by DragonByte 

Bitcoin / U.S. dollarBitstamp

Descrição

Combines several key simple moving averages into one slot without going overboard. Includes cross indicators between the 50/100 and the 50/200 day SMA's.
Comentários
ice9
how do you plot the other way? when I try, i get arrows in the same spot.
ice9
@ice9, this may help:
//bull_cross = crossover( EMA25, EMA50)
plotshape( cross(EMA25, EMA50) ? EMA25 : na, style=shape.triangleup, location=location.absolute, color=color.green, size=size.large)
//plot( cross(EMA25, EMA50), style = shape.triangleup, linewidth=5 )

//bear_cross = crossover( EMA50, EMA25)
plotshape( cross(EMA50, EMA25), style=shape.triangledown, location=location.absolute, color=color.red, size=size.large)
Mais