// Señales de compra y venta plotshape(crossOver, title="Compra", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small) plotshape(crossUnder, title="Venta", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// Alertas alertcondition(crossOver, title="Señal de Compra", message="EMA 21 cruza por encima de EMA 50 - Posible Compra") alertcondition(crossUnder, title="Señal de Venta", message="EMA 21 cruza por debajo de EMA 50 - Posible Venta")