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
(10)
Proyectos
25
28%
Arbitraje
2
0% / 0%
Caducado
1
4%
Trabajando
2
Desarrollador 2
Evaluación
(5)
Proyectos
5
40%
Arbitraje
1
0% / 100%
Caducado
1
20%
Libre
Solicitudes similares
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
I need someone to build an EA for me based on Trend and Pivot levels from custom Pivot and Trend indicators. I will provide more information to the selected programmer
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
Utilizing the MQL5 MetaEditor Wizard, I created an Expert Advisor, having the following Signal indicators: I was able to optimize the EA and reached a backtest with the following specifications: I was able to reach a profit level of 30K, as indicated below. However, the Bot is not without faults and following the backtest, I started a forward test with real live data and the results were not so great. The EA took a
We operate forex by receiving signals and opening orders expecting a TP of XX pips (in our scenario we are going to use XX=20) Whenever the order is open, we expect the market to move in our favor but if it moves against us we make a calculation of a next order to offset the losses of the original order and still make the XX (20 pips). That should happen after an specified number of pips against. (the GAP variable)
Hello I am looking for a developer to create an 50% retracement Indicator of the previous candle . So once a candle close the Indicator is supposed to take the full candle size from high to low and make a 61% and 50% level on that candle and I would like the candle to show until the next previous candle is done creating. After this I would look to create an ea with it possibly

Información sobre el proyecto

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