From adc78c0644319e6d479f66394eb794491c0dc523 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Fri, 17 Oct 2025 12:15:57 +0200 Subject: [PATCH] Flip label contrast: black text on green (bull), white on maroon (bear) --- Bullmania_Money_Line_v4_plus.pine | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bullmania_Money_Line_v4_plus.pine b/Bullmania_Money_Line_v4_plus.pine index 1a7dcca..a471a5d 100644 --- a/Bullmania_Money_Line_v4_plus.pine +++ b/Bullmania_Money_Line_v4_plus.pine @@ -365,9 +365,9 @@ var label flipValLbl = na if showFlipLevelValue and not na(flipLevel) if not na(flipValLbl) label.delete(flipValLbl) - // Use darker red for bear to maximize contrast; green stays readable with white text - flipLblBg = flipLineAutoColor ? (trend == 1 ? color.new(color.green, 0) : color.new(color.maroon, 0)) : flipLineCustomCol - flipLblTxt = color.white + // High-contrast: black text on green (bull), white text on maroon (bear) + flipLblBg = flipLineAutoColor ? (trend == 1 ? color.new(color.green, 0) : color.new(color.maroon, 0)) : flipLineCustomCol + flipLblTxt = flipLineAutoColor ? (trend == 1 ? color.black : color.white) : color.white flipValLbl := label.new(bar_index, flipLevel, text="Flip Level: " + str.tostring(flipLevel, format.mintick), style=label.style_label_left, color=flipLblBg, textcolor=flipLblTxt, yloc=yloc.price, size=size.tiny)