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
相似订单
Hello, I’m looking for an experienced MQL4 developer to build a custom MT4 Expert Advisor based on a Koncorde-style indicator strategy. Here are the main requirements: 🔹 General Overview The EA must be a master EA , running on a single chart and managing multiple currency pairs simultaneously No need to attach EA to each chart Must support a configurable list of symbols 🔹 Indicator Requirement Develop a custom
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party
Hi guys I’m looking for a coder who’s experienced in one script. The candidate must be familiar with fractals and self similarity. If you can’t code self similarity, please don’t bother contacting me ( respectfully). I just don’t want us to waste each others time. My budget is 100$. If that’s too low for you please, don’t contact me. Only contact me if you can code self similarity and can accept 100$. I will provide
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
Core Requirements: Platform: MetaTrader 5 (MT5). Symbol: XAUUSD (Gold). Timeframes: M1 and M5 (user selectable). Trading Style: Scalping with controlled risk (not aggressive or high-risk strategies) -> adjustable, even better. Execution: Fast execution, optimized for gold market conditions. Frequence = adjustable, but there should be 10-20 trades per day. Strategy Logic: Use a reliable and conservative strategy
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)
I am looking for non-repainting indicator to run in all sessions for scalping gold , happy to discuss if you have developed such indicators which can show profit and stop loss levels
Hello! I want to buy two indicators: A Support and Resistence Indicator and a Trendline Indicator. Support and Resistence Indicators needs to automatically draws Support and Resistance lines based on High and Low Candle in every time-frame (If possible time-frame needs to be in inputs and choose by me what time-frame i want indicator to draw lines) Trendline Indicator needs to automatically draws Trendline Channels
I need an experienced developer to carry out an indicator and trading robot using the following; moving averages risk ( take profit and stop loss) and maximum drawdown limits heiken ashi confirmation. trendline breakout if possible The developer will test this on a demo account that I will provide before conclusion as I don’t want anyone to waste my time trying to use chartgpt trial and error. If you can do the
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *