P
PipsGrowth

VWAP (Volume-Weighted Average Price)

#03 · Mean Reversion / Institutional غير معاد الرسم EA Readable لوحة تنبيهات

VWAP (Volume-Weighted Average Price) is the ultimate institutional benchmark. It calculates the average price weighted by volume from the start of each trading session. Deviation bands show when price is extended from the volume-weighted mean. The indicator supports two modes: mean reversion (fade extremes) and trend continuation (trade bounces off VWAP).

كيف يعمل

VWAP accumulates from session start: typical_price = (high + low + close) / 3, then VWAP = cumsum(typical_price × tick_volume) / cumsum(tick_volume). Deviation bands are placed at ±Band_Multiplier × standard_deviation of (typical_price - VWAP). In reversion mode, BUY when price closes below lower band with >1 ATR distance from VWAP; SELL when above upper band. In continuation mode, BUY when price bounces off VWAP from above.

إشارات الدخول

  • Reversion BUY: Price closes below lower band AND distance > 1 ATR from VWAP
  • Reversion SELL: Price closes above upper band AND distance > 1 ATR from VWAP
  • Continuation BUY: Price holds above VWAP and bounces off VWAP on retest
  • Continuation SELL: Price holds below VWAP and rejects VWAP on retest
  • No-Trade: Price near VWAP (within 0.5 ATR) → no edge

إشارات الخروج

  • TP (Reversion): Price returns to VWAP
  • TP (Continuation): Price reaches ATR-based TP
  • Reversal: Price crosses VWAP in opposite direction
  • Expiry: Signal_Expiry_Bars passed
  • Session End: New session starts → all signals ended

مرشحات التداول

  • VWAP Distance: Too close to VWAP → no signal (no edge)
  • Session: Only trade during active session
  • Spread: Spread > Max_Spread_Points → no signal
  • Cooldown: Last signal < Cooldown_Bars ago → no signal
  • Volume Surge: Require above-average volume for validity

معاينة الكود المصدري

أول 50 سطر من 983
PG_03_VWAP_VolumeWeighted.mq5
MQL5
//+------------------------------------------------------------------+
//| PipsGrowth_VWAP_VolumeWeighted_Indicator_v1.mq5 |
//| Copyright 2025, Pipsgrowth.com |
//| https://www.pipsgrowth.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, Pipsgrowth.com"
#property link "https://www.pipsgrowth.com"
#property version "1.00"
#property indicator_chart_window
#property indicator_buffers 13
#property indicator_plots 6
// Plot 0: BUY Entry (up triangle, green)
#property indicator_label1 "BUY Entry"
#property indicator_type1 DRAW_COLOR_ARROW
#property indicator_color1 clrLime
#property indicator_width1 2
// Plot 1: SELL Entry (down triangle, red)
#property indicator_label2 "SELL Entry"
#property indicator_type2 DRAW_COLOR_ARROW
#property indicator_color2 clrRed
#property indicator_width2 2
// Plot 2: Exit Signal (color arrow: aqua=TP, orange=reversal, gray=expired)
#property indicator_label3 "Exit"
#property indicator_type3 DRAW_COLOR_ARROW
#property indicator_color3 clrAqua,clrOrange,clrGray
#property indicator_width3 2
// Plot 3: VWAP line
#property indicator_label4 "VWAP"
#property indicator_type4 DRAW_LINE
#property indicator_color4 clrYellow
#property indicator_width4 2
// Plot 4: Upper Band
#property indicator_label5 "UpperBand"
#property indicator_type5 DRAW_LINE
#property indicator_color5 clrDodgerBlue
#property indicator_style5 STYLE_DOT
// Plot 5: Lower Band
#property indicator_label6 "LowerBand"
#property indicator_type6 DRAW_LINE
#property indicator_color6 clrDodgerBlue
#property indicator_style6 STYLE_DOT
//--- Input Parameters
input group "Core"

لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.

المميزات الرئيسية

Session-based VWAP with automatic reset
Deviation bands (configurable multiplier)
Dual mode: mean reversion or trend continuation
VWAP Conviction Meter (distance + volume)
Volume surge filter for signal validity
Session-aware signal invalidation

معاملات الإدخال

Session_Start_Hour
الافتراضي: 0
Session reset hour (GMT)
Session_End_Hour
الافتراضي: 23
Session end hour (GMT)
Band_Multiplier
الافتراضي: 1.5
Std dev multiplier for bands
Reversion_Mode
الافتراضي: true
true=mean reversion, false=trend continuation
Max_Bars_From_VWAP
الافتراضي: 3
Max ATR distance from VWAP for reversion
SL_ATR_Mult
الافتراضي: 1.0
Stop loss in ATR multiples
TP_ATR_Mult
الافتراضي: 1.0
TP in ATR multiples (target = VWAP return)

تعليمات التثبيت

1حمّل ملف .mq5 من زر التحميل
2افتح MetaTrader 5 ← File ← Open Data Folder
3اذهب إلى MQL5 ← Indicators
4انسخ ملف .mq5 إلى مجلد Indicators
5افتح MetaEditor (F4) واضغط F5 للترجمة
6المؤشر سيظهر في Navigator تحت Indicators
7اسحب المؤشر إلى الرسم البياني
8اختبر على حساب تجريبي أولاً

تحذير صريح: لأغراض تعليمية فقط

هذا المؤشر مخصص للأغراض التعليمية والاختبارية فقط. لا تستخدمه بأموال حقيقية. اختبره فقط على حساب تجريبي. التداول بأموال حقيقية ينطوي على مخاطر فقدان رأس المال. لا تشكل هذه الأداة نصيحة استثمارية.

مجتمع المستخدمين

سجّل دخولك للمشاركةتسجيل الدخول

الأسئلة الشائعة

ارتداد VWAP المتوسط يفترض أن السعر سيعود إلى VWAP. لكن في اتجاه قوي، يمكن أن يظل السعر ممتدًا بعيدًا عن VWAP لفترة طويلة. المفتاح: تداول إعدادات الارتداد فقط عندما يتوافق الاتجاه الأوسع. إذا كان السعر أقل من VWAP في اتجاه صعودي، فهذا "سحب العلم الصعودي" وليس فشل ارتداد — انتظر حتى يرفض السعر فعلاً النطاق السفلي بحجم تداول. بدون محاذاة الاتجاه، تصبح صفقات الارتداد المتوسط فخاخًا لتتبع الاتجاه.
آخر تحديث: ١١ يوليو ٢٠٢٦

إخلاء مسؤولية تعليمي

هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.

سجّل دخولك للتحميل

التحميل متاح للأعضاء المسجلين. سجّل الدخول أو أنشئ حساباً مجانياً للوصول إلى الكود المصدري الكامل.

المواصفات

الفئةMean Reversion / Institutional
الصعوبةIntermediate
الإصدارv1.0
الإطاراتM5, M15, M30
إعادة الرسملا
EAقابل

الأفضل لـ

Intraday tradingLondon/NY sessionMean reversion strategiesXAUUSD M5-M15
VWAP (Volume-Weighted Average Price) | مؤشر MT5 مجاني