Add martingale to existing EA

MQL4 Experts

Termos de Referência

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.


Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(3)
Projetos
7
29%
Arbitragem
1
100% / 0%
Expirado
0
Livre
Publicou: 4 códigos
2
Desenvolvedor 2
Classificação
(365)
Projetos
412
36%
Arbitragem
35
26% / 57%
Expirado
63
15%
Livre
3
Desenvolvedor 3
Classificação
(277)
Projetos
334
55%
Arbitragem
14
36% / 29%
Expirado
1
0%
Livre
4
Desenvolvedor 4
Classificação
(1)
Projetos
1
0%
Arbitragem
3
0% / 100%
Expirado
1
100%
Livre
Pedidos semelhantes
I need a custom MT5 Expert Advisor named “Dark Venus”. Strategy details: - Timeframe: M5 / M15 - Market: Forex (all major pairs) - Strategy type: Trend + Scalping - Indicators: • EMA (Fast & Slow) • RSI filter • ATR for Stop Loss & Take Profit - Trades only during low-spread sessions (London & New York) Trade Rules: - Buy when fast EMA crosses above slow EMA + RSI confirmation - Sell when fast EMA crosses below
//+------------------------------------------------------------------+ //| FXE Trader Smart AI EA (Deriv MT5 Forex) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; // ===== INPUTS ===== input double RiskPercent = 1.0; // % risk per trade input int FastEMA = 50; input int SlowEMA = 200; input int RSI_Period = 14; input int
Acquire existing profitable Expert Advisor with source code for client investment portfolio - Full .mq5 code (clean & commented) - 4+ years backtest (Jan 2022 - Dec 2025, 100% tick data) - ~10% monthly return - Max DD ≤15% - No grid/martingale (strictly enforced) - 1-month forward test required - Send trade history + EA details for review - Demo EA file needed for backtest replication - Open to any currency
i need the multi-chain dex bot with set up and installation i need you to help me set the copy reading wallet on binance or phantom with capital for 100 Euro to 1 Million in one year
Please teach me orderflow 300 - 3000 USD
I am searching a profitable trader that is using orderflow in his analysis. Only serious offers please. Please send me your history of trades. I need proof. Merry Christmas everyone
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a

Informações sobre o projeto

Orçamento
30+ USD
Prazo
para 2 dias