الأحجام MomentumVolumeMean Reversion متاح في المنشئ

Money Flow Index (MFI)

MFI

MFI reads like RSI on a 0–100 scale but weights every price move by the volume behind it. That makes it a way to ask whether a move has participation — with one large caveat in FX, where the volume MT5 supplies is tick count rather than traded size.

Default period
14
Common levels
80 / 20
Indicator range
0–100
OverboughtOversoldCentreline 50Divergence

توضيحي — بيانات اصطناعية، ليست تسعيرة مباشرة.

What MFI tells you

MFI splits each bar's typical price move into positive or negative money flow, multiplies it by that bar's volume, and expresses the balance on a 0–100 scale. The intuition is that a move backed by heavy participation matters more than the same move on a quiet bar.

  • Above 80: buying flow has dominated the window
  • Below 20: selling flow has
  • Around 50: participation is balanced between the two sides
  1. 1 Multiply typical price by volume for each bar
  2. 2 Split into positive and negative flow
  3. 3 Express the ratio on a 0–100 scale
عرض الصيغة وتفاصيل الحساب

MFI weights each bar’s price movement by the volume that accompanied it:

  1. Compute the typical price of each bar: TP = (High + Low + Close) / 3.
  2. Multiply by the bar’s volume to get raw money flow: MF = TP × Volume.
  3. Classify it. If today’s typical price is higher than yesterday’s, the flow is positive; if lower, negative.
  4. Sum positive and negative flow separately over the period, form their ratio, and convert to a bounded index: MFI = 100 − (100 / (1 + positive flow / negative flow)).

That last step is identical in form to RSI’s — which is why the two look so similar and why MFI is often described as a volume-weighted RSI. The differences are upstream: MFI is built on typical price rather than the close, and each bar’s contribution is scaled by how much trading happened during it.

The scaling is where the practical caveat lives. On an exchange-traded instrument, volume is contracts changing hands. In retail FX there is no central exchange, so MT5 supplies tick volume — how many times the price changed during the bar. That tracks activity reasonably well, but it is a different quantity, and it varies between brokers because it depends on their price feed.

In MQL5 the call is iMFI(symbol, period, ma_period, applied_volume) and it returns a handle to a single buffer. The last argument is a volume type (VOLUME_TICK or VOLUME_REAL), not an applied price — there is no price selector, because typical price is part of the definition.

One consequence of the shared shape is worth stating: sharing a scale with RSI does not mean sharing its thresholds. MFI is conventionally read at 80 and 20 rather than 70 and 30 precisely because the volume weighting changes how far the readings travel. The Ultimate Oscillator is the same lesson taken further — it runs 0 to 100, is drawn with RSI’s own 70 and 30 lines, and measured across identical series spends 1.13% of its time above 70 where RSI(14) spends 4.94%. Whenever two oscillators share a range, the thresholds still have to be measured rather than assumed.

الإشارات

الإشارات المتميزة والقابلة للاختبار التي يوفرها MFI — والنظام الملائم لكل منها.

Overbought / Oversold

جاهز في المنشئ
الشرط
MFI moves above 80 or below 20
أفضل نظام
Ranging markets
الاستخدام النموذجي
Fade the extreme — with a volatility or trend filter

Centreline Cross

جاهز في المنشئ
الشرط
MFI crosses 50
أفضل نظام
Trending markets
الاستخدام النموذجي
Flip flow bias without waiting for an extreme

Divergence

منطق متقدم
الشرط
Price makes a new extreme, MFI does not
أفضل نظام
Trend exhaustion
الاستخدام النموذجي
Read a move that price is making without participation

Failure to Confirm

منطق متقدم
الشرط
A breakout in price with MFI staying mid-range
أفضل نظام
Breakout filtering
الاستخدام النموذجي
Question a break that nobody joined

تنفيذ MT5

ما يحسبه ويرسمه ميتاتريدر 5 فعليًا — وهو المرجع الذي كُتبت وفقه كل قاعدة في هذه الصفحة.

المخازن

الفهرس المخزن طريقة الرسم في MT5 ما يحتويه
0 MAIN_LINE Line The MFI value, 0–100. One buffer only — there is no signal line.

ملاحظات المنصة

يعمل بشكل أفضل / استخدم بحذر

لا يوجد مؤشر ذو ميزة شاملة. إليك أين يساعد MFI — وأين يضلل.

يعمل بشكل أفضل

  • Instruments with meaningful volume
  • Ranging markets
  • As a participation cross-check
  • With a volatility filter

استخدم بحذر

  • FX, where volume is tick count
  • Extremes as standalone entries
  • Strong one-way trends
  • Comparing MFI across brokers

بناء استراتيجية MFI

اربط الإشارة بقواعد الدخول والخروج، ثم صدّر EA MT5 قابلاً للترجمة — بدون كود.

  1. MFI (14)
  2. Fast StdDev (10) below slow StdDev (40)
  3. MFI below 20 in a quiet market → Open Buy · SL 40 / TP 80
  4. MFI above 80 in a quiet market → Open Sell

دمج MFI مع مؤشرات أخرى

نادراً ما يقف مؤشر واحد وحده. هذه التوليفات تغطي النقاط العمياء لـ MFI.

MFI + RSI

  1. RSI < 30
  2. MFI > 40
  3. Question the signal
السبب
Compare a volume-weighted reading against an unweighted one — when they disagree, the difference is participation
أفضل نظام
Either regime

No single-flow template pairs MFI with RSI. Start from MFI + StdDev and add an RSI node with its own Compare.

افتح المنشئ →

MFI + Bollinger Bands

  1. Price at lower band
  2. MFI below 20
  3. Buy
السبب
Require price to be statistically stretched at the same moment flow is one-sided, so two independent conditions have to agree
أفضل نظام
Ranging

No single-flow template pairs MFI with Bollinger Bands. Start from MFI + StdDev and add band nodes with a Price node into a Compare.

افتح المنشئ →

المعاملات

قيم أولية للتحقق على زوجك الخاص وإطارك الزمني — ليست إعدادات مضمونة.

المعامل الافتراضي نطاق الاختبار المقترح ما يفعله
Period 14 7–30 How many bars of money flow are summed. 14 mirrors RSI's default; longer periods make extremes rarer and more meaningful.
Overbought / Oversold 80 / 20 70–90 / 10–30 Your levels, not indicator inputs — iMFI has no threshold argument. Note these are wider than RSI's conventional 70/30.
Volume type Tick volume Tick / Real Which volume feeds the weighting. VOLUME_REAL exists in MQL5 but most FX brokers do not supply it, so VOLUME_TICK — the number of price changes — is what you get in practice.
Shift 0 0–3 Which bar back the value is read from. Shift 1 compares against a fully closed bar.

الإعدادات المسبقة الأولية

Reactive 7 Frequent extremes
Standard 14 The Builder template's baseline
Smooth 28 Rare, swing-level readings

أمثلة السوق

أين يعمل MFI، وأين يفشل، وكيف يغير الفلتر النتيجة.

يعمل

Flow extreme in a quiet market

MFI drops under 20 while dispersion is contracting, and the fade back toward the middle plays out — the configuration the template trades.

يفشل

Extreme during an expansion

MFI hits 20 as the market accelerates away. The reading is correct — flow really is one-sided — and fading it means standing in front of the move.

مُصفّى

Dispersion filter suppresses the trade

The same extreme appears while the short-window standard deviation is above the long one, the entry is skipped, and the move continues.

FAQ

Is MFI just RSI with volume?
Close, but two things differ. MFI weights each bar's flow by volume, and it is defined on typical price rather than the close. Where the two disagree, the gap is telling you that the price move and the participation behind it are not aligned — which is the whole reason to run MFI instead of RSI.
Does MFI work in forex?
With a caveat. FX has no central exchange and most brokers report tick volume — the number of price changes in a bar — rather than traded size. That is a reasonable activity proxy and MFI remains usable, but the readings are broker-specific and 'money flow' is a metaphor rather than a measurement. On instruments with real exchange volume the indicator does what its name says.
Why are the levels 80 and 20 instead of 70 and 30?
Convention, and it reflects that MFI moves further than RSI on the same data because the volume weighting amplifies active bars. They are your levels either way — iMFI takes no threshold argument — so test them rather than inheriting them.
Can I use real volume instead of tick volume?
MQL5 supports it: iMFI takes an applied-volume argument that accepts VOLUME_REAL. Whether you get anything back depends on the broker and the instrument. On most retail FX feeds real volume is absent or zero, which is why the Builder uses VOLUME_TICK.
Can I build an MFI EA without coding?
Yes for level rules and centreline crosses — one MFI node plus a Compare, with the period as an EA input. The MFI + Standard Deviation template also shows the dispersion filter that makes a fade survivable. Divergence and 'a breakout with no participation' are the exceptions and need custom MQL5.
How should I validate settings before going live?
Backtest on quality tick data first, then run the EA on a demo account before risking money. With MFI specifically, remember the tick-volume caveat — a strategy tuned on one broker's tick counts may behave differently on another's. When optimising, hold back data the search never saw.