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
This is a Tradingview project. Would you be able to make this? With a win rate and profit factor and percentage made and profit made and max dd reached. How many modifications would I be able to do? Could there be a table that shows win percentage profit factor and trading window where trades shouldn’t be placed and follows the rules of the pdf How long would it take and would it work on ninjatrader also
I need a professional MQL5 developer to build a high-frequency trading (HFT) Expert Advisor for MT5. Key Requirements & Risk Management Rules: 1. Max Trade Limit: The bot must execute a strict maximum of 1,000 trades. 2. Lot Size Cap: Every trade must be capped at a maximum of 0.50 lots. 3. Execution Speed: Optimized for low-latency, rapid execution. 4. Clean code with proper error handling and clear parameter
I need fully automatic scalping robots for XAUUSD Gold the robot should work on M1 and M5 timeframe and open trades based on the scalping logic using EMA and RSI confirmation it should analyze the market on its own and only take high probability trades
I am looking for an experienced MQL5 / MetaTrader 5 developer to help me add alert notifications to an existing MT5 indicator. What I Have I have an indicator that I am currently using on MetaTrader 5 , but I do not have the source code (.mq5) . I only have the compiled indicator file, or I can provide the indicator file that I currently have. What I Need I want to add alerts when the indicator generates its specific
I need best scalping bot 150 - 300 USD
I have attached the video of the EA I want to reproduce in MQL5. Please study the video carefully and build an EA that follows the same trading behavior shown in it. The EA is for XAUUSD (Gold) and appears to use an automated scalping/grid-style strategy with multiple positions opened around the market price. I want the entry sequence, spacing between positions, lot progression, direction of trades, and
New EA for Moj1367 50 - 100 USD
//@version=6 strategy("Ultimate + 11 Filters Bot [M1 - 0.5 pip TP]", overlay=true, max_boxes_count=500, max_labels_count=500, max_lines_count=500, max_bars_back=5000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, initial_capital=1000, commission_type=strategy.commission.percent, commission_value=0.04) // ═══════════════════════════════════════════════════════════ // 1. تنظیمات ورودی (Inputs)
I need an MT5 EA (MQL5) specifically for XAUUSD, trading price gaps when the market opens/reopens. The EA needs 2 independent strategies: 1. Weekend/Monday Gap: Record the last price before the market closes for the weekend and the first price when XAUUSD reopens at the beginning of the week. Calculate the gap size. When the gap meets the required conditions, the EA trades in the direction of the Gap Fill. Gap Up →
Best performing EA MT5 30 - 1000 USD
I am looking for a reliable MQL4/MQL5 EA that creates orders automatically. If anyone has a good-performing EA available for sale, please share it with verified live trading results or a genuine live track record . I am ready to purchase, but live performance proof is mandatory . Please share the live account results, trading history, and EA details before discussing the purchase
Hi In my current EA, you must edit this robot in an Instagram-based mode to construct robots. My old Robot Pending Order is designed to put merely in order, making it easy to update. I've included a link to the rar file, which is plainly referenced in the video. The strategy behind this work is detailed, as are the Instagram videos that are linked to the chart. As shown in this Instagram video link, we need a robot
I’m looking for an experienced MQL5 / MT5 developer to build an EA that acts as a connector between a user’s MT5 trading account and our own web-based performance tracking platform. The concept is similar to platforms like Myfxbook or ShowMyTrades , where users can connect their trading account and automatically track their trading performance, including trade history, profit/loss, win rate, drawdown, account

Informazioni sul progetto

Budget
30+ USD
Scadenze
a 2 giorno(i)