// Condiciones de compra y venta longCondition = bullishDivergence shortCondition = bearishDivergence
// Colores para las flechas en el gráfico plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="Compra") plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.triangledown, title="Venta")