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
Similar orders
Subject: Inquiry: MQL4 Optimization & Refinement for Proprietary Binary Suite (Pine-to-MT4) I am seeking an experienced MQL4 / MetaTrader developer to optimize and finalize a custom binary options trading suite. Project Summary Core Architecture: Multi-pair Regime Scanner (22-pair FX basket monitoring state/score) and a Signal Engine operating on M1 charts. Strategy Sequence: Pre-Alert Dot: Placed on a candle closing
Hello I want some that can help with my strategy signal I have the video that you are going to watch if you know you can help me with kindly do well to bid and let discussed it an urgent project and also if you can not work before you get paid please don bid thanks
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
i need an expert to develop Bot TO trade using MT5 with a profitable strategy ... work daily with good indicators the price will be negotiable will try the bot first after we can decide
The indicator should identify the high and low of two configurable trading sessions, draw their levels on the chart, and generate reliable breakout alerts. 1. Session Settings Symbol: Current chart symbol (EURUSD for testing). Timeframe: M5. Two independent sessions: Session A: 08:00–10:00 Session B: 13:00–15:00 All times use MT5 broker server time. Start and end times must be configurable. The indicator should
Project: Convert TradingView Indicator to MT4 We are looking for an experienced MQL4 developer to convert a high-quality TradingView indicator into a MetaTrader 4 (MT4) indicator. Indicator Details: The TradingView indicator generates buy and sell arrows for trade entries. It is non-repainting, has no lag, and is highly reliable. Arrows appear only after the candle closes and remain visible permanently. Requirements
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
Project Overview: I am looking for an experienced MQL5 developer to convert a suite of 6 custom MT4 indicators into native, fully optimized MQL5 (.mq5) indicators. I will provide the uncompiled .mq4 source files for all seven tools upon hiring. The indicators must compile cleanly in MetaEditor for MT5 without errors or critical warnings, function correctly together on a multi-timeframe chart setup (specifically
Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you
I am looking for an experienced MQL5 developer or development team to build a scalable Telegram-to-MT5 copy trading system. The main purpose of the system is to monitor trading signals from my Telegram channel and automatically execute those signals on connected client MT5 accounts. Core Requirements Receive and parse trading signals from Telegram Automatically execute trades on connected MT5 accounts Support more