Modify existing EA to add safety feature

Job finished

Execution time 3 minutes
Feedback from employee
Pleasure working with you! Thank you!
Feedback from customer
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.

Specification

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.



Responded

1
Developer 1
Rating
(45)
Projects
59
42%
Arbitration
5
0% / 60%
Overdue
12
20%
Free
2
Developer 2
Rating
(2630)
Projects
3345
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
3
Developer 3
Rating
(143)
Projects
167
49%
Arbitration
22
14% / 55%
Overdue
22
13%
Free
4
Developer 4
Rating
(249)
Projects
255
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
5
Developer 5
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
6
Developer 6
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
Published: 283 articles, 1 code
7
Developer 7
Rating
(365)
Projects
412
36%
Arbitration
35
26% / 57%
Overdue
63
15%
Free
8
Developer 8
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes
9
Developer 9
Rating
(361)
Projects
643
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
10
Developer 10
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
11
Developer 11
Rating
(1928)
Projects
3548
88%
Arbitration
73
40% / 15%
Overdue
268
8%
Free
12
Developer 12
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
13
Developer 13
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
I am looking for an experienced MQL5 developer to build a very fast AI-assisted scalping Expert Advisor, with special focus on XAUUSD (Gold). Core Strategy Designed mainly for XAUUSD, but should also work on all forex pairs and metals Opens multiple trades in the same direction Closes trades immediately once they are in profit (very small, fast profits) Optimized for high-speed scalping No martingale and no risky
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
I want to add and remove few things in ea need some modification needed in ea developer should have some trading knowledge also to understand the requirement better and have good experience in coding
Algo Trading Rebot/ EA 30 - 100 USD
I would like someone Who can design an EA for me. I will give him the Required Details and Trading Plan How it should Work. its going to be a Simple EA System Around Moving Averages Crossover. I will Provide Him the Moving Averages Settings and How It should execute trades and Exit them
The EA should focus on high-speed scalping on the 1-minute timeframe or every tick execution and must perform incredibly well on demo accounts with consistent profitability. EA Requirements: Platform: MetaTrader 5 (MT5) Trading style: Scalping (1-minute or tick-based execution) Dynamic lot size increase system (auto lot multiplier or equity-based lot adjustment) Should work efficiently even on minimum equity (as low
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
Task Title Implement Martingale Lot Scaling Sync Between Master and Slave MT4 Trade Copier Background I am using a local master–slave trade copier setup with: 1 Master MT4 4 Slave MT4 terminals Trades are currently copied correctly (entry, direction, symbol, SL/TP). Lot size handling currently copies either: the exact master lot, or a fixed base lot defined on the slave (e.g., always 0.01 or 1.0). Problem When the
Julismorfx-Bot 150 - 300 USD
Hello, I am looking for an MT5 Expert Advisor based on a reversal trading strategy . The EA must follow strict risk management and be suitable for prop firm rules . Key requirements: • Platform: MT5 • Pairs: USDJPY, GBPUSD, XAUUSD (multi-pair) • Strategy: Reversal only (H4 context + M15 entry) • Fixed risk per trade (default 0.5%, max 1%) • One trade per pair, max 2 trades total • Every trade must have Stop Loss and

Project information

Budget
30 - 150 USD
Deadline
from 1 to 10 day(s)