Count losses

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
All well. Accurate and fast.
Comentario del Ejecutor
Working with Luca is an easy task, he knows what he want and tests very fast.

Tarea técnica

Hi, I would need a chunk of code that I can paste in my EAs for MT4 (no DLL, no scripts).

The code should output a variable VAR that I will use in my conditions for trading.

VAR should be 0 if X or more trades in the last Y trades were losses, else VAR = 1.
If the total number of trades is less than Y, VAR = 1.
X and Y should be input values to be entered when the EA is loaded.

Example. If I input the values 5 for X and 10 for Y,
VAR = 1 if in the last 10 trades the number of losses were 4 or less;
VAR = 0 if in the last 10 trades the number of losses were 5 or more.

Input: values for X and Y
Output: variable VAR that I can place in the conditions for sending the order

Important: this function must me EA-magicnumber specific (not EA specific). In other words, the count of number of trades and number of losses must be about the specific EA-magicnumber the code is pasted into.

Thank you

Luca


Han respondido

1
Desarrollador 1
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
2
Desarrollador 2
Evaluación
(1130)
Proyectos
1432
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre
3
Desarrollador 3
Evaluación
(61)
Proyectos
120
34%
Arbitraje
17
18% / 41%
Caducado
51
43%
Libre
4
Desarrollador 4
Evaluación
(71)
Proyectos
156
44%
Arbitraje
22
41% / 14%
Caducado
16
10%
Libre
5
Desarrollador 5
Evaluación
(121)
Proyectos
134
66%
Arbitraje
36
25% / 56%
Caducado
22
16%
Libre
6
Desarrollador 6
Evaluación
(2428)
Proyectos
3057
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
7
Desarrollador 7
Evaluación
(439)
Proyectos
545
25%
Arbitraje
21
38% / 38%
Caducado
83
15%
Libre
8
Desarrollador 8
Evaluación
(769)
Proyectos
1033
44%
Arbitraje
50
8% / 50%
Caducado
117
11%
Libre
Solicitudes similares
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
I need someone to build an EA for me based on Trend and Pivot levels from custom Pivot and Trend indicators. I will provide more information to the selected programmer
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details

Información sobre el proyecto

Presupuesto
10 - 50 USD
IVA (22%): 2.2 - 11 USD
Total: 12.2 - 61 USD
Para el ejecutor
9 - 45 USD
Plazo límite de ejecución
de 1 a 7 día(s)