PROTECTED SOURCE SCRIPT

smc-vol ••• ahihi

89
if bullish_pattern and showBreak
label_y = low - (high - low) * label_distance / 100
label.new(bar_index, label_y, "BULLISH↑", color=color.new(color.green, 20), textcolor=color.white, style=label.style_label_up, size=size.normal)

if bearish_pattern and showBreak
label_y = high + (high - low) * label_distance / 100
label.new(bar_index, label_y, "BEARISH↓", color=color.new(color.red, 20), textcolor=color.white, style=label.style_label_down, size=size.normal)

// Background highlight
bgcolor(bullish_pattern ? color.new(color.green, 95) : na)
bgcolor(bearish_pattern ? color.new(color.red, 95) : na)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.