//@version=5
indicator("BABYUSDT Simple Analysis", overlay=true)
// Entradas
maLength = input.int(60, "Comprimento da MA")
// Cálculo da MA
ma60 = ta.sma(close, maLength)
// Níveis-chave
high24 = ta.highest(high, 96) // máxima de 24h no gráfico de 15m
low24 = ta.lowest(low, 96) // mínima de 24h no gráfico de 15m
// Plotagem
plot(ma60, "MA60", color=color.gray)
plot(high24, "Alta de 24h", color=color.orange)
plot(low24, "Baixa de 24h", color=color.yellow)
hline(0.01124, "Preço atual", color=color.white)
// Alertas
longCondition = ta.crossover(close, ma60)
shortCondition = ta.crossunder(close, ma60)
alertcondition(longCondition, "Rompimento de Alta", "O preço rompeu acima da MA60")
alertcondition(shortCondition, "Rompimento de Baixa", "O preço rompeu abaixo da MA60")
#baby #square
indicator("BABYUSDT Simple Analysis", overlay=true)
// Entradas
maLength = input.int(60, "Comprimento da MA")
// Cálculo da MA
ma60 = ta.sma(close, maLength)
// Níveis-chave
high24 = ta.highest(high, 96) // máxima de 24h no gráfico de 15m
low24 = ta.lowest(low, 96) // mínima de 24h no gráfico de 15m
// Plotagem
plot(ma60, "MA60", color=color.gray)
plot(high24, "Alta de 24h", color=color.orange)
plot(low24, "Baixa de 24h", color=color.yellow)
hline(0.01124, "Preço atual", color=color.white)
// Alertas
longCondition = ta.crossover(close, ma60)
shortCondition = ta.crossunder(close, ma60)
alertcondition(longCondition, "Rompimento de Alta", "O preço rompeu acima da MA60")
alertcondition(shortCondition, "Rompimento de Baixa", "O preço rompeu abaixo da MA60")
#baby #square