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
(16)
Proyectos
35
23%
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 clean well comented EA, with source code, after delivery need 7 days for testing, if need further support or modify, developer should do it, The Rsi, atr, based, with volatility filter
hello great developer I’m looking for an experienced developer to build a high-speed trade copier that works both ways between MT4 and MT5 . The copier must support: MT4 → MT5 MT5 → MT4 MT5 → MT5 (example: Blueberry MT5 → FTMO MT5) The system will run on my own VPS (local copier, not cloud-based). Key Requirements Real-time / fast execution (low latency) Two-way copying (MT4 ↔ MT5) Support for multiple brokers
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
I’m looking for developer to build an AI-assisted trading system for Metatader 5 . You to deliver, working MT5 module, AI module (Python or compatible), source codes for both This phase is focused strictly on core logic and AI integration , not UI or dashboards. Kindly reach out only if you have experience on AI integration and prove of past work
EA Expert MTA 4 30+ USD
I have my own indicator and needs to create EA expert working smoothly with it to hit the targets as defined in indicator: Technical approach: - The EA will read the indicator signals using Copy Buffer on the selected timeframe - The EA should hit indicator variable targets factor -​Auto-Entry: Instant execution when the signal appears. ​-Alerts: Mobile Push Notifications + Pop-up alerts. -​Money Management Auto-lot
저는 20 년 경력 의 나스닥 트레이더입니다 . 리스크 관리 규칙을 자동화해 줄 전문 MT5 Expert Advisor가 필요합니다. 요구 사항 은 다음과 같습니다. 1. 종목: 나스닥(US100/NAS100)만 지원 2. 최대 총 거래량: 0.20랏 (보통 0.02랏씩 여러 번 진입) 3. 자동 손절매: 신규 포지션 진입 시 $75 USD 손절매 자동 설정 4. 일일 손실 제한 : 일일 손익 이 - $ 150 USD 이하일 경우 모든 포지션 청산 및 당일 거래 차단 5. 안티 마틴 게일 : 기존 순 포지션이 손실 상태일 경우 신규 진입 차단 6. 피라미 딩 허용 : 기존 포지션 이 수익 상태 일 경우 추가 포지션 진입 허용 (최대 총 0.20 랏) 7. 손익분기점 기능 : 총 수익이 $100 USD 이상일 경우 모든 손절매 를 ( 평균 가격
I am in search of a profitable bot for scalping Gold. The bot should be ready as at now to trade in a live market with good consistency. It should have a low drawdown. No martingale or grid system. The developer should be able to send a demo so I can test. If you have any profitable EA, pls
Основной стандартный и единственный индикатор Параболическая SAR. Непосредственно работа робота. 1. Производится 1 сделка при начале нового тренда, тренд определяется индикатором Parabolic SAR. Пример: если точки расположены ниже цены - значит тренд восходящий, открывается покупка (по рынку), при смене тренда на снижение - точки становятся выше цены, происходит закрытие предыдущей сделки (если она была открыта), и
Hi, I’m looking to build an automated backtest for an ORB breakout strategy on NQ using 1-second data. Every trading day the opening range is built from 09:25:00 to 09:29:49 (New York time). At 09:29:50 two stop orders are placed: buy stop at OR high + offset points sell stop at OR low − offset points. Whichever triggers first becomes the trade and the other order is cancelled. The trade is managed with stop loss
I am in search of a profitable bot for scalping Gold. The bot should be ready as at now to trade in a live market with good consistency. It should have a low drawdown. No martingale or grid system. The developer should be able to send a demo so I can test. If you have any profitable EA, pls holla

Información sobre el proyecto

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