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
I am Searching for a Profitable EA Trading Bot. Backtest before is required. We need EA as well as Source Code. Should work on Forex, Gold or BTC. We want to backtest the EA before. Happy for your offers
Trade copier 100+ USD
hello great developer This is what I need: I need a local trade copier solution to transmit trades from MT4 and MT5 to NinjaTrader 8 instantly for arbitrage purposes, with ultra-low latency and no cloud services involved. Scope of work - Develop MT4/MT5 EA or script for detecting and sending trades locally. - Create NT8 NinjaScript for listening to and executing trades. - Support market orders and lot size
Hello I want to copy the trades from a cTrader Strategy Provider (Copy Trading system) to a MT5 Account. At the moment cTrader allow me only the copy the trades from the strategy provider if i allocate funds to a subaccount which cTrader opens for me automatically without account number and without password if i follow the trades from strategy provider. It copies the trades from strategy provider account to my
I will send the source code privately Note that the tradingview indicator is profitable so should be the conversion to mql5 ea... ONE WORD EA SHOULD BE PROFITABLE when fully converted.. I created the source code of the indicator and fully analyzed the data.... I NEED A WELL COOKING CODER TO FULLY WORK WITH URGENT let's work towards the future
I need a reliable, clean-coded Expert Advisor built for both MetaTrader 4 and MetaTrader 5 platforms. Main trading behavior: The EA follows buy and sell arrows produced by my custom indicator. Whenever a buy arrow shows up on the chart: if a sell position is currently open → close that sell immediately and enter a buy trade in its place. Whenever a sell arrow appears: if a buy position exists → close the buy and
Hello I'm looking for professional to create a robot to me that will enter us30 or nasdaq around 16H29-minute55-Second New York session opening Monday to Friday and put stop loss 3800 points away from entry hedging strategy
hello every one i have a sample strategy i need a expert for automatical trade on vps pls let me know if every one can summer of expert : mixed 2 EMA and hicenashi + money managment i will need test befor pay
Looking for an experienced developer to build an AI-driven trading system for MetaTrader 5. The bot should be able to: Analyze market structure (accumulation, manipulation, distribution) and 45-min pullback zones (25%, 50%, 70%) for trade decisions Integrate with Bookmap via API for real-time order flow, liquidity, and footprint data
*I am looking for an experienced MQL5 developer to build a custom Expert Advisor (EA) for MetaTrader 5 based on my proprietary trading strategy. The full strategy details will be shared privately with the selected developer after agreement. The EA must be designed for automated trade execution with a strong focus on accuracy, speed, and stability. It should support flexible input settings and allow for future
Hello, I am seeking assistance in setting up a trade copier or bridge to facilitate the copying of trades from MetaTrader 5 to the Tradovate platform. I am looking for someone who can help automate my trading process, allowing trades generated by my Expert Advisor in MT5 to be copied to different accounts on Tradovate using their API.Something like in the attached image

Información sobre el proyecto

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