Modify existing EA to add safety feature

Trabajo finalizado

Plazo de ejecución 3 minutos
Comentario del Ejecutor
Pleasure working with you! Thank you!
Comentario del Cliente
Freelancer is a great guy. He was able to complete the project as described. If there are more stars in the rating, I would give him 10 for perfect programming he did in my EA.

Tarea técnica

The project for the existing EA and is as follows:

Add safety feature to avoid over trade from different 8 SIGNAL NAME.

 example:
this EA enters a trades with BUY and pending predetermine SELL order. when, SELL pending price is hit, EA opens BUY pending order and so on and so forth like a zigzag.

the safety feature I want to be added to this EA is to limit of opening pending orders.  I'm open to suggestion to make it easy, but current functions should not be affected with the modification.

Safety Feature is as follows:

Check money balance before EA opens another pending order. if balance is below required to open pending order, calculate difference between all BUYs and SELLs order.

example:
Order TypeLot SizeTrade Comment
BUY0.01SIGNAL NAME_BUY
SELL0.02SIGNAL NAME_SELL_Recover-Sell
BUY0.04SIGNAL NAME_BUY_Recover-Buy
SELL0.08SIGNAL NAME_SELL_Recover-Sell
BUY0.16SIGNAL NAME_BUY_Recover-Buy
SELL0.32 terminal message = ERR_NOT_ENOUGH_MONEY

Total BUY   -   Total SELL
0.01                0.02
0.04                0.08
0.16
__________________

0.21           -    0.10    =   0.11  + LOTSTEP = SafetyLotSize

if terminal still returns ERR_NOT_ENOUGH_MONEY

subtract SafetyLotSize by LOTSTEP => (0.11 + LOTSTEP) - LOTSTEP = SafetyLotSize

do this until terminal accepts lot size, then Lot size = SafetyLotSize

change trade comment = Signal Name_SafetyMoney. then, no pending order will be open with this SIGNAL NAME until all open trade of SIGNAL NAME are close.

when SIGNAL NAME profit = $ 0.00, close all trade for this SIGNAL NAME.


PLEASE test EA in tester before sending for demonstration.  Thank you.



Han respondido

1
Desarrollador 1
Evaluación
(45)
Proyectos
59
42%
Arbitraje
5
0% / 60%
Caducado
12
20%
Libre
2
Desarrollador 2
Evaluación
(2671)
Proyectos
3404
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(145)
Proyectos
169
50%
Arbitraje
22
14% / 55%
Caducado
22
13%
Libre
4
Desarrollador 4
Evaluación
(258)
Proyectos
265
29%
Arbitraje
0
Caducado
3
1%
Trabaja
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
(88)
Proyectos
143
39%
Arbitraje
21
19% / 48%
Caducado
30
21%
Libre
6
Desarrollador 6
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
Ha publicado: 324 artículos, 1 ejemplo
7
Desarrollador 7
Evaluación
(365)
Proyectos
412
36%
Arbitraje
35
26% / 57%
Caducado
63
15%
Libre
8
Desarrollador 8
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
Ha publicado: 8 ejemplos
9
Desarrollador 9
Evaluación
(361)
Proyectos
644
26%
Arbitraje
92
72% / 14%
Caducado
12
2%
Trabaja
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(1931)
Proyectos
3552
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
12
Desarrollador 12
Evaluación
(1)
Proyectos
2
0%
Arbitraje
0
Caducado
1
50%
Libre
13
Desarrollador 13
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
PLATFORM: MetaTrader 5 (MQL5) ASSET: XAUUSD (Gold) ACCOUNT TYPE: Live Raw Spread Account (Floating Spread + Commission) 500x leverage The broker commission is exactly 3 usd per standart lot per side6.00 round turn). The EA's internal trade tracking, net profit/loss metrics, and trailing drawdown calculations must completely factor in these commission charges alongside the raw asset spread. I need a clean, optimized
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 . The EA performs consistently and profitably on demo accounts , but when I run it on an IC Markets Raw and standard live account , it begins generating losses under what appear to be the same trading conditions. if needed i can provide Full EA source code (.mq4 and/or .mq5) and Set file. I need an experienced MQL4/MQL5 developer to thoroughly
I have a live MT5 account with Myfxbook verified track record (88% return, 17% DD, 100K+ trades). Trade copier is ready. I need a sales system to attract copy traders. You decide the approach — landing page, email, or any strategy you think works best
I am looking for an experienced developer to create a custom MT4 Expert Advisor (EA) / trading robot. Requirements: Fully automated trading system for MetaTrader 4 Clear entry and exit strategy (can be based on indicators, price action, or a custom logic) Risk management features (lot size control, stop loss, take profit, trailing stop) Ability to run on multiple currency pairs Option to adjust settings (risk %
I am a forex trader I want to help to all the other traders with translating and online cources so which is interested buy this package and join us thank you
Kenyan Editor 30+ USD
1.a specific robot to earn for a quick and reasonable trade all over. The Idear of being specific makes me perfect, I want this to be clear that make me a high luxurious person will describe me and I will promise to advertise the market both internally and externally
i need the EA same working on trading view Hikin Ashi chart with same specifications and rules on mt5 Rules as per in script is available when applied on chart need to check on Hikin Ashi chart 1. Buy trade when purple candle closed above last any black candle high on Hikin Ashi & avoid long abnormal candle & if market makes more than 20-30 candles without changing the color 2. Buy when purple candle close above its
I have my own strategy in 1min. I want it convert to a bot. Please reach me only coding experts. I dont want bit makers from Ai. Demo version should be provided for confirmation
Siraj Durrani 30 - 50 USD
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
Xauusd to gold 35+ USD
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and

Información sobre el proyecto

Presupuesto
30 - 150 USD
Plazo límite de ejecución
de 1 a 10 día(s)