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
    (275)
    Proyectos
    370
    72%
    Arbitraje
    18
    33% / 44%
    Caducado
    14
    4%
    Libre
    Ha publicado: 14 ejemplos
    Solicitudes similares
    I hope, dear developers, that you are doing well. Recently, I have been looking for an indicator dedicated to institutional trading (Smart Money Concept) , but I could not find a suitable one. And when such indicators do exist, they are usually provided only as executables, which makes them impossible to modify or customize. For this reason, I developed the entire concept myself, including: Real-time labeling of
    i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
    So, all I need is for a horizontal line to follow the tip of the top of the Fl1 line and tip of the bottom fl1 line. I need to be able to change colors to the line and change size. The actual Fl1 lines should not show on chart. Default color for both lines are RED. I'll need the source code to the indicator. This indicator is the beginning of a more complex i will need done to the horizontal line
    Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
    I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and have a low drawdown. The developer will send a demo which I can test for myself. I am looking for more of a partnership with an experienced developer
    The view EA 50 - 60 USD
    A multi currency fundamentals + orderflow + price action toolkit. Plot real-time fundamental news outbreaks sourced from Twitter feeds or financial news websites (e.g., Financial Juice). Automatically plot news events as vertical lines directly on the chart for instant visual context. Display economic release time as a live clock on the chart, synchronized with the event. Price Action & Orderflow Analysis Accurate
    Henryy999 30 - 3000 USD
    The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
    Hi, I have an EA, which places limit orders only by reading the text files in common folder (in a specific format) I need to make some updates in the EA: 1. Limit to Market Entry Adjustment: True/False · By default, when placing a buy limit order, if the current price, is below the limit price mentioned in the file, the order gets triggered as market entry. · By enabling the above option as True, it
    I am looking for an experienced MQL4 developer to build a custom MT4 indicator (EX4 only). I currently have two existing EX4 indicators for the binary forex market. Both indicators generate 1-minute signals, predicting the next candle direction (UP or DOWN). When both indicators generate the same signal on the same candle, the accuracy is around 95%. I want a new custom indicator with the following requirements: 1)
    Hi guys I'm looking for a reversal indicator that doesn't repaint or use future data and I have a screenshot of exactly what I want (if you have other reversal indicators available feel free to usage images of them too)

    Información sobre el proyecto

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