Add martingale to existing EA

MQL4 Esperti

Specifiche

Add martingale optional function to my existing EA. With Percentage you want recovered, over how many trades you want the recovery to be split into and maximum cycles of recovery attempts allowed.


Example - Normal trade is 10 sl 10 tp for this trade using 1 lot - this trade loses - example $100

I want a setting to choose how much percent of the loss I want to recover.





If I put in 100, means I want 100% of the lost trade recovered in the next trade(s) so $100 not including the normal trade size.
If I put in 50, means I want to recover 50% so $50 recovered in the next trade(s)





The lot used is dependent on sl and tp. In this example 10 pips is the tp. so we work out the lot size needed to produce $100 which is 1 lot for 100%
So In this example of needing 100%. 1 lot needs to be recovered for the loss in the next trade placed.
1 lot for recovery and 1 lot for the normal trade means the next trade lot size will be 2, to recover the loss plus take its normal trade.


Another setting choosing in how much trades will be used to recover the loss.
In previous example we used 1 trade to recover 100% of the loss.
Example if we want it to be recovered over 4 trades. the 1 lot which we need to recover will be split into 4, so 0.25 needs to be recovered 4 times.
0.25 lots for recovery plus 1 lot for normal trade means 1.25 lots for next 4 trades, if all trades win then this is the end of recovery and goes back to original
risk being used.

Maximum cycles stops loss and loss and loss. Example. If we are using 2 maximum cycles If EURUSD losses 1st trade at 1 lot.
The cycle is the attempt of recovery. So example 100% from 1 trade. original trade 1 lot loses. 1st cycle recovery trade 2 lot loses.
2nd and final cycle 4 lot trade loses. That ends the cycle as maximum attempts have been made and then it goes back to original lot sizes.

Outstanding balance needed to be recovered from previous cycle is added onto the new cycle


Each pairs recovery works individually. if EURUSD and GBPUSD enter the trade and EURUSD loses. The next GBPUSD will use original stated lot size the EURUSD will

use recovery lot size.


File:

Con risposta

1
Sviluppatore 1
Valutazioni
(3)
Progetti
7
29%
Arbitraggio
1
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 4 codici
2
Sviluppatore 2
Valutazioni
(365)
Progetti
412
36%
Arbitraggio
35
26% / 57%
In ritardo
63
15%
Gratuito
3
Sviluppatore 3
Valutazioni
(277)
Progetti
334
55%
Arbitraggio
14
36% / 29%
In ritardo
1
0%
Gratuito
4
Sviluppatore 4
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
3
0% / 100%
In ritardo
1
100%
Gratuito
Ordini simili
PROJECT OVERVIEW I need an experienced MQL5 developer to build a production-grade Expert Advisor for XAUUSD (Gold) on MT5, intended for continuous, unattended live operation. This is a trend-confirmed grid recovery system. Execution speed and reliability are the top priorities — every recovery level must be a real pending order resting on the broker's server, not something the EA monitors and reacts to on ticks. No
EA VAULT V5.1 30 - 200 USD
//+------------------------------------------------------------------+ //| EA_VAULT_V5_1_Otsile_Classic.mq5 | //| v5.11: CLASSIC VAULT EDITION - Smart Risk + License| //| Author: Otsile Trading | //| Icon: Bank Vault Guardian | //+------------------------------------------------------------------+ #property strict #property version "5.11" #property description "EA VAULT V5.1 CLASSIC EDITION" #property icon
I am specifically looking for a professional developer with strong experience in Python trading bots, order execution, and broker/exchange APIs . Please only contact me if you have relevant experience with automated trading systems and order execution . I am not interested in inexperienced developers or generic solutions. If you are confident that you can properly diagnose and resolve this issue, send me a message
DESCRIPTION I want both versions of the same trading system to be developed: Trading Indicator Trading EA (Expert Advisor) Both must follow exactly the same strategy and entry/exit logic . The main purpose of having both is to verify that the Indicator and EA produce the same signals, entries, SL, TP, BE and trade results under the same market conditions. IMPORTANT — DEMO VERIFICATION FIRST I have already faced
AWFX 69+ USD
I want a highfrequency straddle scalping mt5 ea,that is excellent for news event trading. Must be fully configurable and the pending stop orders must be used fast with the OCO style. It must trade cycles ultra-fast and dynamically increase lotSize bases on the current balance or equity
X Booter 250 - 10000 USD
I want you to make me a Professional Swing Trader by making more less loss on my account and I am Willing to to perform any of the duties you will ordering me to do .I want my Robot to make trades using any signal that will be profitable in my Journey
MT5 EA 150+ USD
I am looking for a professional MQL5 developer to create a custom trading robot for MetaTrader 5. The Expert Advisor must operate strictly on H4 and D1 timeframes with a Moving Average crossover entry signal. It should open a total position of 0.02 lots split into two orders of 0.01 lots. It must include an initial ATR-based stop loss, an automatic break-even function, a custom pairs filter input (Symbols), a news
Abba Wale 30 - 100000 USD
//+------------------------------------------------------------------+ //| XAUUSD_SMART_EA_V2.mq5 | //| BOS + Liquidity Sweep + FVG + EMA + ATR | //+------------------------------------------------------------------+ #property strict #property version "2.00" #include <Trade/Trade.mqh> CTrade trade; //================================================================== // INPUTS
Dfwluxea 30 - 6000 USD
MetaTrader 5 Smart Trading Robot – Description Create an advanced MetaTrader 5 (MT5) Expert Advisor designed to analyze the market, generate high-quality trading signals, identify potential trading mistakes, and manage trades using strict risk-management rules. The robot should continuously analyze price action, market structure, trend direction, volatility, support and resistance, momentum, and selected technical
I have an existing MetaQuotes Language 5 Expert Advisor containing approximately 12,000 lines of code. The project requires auditing and targeted reprogramming to restore strategy profitability and accuracy. ​ Key Tasks: ​ Profit Tracking Reprogramming: Re-code and fix the profit tracking, trade management, and trailing mechanisms to ensure accurate execution. ​ Trade Entry Audit: Perform a full review of all trade

Informazioni sul progetto

Budget
30+ USD
Scadenze
a 2 giorno(i)