Correction of existing EA for in mql4 and mql5.

MQL4 Indicatori Esperti

Lavoro terminato

Tempo di esecuzione 40 giorni
Feedback del dipendente
Thank you!
Feedback del cliente
Anand is very professional. I add the arbiter per mistake even though he conclude the job with excellence.

Specifiche

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









File:

PNG
Settings.png
180.5 Kb

Con risposta

2
Sviluppatore 2
Valutazioni
(91)
Progetti
144
38%
Arbitraggio
67
15% / 48%
In ritardo
55
38%
Gratuito
3
Sviluppatore 3
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
Ordini simili
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, I need a martingale and grid bot. The programmer must provide a test of about 5 minutes for the EA to see how it works and if everything is fine, it will be selected to make some modifications for personal use to that EA that you provide. If it has a lot of graphics or buttons. better It doesn't matter if the robot is bad, I'm more interested in its functionalities to use with my strategy
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Here is the Idea: I want a Semi Auto Trade Panel Manager EA that only activates when I press the BUY or SELL or BUY LIMIT or SELL LIMIT then the EA will do the rest : that includes the BUY STOP 0r SELL STOP and the hedging calculations according to below diagram. So overall , my only intervention is entering the lot size , hedge zone distance and TP ratio or entering the price for buy limit/sell limit then pressing
Hi, I'm looking for a martingale MT4 EA that performs a lot of trading volume per day. If you have the robot, you'll need to send me the demo so I can backtest it. Thank you very much
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
we want to build a dashboard ea that would display on another chart key metrics : i will foward screeshot of what i want to dashboard to look like : the function i would need to get display are the following: 1. classified past performance ea by magic number ( with classic : total trade , total profit , return/dd , max dd (base on history) , ) 2. equity chart of performance if we click on a magic number we should
the task will be actually quiet simple , i need an active develloper to devellope out of 3 updates an ea STEP 1 (this job): make a classical pair trading ea , that can calculate correlation between assets and trade when the correlation diverge above a specified % the develloper that will postulate for the job will need : 1- to be ok to do the full project this job and the update following 2- very low arbitration , i
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor the 2 lines in the below pictures and then start to activate bids once they cross each other and then be able to manage all bids afterwards towards the direction of the market by opening and closing them intermittently and profitably until the position at the other

Informazioni sul progetto

Budget
80 - 140 USD
Per lo sviluppatore
72 - 126 USD
Scadenze
da 1 a 60 giorno(i)