//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)
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
