Include functionality in existing EA to stop trading for a certain number of hours after n consecutive trades resulting in loss

Trabajo finalizado

Plazo de ejecución 3 días
Comentario del Ejecutor
Nice working with him. Communicative and open-minded. Thank you!
Comentario del Cliente
Excellent job. Quick and reactive. He even included some additional features that makes the comprehension of the code much easier. Will keep his contact for future developments.

Tarea técnica

I am looking forward to get a code / functionality introduced into this simple EA, that I can export and use into other personal developments. Open code: No author rights to be applied.

The new functionality must check in the trade history (normally around last 2 months in time) and:

- if there are “consecutive_losses” (defined as a variable type “input int”) consecutive trades resulting in losses (profit < 0)

- then it must stop the EA from trading for  “hours_stoptrading” (defined as a variable type “input int”) number of hours

- many EAs will be used in the same trading account, therefore the code must filter by Magic number and Symbol in order not to mix trades ordered by other EAs

- try to avoid the function “sleep”

- ideally new functionality will consume few resources and be inactive most of the time, except the moment of a new position is closed, in order to check if position resulted in benefit / loss and if required, apply the temporal stop trading.



Han respondido

1
Desarrollador 1
Evaluación
(23)
Proyectos
45
20%
Arbitraje
25
28% / 48%
Caducado
12
27%
Libre
2
Desarrollador 2
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
4
Desarrollador 4
Evaluación
(361)
Proyectos
644
26%
Arbitraje
92
72% / 14%
Caducado
12
2%
Trabaja
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(87)
Proyectos
114
26%
Arbitraje
7
29% / 57%
Caducado
5
4%
Libre
Solicitudes similares
MT5 Smart Money Trading EA | SMC • ICT • S&R • Scalping I develop and customize MetaTrader 5 (MT5) Expert Advisors (EAs) based on structured price-action and Smart Money trading strategies. My EA is designed around a multi-concept trading approach combining Smart Money Concepts (SMC), ICT principles, Support & Resistance (S&R), market structure, and selective scalping setups . The goal is to automate a disciplined
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total
Poverty 30+ USD
Develop the EA according to my provided trading strategy and rules. The EA must open and close trades automatically according to the specified conditions. Include configurable Stop Loss, Take Profit, lot size and risk-management settings. Include an option for fixed lot size or percentage-based risk. Include Magic Number and trade-comment settings. The EA must work correctly on the requested MT4/MT5 platform and
I need an Expert Advisor (EA) developed for MetaTrader 5 (MT5) tailored for trading on Exness accounts. Account & Server Details: Trading Platform: MetaTrader 5 (MT5) Broker: Exness Execution Type: Market / Pending Orders Account Type: [Specify: Standard / Pro / Raw Spread / Zero] Target Instruments: [Specify pairs, e.g., XAUUSD, EURUSD, BTCUSD] Strategy Requirements: Entry Rules: [Insert your buy/sell entry

Información sobre el proyecto

Presupuesto
30+ USD