OPEN-SOURCE SCRIPT

Hammer Candle Alert

178
//version=5
indicator("Hammer Candle Alert", overlay=true)

// Hammer Candle ki pehchan ke liye conditions
body_size = math.abs(close - open)
upper_shadow = high - math.max(close, open)
lower_shadow = math.min(close, open) - low
total_range = high - low

is_hammer = (lower_shadow >= 2 * body_size) and (upper_shadow <= body_size * 0.5) and (total_range > 0)

// Alert generate karne ke liye condition
if (is_hammer)
alert("Hammer Candle Formed!", alert.freq_once_per_bar_close)

// Hammer Candle ko chart par dikhane ke liye
plotshape(series=is_hammer, location=location.belowbar, color=color.green, style=shape.labelup, text="Hammer")

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.