SPX público
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © drakosocial

//@version=5
indicator ("SP:SPX",overlay = false) 

SP500=  request.security("SP:SPX",timeframe.period,open)
Mediamovil= ta.sma (SP500,100)
Mediamovil_A= ta.sma (SP500,20)
Mediamovil_B= ta.sma (SP500,9)
plot(SP500, color = color.orange)
plot(Mediamovil, color = color.red)
plot(Mediamovil_A, color = color.yellow)
plot(Mediamovil_B, color = color.green)

