Correction of existing EA for in mql4 and mql5.

MQL4 指标 专家

工作已完成

执行时间40 天
员工反馈
Thank you!
客户反馈
Anand is very professional. I add the arbiter per mistake even though he conclude the job with excellence.

指定

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









附加的文件:

PNG
Settings.png
180.5 Kb

反馈

2
开发者 2
等级
(91)
项目
144
38%
仲裁
67
15% / 48%
逾期
55
38%
空闲
3
开发者 3
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
相似订单
Hello, This is pretty simple and its an indicator with On/Off button 1-Off will remove all indicator from the chart. 2-On will put them all back again with the same settings
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
I need someone the create a supertrend indicator based on Heikin Ashi candles instead of normal candles. Needs to be exactly the same as the supertrend (original one) + ha from tradingview. In m1,m5,m15 the indicator must have the same values ​​found with the tradingview. Work that meets this requirement will be accepted ( depending on the broker and spread, however, a few pips of difference will be accepted)
Here is a detailed instruction for the coder to implement the vertical lines based on the BrainTrainSignalAlert indicator: --- **Task: Implement Vertical Lines for Alerts from BrainTrainSignalAlert Indicator** **Objective:** Create a system that adds vertical lines on specified timeframes (M5 or M30) whenever an alert is generated by the BrainTrainSignalAlert indicator on the H1, H4, and D1 timeframes. The lines
Hello Guys! I want to modify/fix the indicator that uses sequential type of entries (it calculates from 1 to 9) and if the conditions are met it provides an arrow (signal) with alert. The problem is that, sometimes (for unknown for me reasons) it repaints arrow signal. Like on the picture: Signal 1 - correct signal Signal 2 - correct signal Signal 3 - correct signal Signal 4 - repaints (signal 3 arrow dissapeared
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should

项目信息

预算
80 - 140 USD
开发人员
72 - 126 USD
截止日期
 1  60 天