refactor: Simplify alertcondition syntax in Sunny_Bands.pine

This commit is contained in:
Bobby (aider) 2025-02-08 10:07:12 -08:00
parent 1c4c9553a2
commit 3123fb2159

View File

@ -49,14 +49,5 @@ plotshape(
) )
// Alerts equivalent to get_signals() method // Alerts equivalent to get_signals() method
alertcondition( alertcondition(bullish, title="Bullish Signal Detected", message="Sunny Bands: Bullish crossover of lower band")
condition=bullish, alertcondition(bearish, title="Bearish Signal Detected", message="Sunny Bands: Bearish crossunder of upper band")
title="Bullish Signal Detected",
message="Sunny Bands: Bullish crossover of lower band"
)
alertcondition(
condition=bearish,
title="Bearish Signal Detected",
message="Sunny Bands: Bearish crossunder of upper band"
)