From 3123fb215965fa14c88df16d89a70451e215682b Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Sat, 8 Feb 2025 10:07:12 -0800 Subject: [PATCH] refactor: Simplify alertcondition syntax in Sunny_Bands.pine --- pinescripts/Sunny_Bands.pine | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pinescripts/Sunny_Bands.pine b/pinescripts/Sunny_Bands.pine index 13a55a8..67cb147 100644 --- a/pinescripts/Sunny_Bands.pine +++ b/pinescripts/Sunny_Bands.pine @@ -49,14 +49,5 @@ plotshape( ) // Alerts equivalent to get_signals() method -alertcondition( - condition=bullish, - 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" -) +alertcondition(bullish, title="Bullish Signal Detected", message="Sunny Bands: Bullish crossover of lower band") +alertcondition(bearish, title="Bearish Signal Detected", message="Sunny Bands: Bearish crossunder of upper band")