Adding martingale to ea

MQL4 Indicators Experts

Job finished

Execution time 2 hours
Feedback from employee
Good Customer thank u
Feedback from customer
Very fast developer, work well done. thank you.

Specification

Hi. I need to add a martingale option to my EA. Here are the features:

1° - There should be a true/false option in the settings to activate/deactivate the martingale.

2° - The martingale should be independent from the existing "AutoLots" money management. So I will set manually the amounts of lots of the martingale (explained at point 5°).

3° - The martingale should work at the end of every trade, so that it modifies the lots of the next trade only after that the previous trade is closed.

4° - Then, if the previous trade is in profit, the same initial lots quantity is maintained, so for example if it starts the first trade with 0.01 lots and it wins, the next trade will be of 0.01 lots. Instead, if the trade is in loss, the EA should increase the lots in the next trade (by settable numbers in the settings - explained below), and it should increase the lots every time there is a loss (but with a limit - explained below), so that when it wins it recovers all the previous losses.

5° - There should be 20 parameters in the options where I will put every amount of lots of the martingale, so that I can customize them, for example:
     1°- 0.01
     2°- 0.02
     3°- 0.04
     4°- 0.07
     5°- 0.13
     ...and so on till 20°

6° - There should be a settable option of maximum number of bets of the martingale after a loss, so for example if I set "maximum number of bets" = 8, the ea should use the martingale for 8 times, and if I lose one time again (9 times) it doesn't increase lots again and takes all the 9 losses, AND after that big loss it should restart from the initial lots (ie. 0.01), doing the same as before so if it wins it should maintain the same lots AND if it loses it should restart to increase lots (ie. 0.01, 0.02, 0.04...).

I request the final source code in mq4 file.

Regards.



Responded

1
Developer 1
Rating
(636)
Projects
1007
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Working
Published: 6 codes
2
Developer 2
Rating
(213)
Projects
246
45%
Arbitration
42
10% / 57%
Overdue
5
2%
Free
3
Developer 3
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
4
Developer 4
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
5
Developer 5
Rating
(45)
Projects
59
14%
Arbitration
31
26% / 52%
Overdue
34
58%
Free
6
Developer 6
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
7
Developer 7
Rating
(170)
Projects
203
47%
Arbitration
5
20% / 60%
Overdue
3
1%
Free
8
Developer 8
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
9
Developer 9
Rating
(7)
Projects
8
38%
Arbitration
3
33% / 33%
Overdue
2
25%
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
3
0% / 100%
Overdue
0
Free
Similar orders
Looking for an MT4/MT5 independent risk-management service or system that can monitor and automatically close trades opened and managed by another trader’s EA. The existing EA continuously removes/overrides manually added Stop Losses and may also override SLs placed by another EA. I need a solution that does not rely on modifying the existing trade or placing a Stop Loss. Instead, it should independently monitor each
I currently sell a white-label XAUUSD EA, but the existing supplier owns the source code. I now need a new, independently developed EA and licensing system that my company fully owns and controls. I am not requesting decompilation or copying of proprietary code. Existing settings, presets and trading examples will be provided as reference. The developer must first identify any missing strategy rules before
I am looking for an experienced trader, preferably a manual trader, with a minimum 12-month verifiable live trading track record. Requirements: - Target: Up to 10% monthly return - Maximum risk/drawdown tolerance: 20% - Maximum trade duration: 5 hours - No Martingale - No Hedging - No grid or other high-risk strategies - Minimum 12 months continuous track record - Track record must be independently verifiable through
Hello! I'm looking for an experienced programmer to help me fix bugs in NEOLOGICA, PROFIT. The code is written, without errors or warnings, but not everything works correctly. Please help me. I'm looking for a programmer for a long-term collaboration, so that this project can open doors to other interesting projects. :) You need to have access to this platform, but I think that's obvious
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I need this MT5 EA to work according to the following exact logic: SYMBOL: Primarily optimized for XAUUSD/Gold. All important values such as lot size, SL, TP, spread and MA periods must remain adjustable from Inputs
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
I need a simple MT5 Expert Advisor (MQL5) programmed exactly according to the following rules. The EA is a continuous candle-direction reversal strategy. Candle signal: Close > Open = BUY signal Close < Open = SELL signal Close = Open = no change Trading logic: After each candle has fully closed, use that completed candle to determine the required trade direction. The signal is acted upon at the opening of the
Looking to acquire an existing, proven EA. Not looking for new strategy development. REQUIREMENTS — non-negotiable: Minimum 12 months verified LIVE history (Myfxbook or MQL5 Signals, real money — not demo, not backtest) Hard stop loss on EVERY trade, set at order placement NO martingale, NO grid, NO averaging into losers, NO lot multiplication after a loss Max historical drawdown under 30% Minimum 5 trades per
I want to develop a fully automated MetaTrader 5 trading bot focused primarily on EUR/USD, inspired by the functionality of modern algorithmic trading systems. The bot should run 24/6 on a dedicated VPS and analyze the market continuously, refreshing approximately every second rather than waiting for candle closes. Key features: • Real-time volume and tick-level market analysis • Order-flow and liquidity analysis •

Project information

Budget
30+ USD
Deadline
to 2 day(s)