//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)
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
