OPEN-SOURCE SCRIPT

MRX_M7 777

91
//version=5
indicator("MRX_M7 777 MTF ALERT (jgar)", overlay=true)

// === SOZLAMALAR ===
tfInput = input.timeframe("15", "Qaysi TF")
showZone = input.bool(true, "Zonani ko‘rsat / o‘chirish")

zoneColor = color.new(color.lime, 75)

// === MTF DATA (BITTA QATORDA!) ===
[mtfHigh, mtfLow, mtfOpen, mtfClose] = request.security(syminfo.tickerid, tfInput, [high, low, open, close])

// === ENGULF ===
engulf = mtfHigh > mtfHigh[1] and mtfLow < mtfLow[1]

// === ZONA ===
zoneHigh = mtfHigh[1]
zoneLow = mtfLow[1]

// === CHARTGA CHIZISH ===
if engulf and showZone
box.new(bar_index - 1, zoneHigh, bar_index, zoneLow, bgcolor = zoneColor, border_color = color.lime)
label.new(bar_index, zoneHigh, "ENGULF " + tfInput, style = label.style_label_down, textcolor = color.white, bgcolor = color.lime)

// === ALERT ===
alertcondition(engulf, title="MTF ENGULF", message="ENGULF " + tfInput + " timeframe da sodir bo‘ldi")

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.