Correction of existing EA for in mql4 and mql5.

MQL4 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 40 días
Comentario del Ejecutor
Thank you!
Comentario del Cliente
Anand is very professional. I add the arbiter per mistake even though he conclude the job with excellence.

Tarea técnica

I have same EA one for mt4 and same EA for mt5. 

Both of them work with an existing renko chart indicator that I have.

Correction for mql4 and Mql5:

1-SYNCHRONIZATION ( this is the only one will not be applied to mql5, only mql4)

This EA has a timer to synchronize with the renko timer. The renko box just close after a given timer (usually 1 minute) is reached. It seems that sometimes the EA is opening 2, 3 or 4 orders without the renko has closed the box to buy or sell. Need to fix this synchronization and I have some pics to explain.


2- FUNCTION MODES:

How is the lot calculated:

The names below are examples, not exactly as it is in the EA.

Loss? if yes

MAX BALANCE (record the max balance reached before the loss). The "money management" part of the EA  will work as far the MAX BALANCE is not recovered.

CUMLOSS (sum losses in pips until SLCOUNTER is reached)

SLCOUNTER (setting in pips, after the trade is closed, it compares the CUMLOSS with SLCOUNTER)

GALE(martingale Factor)

N (Power to the martingale factor)

{

IF CUMLOSS>SLCOUNTER

Apply (GALE^N) to next trade.

N = INT(CUMLOSS/SLCOUNTER)

}

After the GALE is applied, then the CUMLOSS is reseted and start the counting again until, after a trade is closed, the MAXBALANCE is crossed. Then reset to initial lot again.

Example in pips:

+30

-20

-21

CUMLOSS= 41

SLCOUNTER= 40

GALE=2

N= 41/40 = 1

Next trade will use,

(last lot size)* (GALE^N)

Now lets say

-20

+10

-20

-60

CUMLOSS=100

SLCOUNTER= 40

GALE= 2

N= 100/40= 2

next lot = (last lot size)* (GALE^2)


UNTIL HERE THE EA WORKS WITHOUT TWO OPTIONS THAT CAN BE SET TODAY (MODERATE AND RECOVERY):

  • A- MODERATE Function (is working fine):

If moderate is active, then:

MGT (MAXIMUM MARTINGALE TIMES)setting in "times"

Calculate N (GALE POWER)

IF N<MGT, N=N

ELSE MGT

Example:

MGT=2

-40

-50

-60

CUMLOSS = 150

N=150/40 = 3 

As N>MGT

N=MGT

  • B- RECOVERY FUNCTION (need to be fixed)

Instead of using CUMLOSS to calculate lot, will use now RECLOSS

RECLOSS in stead of discard the positive trades after a loss, it considers it.

See comparison:

Example with SLCOUNTER=40

+20  RECLOSS=0  CUMLOSS=0

-20  RECLOSS=20 CUMLOSS=20

-30  RECLOSS=50 CUMLOSS=50

Apply gale normally and reset counting

-30  RECLOSS= 30 CUMLOSS=30

+10  RECLOSS= 20 CUMLOSS= 30

Whenever the running trade exceeds the MAX BALANCE it checks the RECOVERY OFFSET (pips) function

The trade is closed after the MAX BALANCE is exceeded in the RECOVERY OFFSET amount of pips.

Now, you see the RECLOSS reduces the counting as + trades happen. UNTIL HERE IS WORKING FINE

What need to be fixed is the following:

In case

Balance < MAX BALANCE (This means we are in loss condition)

Actual lot > initial lot (This means gale has already been applied)

And a + trade is closed that exceeds the SLCOUNTER positivelly,

the lot can be reduced applying GALE reverse.

If

N= (GAIN/SLCOUNTER)

So next lot will be ( ACTUAL LOT / (GALE^N) )

>>reset counting


3- PAUSE function (to be created)

Create Pause function yes/no

Create Pause % setting X

Create Y timer (minutes)

Whenever the drawdown is X%, the EA closes the trade(s)  where it is and pauses the EA for Y minutes. Every subsequent drawdown of same proportion will be paused again.


FINAL COMMENTS:

THE EA for MT5 has no timer and the renko for MT5 has no timer as well

The renkos are stable and don't need to be touched, unles to fix the problem 1.

The martingale calculation for MT5 seems to be working only when both MODERATE and RECOVERY functions are set + Trailling tick set. This must be fixed.

The Martingale can work indepentend of Moderate and Recovery set to yes as explained above.

MQL5 must be backtested capable









Archivos adjuntos:

PNG
Settings.png
180.5 Kb

Han respondido

2
Desarrollador 2
Evaluación
(91)
Proyectos
144
38%
Arbitraje
67
15% / 48%
Caducado
55
38%
Libre
3
Desarrollador 3
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
I would like to modify the RSI Epert Avisor with a developer. I would like to use the RSI Expert on the inverse mode and the base setting doesnt conatain this strategy mode
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Buy an sell symbols and guide showing entry to buy or sell setups and I need it gives and tell me to enter buy or to enter sell by automation nnnnnnnnnn fgggghhuuuiijh hhrddfhuuufffff yygggg hhgt hiidcb hygdfbby gyytdv uttrdd. Httdd hyyydv. Yhygf. Uu juhgff uyttt uuuytdbhy uuuyyy hhhff jjueeiivhgffdgu hyuu7trg yyyyffj yyytd u6tttf uuyrrrhi uytrrfh utterly jyrfgkkttv uhyybhhyy hytfgivuyt utfbh utghjio7t. Uuytg uytru
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
Connect from Mt5 via binary deriv account api I have mt5 indicator, need to connect with binary deriv account through api. If anyone can setup via API then contact me. everything control mt5
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
Hi, I have 2 indicators which are based on the super trend , the alerts on indicator (1) does not work at all , and on the other indicator the alerts do not come on time on time, which is kind of delayed. see attached file below
Looking for an experienced developer to modify my existing TDI strategy , want to add filter for Buy and Sell Signals, Arrows are displayed on chart and what only to leave high accurate arrows Source code to be provided
I have the mq5 file, I need a buffer adding to the indicator, so it appears in the data window so I can reference it later in an EA. As the below screenshot shows, there is a median ray line from yesterday (the dashed horizontal line) - I want this value in the data window called Median Ray. I want this to be a single value per day, so todays Median Ray would be 17868, and so on each day. So I want all the Developing
I would like to develop my own indicator on metatrader 4 and tradingview. We would start with a basic version that we would improve later. It is an indicator based on several analyses and which would provide several indications. I am looking for someone who can develop on MT4 and Mt5, initially I would like to do it on mt4 and then on mt5. If you have expertise in pinescript it is a plus because I would like to

Información sobre el proyecto

Presupuesto
80 - 140 USD
Para el ejecutor
72 - 126 USD
Plazo límite de ejecución
de 1 a 60 día(s)