Modification of EA to show Dynamic Value at Risk & Portfolio Standard Deviation

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Great communicator and very skilled developer. I will definitely use his services again :)
Comentario del Ejecutor
c'est un tourjours vrai plaisir pour moi de travavaillez avec des client comme vous.

Tarea técnica

I've converted some of the code provided in this video: Coding Incremental VaR in MQL4 and MQL5 for Better Trading Risk Management | Free Code Download

The purpose of this code is to display the Value at Risk (in dollars of the entire portfolio) and Standard Deviation of Returns.

 he code was provided through the following GitHub Source: https://github.com/darwinex/advanced-mql-programming/tree/master/risk-man/incremental-var

 

Changes I have made to the code:

  1. Converted it from a Script to an Expert Advisor
  2. Replaced some of the code so that it dynamically measures the VAR for Current Open Positions Positions as Opposed to FIXED Positions.

 

Next Steps:

  1. Watch the video (or from 8:30 onwards), after watching this you will have some context. The issue that I am having is for the current live open positions the VaR is increasing irrespective on whether it is a Buy or Opposing Sell (note as you will notice in the demonstration of the video, these positions will cancel each other out).

Outcome 1):

I need the live trades on the account to equal the exact same VAR value as the predetermined code.

For example:

If the FIXED code specifies:

{"AUDCAD","EURGBP","USDCAD"}

{   0.1, - 0.1,  0.1}

Then if the VAR is $98 in the FIXED code then it should be the exact same value if I opened those positions and compared it to the Dynamic EA.

Outcome 2):

I need to be able to fetch the Standard Deviation of the Portfolio in the Expert Advisor code and display this in the EA (note this code is available in the mph file).

If more context is needed on Portfolio Standard Deviation then watch this video: MQL5 Coding Tutorial for Portfolio Std Deviation and VaR for MT5

Note: Load the MPH file in your Includes Folder, Value at Risk - FIXED is a Script & Value at Risk - Dynamic is an EA.

What I need is  Value at Risk - Dynamic edited, the other code provide is just for assistance.


Han respondido

1
Desarrollador 1
Evaluación
(15)
Proyectos
34
24%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
2
Desarrollador 2
Evaluación
(7)
Proyectos
7
29%
Arbitraje
3
0% / 100%
Caducado
1
14%
Libre
Solicitudes similares
need an MT5 Expert Advisor for XAUUSD. The EA logic is based on Asian session range and London continuation. Main rules: 1. Asian session - User-defined start and end time - Calculate Asian High and Low - Calculate Asian range 2. Quality filter - Trade only if Asian range is between minimum and maximum values (inputs) 3. Entry - One trade setup per day - If BUY bias: Place Buy Limit at Asian Low minus buffer - If
I want to create an intraday EA designed to trade RSI pullbacks in the direction of the dominant trend during sufficient volatility, scales out profits, and automatically stands aside when market conditions stop supporting its edge. It should have the following features and are based on the following indicators: Trade FX on M15 Enter based on RSI, EMA and ATR Scale out profits using a multi-TP structure Trade only
I need a marketer who can actively sell my MetaTrader EA and generate real purchases. Offer Upfront: $50 (to start work immediately) Commission: 30% per sale on NET price (after payment processor/platform fees; VAT/taxes excluded) Commission is paid only on verified sales tracked through unique links/coupons. Your Job (what “SELL” means here) You must: Bring targeted buyers (traders, forex/crypto communities
hello great developer I am looking for a trading bot that can automatically execute trades on my behalf. I am a member of a premium Telegram signals group, and I would like the bot to place all trades automatically and atomically as soon as the signals are posted in the group. The primary issue I am facing is that the group operates during London trading hours, and I occasionally miss signals due to time differences
Strategy Development: Suggest a high-probability trading strategy based on Technical Analysis (using indicators like RSI, MACD, or Price Action). Risk Management: Explain how to calculate position sizing so I don't lose more than 1-2% of my capital per trade. Market Analysis: Teach me how to identify Support and Resistance levels and how to spot a trend reversal. Psychology: Give me 5 golden rules to maintain
A Grid EA with a hedge that open trades on a percentage based on whats is opened on the other side, closes losing trades with current profits made and utilizes a grid trading strategy combined with hedging technique to mitigate risk and potentially lock in profits. It involves placing buy and sell orders at predetermined price intervals, forming a grid. When a trade within the grid moves against the initial
I need an MT5 remote trade copier EA (manual trading mirror). Scope: Master EA + Client EA (MT5) Copies manual trades: open, close, SL/TP changes, partial close, pending orders Remote / internet-based copying via server/hosting (not LAN-only) Works across different brokers and VPS/PC locations Basic reconnect / retry logic Full MQ5 source code Assist with testing until stable
MQL5 Expert Advisor Development (MT5) I need a professional MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 with high accuracy, low drawdown, and fast execution . 🔹 Strategy Requirements: Timeframe: Scalping-friendly (M1 / M5) Indicators Used: EMA 9 EMA 12 EMA 21 VWAP (as a trend filter) RSI (for trade confirmation) 🔹 Trade Logic: Buy and Sell entries based on EMA crossover + VWAP direction
Project Summary We are looking for a highly experienced MetaTrader 5 (MT5) developer to build a pattern-based Expert Advisor (EA) focused on low-time-interval automation (15-second & 30-second logic). This is a pure MT5 project — no external platforms, no shortcuts. It should be very clean ,Efficient ,Precised ,Accurate ,No copy paste ,Low latency. If you have real experience with MT5 tick-based logic and
Project Description I am looking for an experienced MQL5 developer to build a custom MT5 Expert Advisor (EA) based on a clear, rule-based breakout and momentum strategy using multiple timeframes . This EA must be cleanly coded, well structured, fully adjustable via inputs , and delivered with source code (.mq5) . Strategy Logic Timeframe 1 – Daily Chart (Trend / Breakout Filter) The EA must monitor the Daily

Información sobre el proyecto

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