//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)
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
