Untitled
//@version=5 indicator("Mum Formasyonları İndikatörü", overlay=true) // Formasyonların Algılanması // Hammer Formasyonu is_hammer = close > open and (high - low) > 3 * (close - open) and (open - low) > 2 * (close - open) // Engulfing Formasyonu bullish_engulfing = close > open and close[1] < open[1] and close > open[1] and open < close[1] bearish_engulfing = close < open and close[1] > open[1] and close < open[1] and open > close[1] // Formasyonları Gösterme if is_hammer label.new(bar_index, low, "Hammer", style=label.style_label_down, color=color.new(color.green, 0), textcolor=color.white) if bullish_engulfing label.new(bar_index, low, "Bullish Engulfing", style=label.style_label_down, color=color.new(color.green, 0), textcolor=color.white) if bearish_engulfing label.new(bar_index, high, "Bearish Engulfing", style=label.style_label_up, color=color.new(color.red, 0), textcolor=color.white) // Grafik İşaretçileri plotshape(is_hammer, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small) plotshape(bullish_engulfing, style=shape.triangleup, location=location.belowbar, color=color.blue, size=size.small) plotshape(bearish_engulfing, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
Leave a Comment