//version=5
indicator("MFI Entry/Exit Signals", overlay=true, shorttitle="MFI Signals")
// إعدادات المؤشر
length = input.int(14, title="MFI Length")
overbought = input.int(80, title="Overbought Level")
oversold = input.int(20, title="Oversold Level")
// حساب مؤشر تدفق السيولة (MFI)
mfi = ta.mfi(close, high, low, volume, length)
// إشارات الشراء والبيع
longCondition = (mfi < oversold) and (ta.crossover(mfi, oversold))
shortCondition = (mfi > overbought) and (ta.crossunder(mfi, overbought))
// رسم الإشارات
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// رسم الـ MFI على الشارت
hline(overbought, "Overbought", color=color.red, linewidth=1, linestyle=hline.style_dotted)
hline(oversold, "Oversold", color=color.green, linewidth=1, linestyle=hline.style_dotted)
plot(mfi, color=color.blue, linewidth=2)
indicator("MFI Entry/Exit Signals", overlay=true, shorttitle="MFI Signals")
// إعدادات المؤشر
length = input.int(14, title="MFI Length")
overbought = input.int(80, title="Overbought Level")
oversold = input.int(20, title="Oversold Level")
// حساب مؤشر تدفق السيولة (MFI)
mfi = ta.mfi(close, high, low, volume, length)
// إشارات الشراء والبيع
longCondition = (mfi < oversold) and (ta.crossover(mfi, oversold))
shortCondition = (mfi > overbought) and (ta.crossunder(mfi, overbought))
// رسم الإشارات
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// رسم الـ MFI على الشارت
hline(overbought, "Overbought", color=color.red, linewidth=1, linestyle=hline.style_dotted)
hline(oversold, "Oversold", color=color.green, linewidth=1, linestyle=hline.style_dotted)
plot(mfi, color=color.blue, linewidth=2)
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
