Add martingale to existing EA

MQL4 Asesores Expertos

Tarea técnica

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.


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(3)
Proyectos
7
29%
Arbitraje
1
100% / 0%
Caducado
0
Libre
Ha publicado: 4 ejemplos
2
Desarrollador 2
Evaluación
(365)
Proyectos
412
36%
Arbitraje
35
26% / 57%
Caducado
63
15%
Libre
3
Desarrollador 3
Evaluación
(277)
Proyectos
334
55%
Arbitraje
14
36% / 29%
Caducado
1
0%
Libre
4
Desarrollador 4
Evaluación
(1)
Proyectos
1
0%
Arbitraje
3
0% / 100%
Caducado
1
100%
Libre
Solicitudes similares
Hi, I’m currently looking to purchase a profitable Expert Advisor (EA) for XAUUSD on MT4 and different Symbols . If you have an EA that has consistently been profitable, I’d be interested in purchasing the source code. I would like to backtest the strategy and evaluate it before making any purchases. What I’m ideally looking for: Designed specifically for XAUUSD (MT4) Consistent profitability with solid risk
Hello, good day to you Developers, I am looking for someone that can deliver on a project with the following requirements: The job I am about to give out will involve "Tradingview" and "Metatrader 5" Tradingview: for analysis, as the Strategy uses one second charts/candles, Metatrader 5: for executing and managing the trades. For this EA to work well for the project's aims, SPEED of execution is of upmost
Bhalzdeep 30+ USD
Anything is possible no job too big no job too small. Equal opportunity entity if we don't have it then we can get it. Completely satisfied customers is our top priority
1. Objective Create an MT5 automation script (or set of scripts) that fully automates my strategy optimization workflow, including: • Batch optimization runs • Automatic filtering of results • Automatic forward testing • Exporting and organizing results into structured files/folders The goal is to reduce manual work and allow one‑click execution of the entire pipeline. 2. Platform & Environment • MetaTrader 5 •
I'd like to optimize in Strategy Tester by Custom Optimization of strategies ran by Win Rate %. I can't find a way to view each scenario's win rate without running them individually and looking at Backtest
Would it be possible to connect Futures prop firm with Rithmic or Tradeovate platform to Ninjatrader automated trading ? If anyone can do this for me I will be happy to get started with the person right away
hello great developer I want to modify my NT8 indicator to change its arrow printing logic so that arrows appear on the first candled dot, not after the series. no repaint and no back painting. all in real time. This will help me get timely signals. Scope of work - Modify NT8 indicator logic to print arrows on the first candled dot. - Ensure arrow print matches 90%+ accuracy compared to the current functionality. -
Saya ingin dibuatkan Expert Advisor untuk MetaTrader 5 berbasis strategi EMA 50/200 + Breakout 20 candle dengan sistem risk percentage otomatis. EA harus memiliki fitur ATR stop loss, trailing stop, break even, max spread filter, dan daily loss limit. Dilarang menggunakan martingale, grid, atau averaging. Target RR minimal 1:2 dan drawdown di bawah 20%
I am building a professional-grade survival EA for USDJPY designed to: Repeatedly pass FTMO-style challenges Sustain long-term funded accounts Deploy safely across multiple prop accounts This is not a retail scalper. This is a controlled EMA pullback engine with strict risk governance and anti-correlation logic . All parameters must be configurable. Defaults must match exactly as listed. Core Strategy – EMA Pullback
I’m after someone to make me a forex ex for meta trader 5 it will be trading GBPUSD only but having to align with EURUSD and rules and entry’s based off weekly and daily vwap with 20 EMA

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
a 2 día(s)