Skip to content

خودم #6

@HasanRad021

Description

@HasanRad021

//@Version=5
indicator("SeaSide HMA Double Cross V2", overlay=true, max_labels_count=500)

// تنظیمات HMA
hmaFastLength = input.int(9, "Fast HMA Length")
hmaSlowLength = input.int(55, "Slow HMA Length")

// محاسبه HMA
hmaFast = ta.hma(close, hmaFastLength)
hmaSlow = ta.hma(close, hmaSlowLength)

// تشخیص دابل کراس نزولی
crossDown1 = ta.crossunder(hmaFast, hmaSlow)
crossDown2 = ta.crossunder(hmaFast[1], hmaSlow[1])

doubleCrossDown = crossDown1 and crossDown2[1] == false and crossDown2[2] == false

// شرایط اضافی (قیمت زیر HMA و HMA سریع قرمز باشه)
bearish = close < hmaFast and hmaFast < hmaSlow and hmaFast < hmaFast[1]

shortSignal = doubleCrossDown and bearish

// رسم سیگنال
plotshape(shortSignal, title="SHORT", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.large, text="SHORT", textcolor=color.white)

// رنگ HMA
plot(hmaFast, color=hmaFast > hmaFast[1] ? color.lime : color.red, linewidth=3)
plot(hmaSlow, color=color.orange, linewidth=2)

// آلرت
alertcondition(shortSignal, title="SeaSide Short Signal", message="⚡ NZDUSD SHORT SIGNAL - Double HMA Cross!")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions