Need a Formula to calculate the VWAP inside an EA (MT5)

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Ejecutor
Extremely kind. Fast payment. Although the task was not completed to the best he accepted.
Comentario del Cliente
He was super fast and gave lots of explanation. Will happily work with him again.

Tarea técnica

Specification

I would like to create a volume weight average price (VWAP) indicator for a user defined start time.  My standard VWAP is calculated from 2am New York time. Below is the general formula for the VWAP. This Indicator will be used with an existing EA, so the code should be easy to read and duplicate so that a different programmer can add the code to a pre-existing EA.

  https://c.mql5.com/21/244/vwap_math.png

In the formula for VWAP you will use will use the average of the High and Low.

To simplify my requirement, I will put it into bullets points:

  1. The VWAP indicator will reset based on daily user defined time. When a new day is reached, the VWAP will begin from 0 again.
  2. I need an inputs that can allows me the ability to set the time of resetting
  3. Follow the math equation above to calculate the center or VWAP lines (Formula given)
    1. When VVWAP is decreasing = Red Colour
    2. When VVWAP is increasing = Lime Colour
    3. vwap_style = STYLE_SOLID
    4. vwap_width = 2
    5. Volume calculation is based on Tick volume
    6. Input: Default Price data based on (High + Low)/2.  The option to (Close, Median, Typical etc. - Standard price mode)
  4. Input: Period count - For the case where the calculation of VWAP on entire chart will be time consuming, by default let it only count on past 30 days of VWAP. The '30' (count in day) is the inputs I can define later
  5. When changing VWAP timeframe option, previous VWAP object should be cleared.
  6. When new candle generated the VWAP calculations MUST UPDATE CORRECTLY


Below is an example of what the VWAP line that resets at midnight New York time looks like.

https://www.dropbox.com/s/oq23bp1qo43i2t8/VWAP%20Reset%201%20Minute.png?dl=0

    Han respondido

    1
    Desarrollador 1
    Evaluación
    (2)
    Proyectos
    1
    0%
    Arbitraje
    1
    0% / 100%
    Caducado
    0
    Libre
    2
    Desarrollador 2
    Evaluación
    (276)
    Proyectos
    371
    72%
    Arbitraje
    18
    33% / 44%
    Caducado
    14
    4%
    Libre
    Ha publicado: 14 ejemplos
    Solicitudes similares
    Mt5 Ea 40+ USD
    I’m looking for an experienced MetaTrader 5 (MQL5) developer to convert a specific trading strategy into a fully automated EA. Strategy Requirements: Trend (H1): EMA50 > EMA200 → BUY only; EMA50 < EMA200 → SELL only Entry (M15): Wait for price to touch/approach EMA50, then enter on bullish/bearish candlestick pullback Risk Management: Stop Loss = last high/low of pullback candle Take Profit = 2× SL distance (RR 1:2)
    I am looking for an experienced MQL4 / MQL5 developer to create a custom Expert Advisor (EA). Trading details: - Symbol: XAUUSD (Gold) only - Platform: MT4 or MT5 - Strategy type: Scalping (fast trades) - Timeframes: M1 / M5 - Fixed Stop Loss and Take Profit - Risk management: - Lot size based on balance OR fixed lot (user configurable) - Maximum trades per day (user configurable) - Spread and slippage filter -
    First trade begins when the super trend changes and crosses the fast moving average. · Open trade (buy) when super trend crossing changes from sell to buy and crosses the fast moving average. If the price is is above the 200 EMA (slow moving average) only take buy positions. ( combining the 200 EMA with the supertrend) (If the super trend crossing cuts the slow EMA (200), do not take the trade) ·
    PROJECT DESCRIPTION: Looking for Pro-level MQL5 developer or Pro Team to develop 2 Expert Advisors for MetaTrader 5: EA 1: Grid Martingale Pro Classic Grid Martingale (one-way: Buy or Sell) Custom Lot Sequence and Distance Sequence Multiple TP/SL modes: Points, USD, Trailing Filters: Strong Trend Filter (StochRSI + SuperTrend + ADX), ATO Filter, Time Filter News Filter from Forex Factory (stop trading 1h before news)
    1. I will pay 3000+ USD (negotiable) for an EA for existing MT4/5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) 2. Looking for a highly profitable EA 3. Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to
    Need a Rebate EA 30 - 200 USD
    1. Platform & Environment Platform: MetaTrader 5 (MT5 ONLY) Language: MQL5 Account type: high spread / Netting or Hedging Designed for broker rebate/commission return programs No DLLs, no external dependencies 2. Strategy Overview The EA is a high-frequency scalping Expert Advisor focused on maximizing the number of trades with minimal price movement, where the main source of profitability is broker rebate rather
    I need my Expert Advisor to be modified so that its live trading logic behaves exactly like the "1 Minute OHLC" modeling mode in the MetaTrader 5 Strategy Tester. This is not an approximation request. The execution logic must strictly replicate the internal behavior of MT5 OHLC M1 modeling. Mandatory Requirements: The EA must operate strictly on M1 timeframe data. The EA must NOT depend on real tick data for signal
    Trading Robot Requirements (MT5 EA – Extra Conservative) Platform: MetaTrader 5 (MT5) Markets: Forex pairs (including USDJPY, GBPJPY, GBPUSD) Gold (XAUUSD) US30 Risk Profile (Very Conservative): Risk 0.25%–0.5% per trade maximum No martingale, no grid, no averaging down One trade per symbol at a time Maximum 1–6 good trades per day Strategy Logic (All Instruments): Automatic support and resistance detection
    Fixing mq5 code 30+ USD
    Hello, i have a mt5 EA that uses trailing start and distance + BreakEven start and distance. It doesnt work right, what ever number i put, it always starts BE at 50 or 100 points in profit.. and also, EA stops trading if "trend alignment" or "time filter" is OFF and trades remain opened.. EA should continue trading normally until all trades are closed and then shut down for the day.. those needs fixing.. i can pay
    Juniardy Meggi Tappi please help give for you many that for my wallect trading well my try may traiding forrex please...so i'm say so really thank you mybe just 30 usd

    Información sobre el proyecto

    Presupuesto
    40+ USD
    Plazo límite de ejecución
    a 5 día(s)