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
(2393)
Projects
3005
65%
Arbitration
76
47% / 14%
Overdue
340
11%
Working
3
Developer 3
Rating
(93)
Projects
124
39%
Arbitration
19
16% / 53%
Overdue
19
15%
Busy
4
Developer 4
Rating
(187)
Projects
191
27%
Arbitration
0
Overdue
3
2%
Free
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
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
9
Developer 9
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
10
Developer 10
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
11
Developer 11
Rating
(1852)
Projects
3453
88%
Arbitration
73
40% / 15%
Overdue
265
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
Need to convert a 700-line MQL4 EA program to MQL5 for listing on the MT5 marketplace. The goal is to ensure compatibility and functionality within the MT5 trading platform environment
A robot 30 - 60 USD
I need a developer that can make me mt5 robot for pc and i want to also add copyright option in my robot and a cool picture of robot when i attach my ea file then the chart changes to image which i attached to my robot and i need that my robot can works on any timeframe and currencies pair , indices , energies , metals , crypto etc and also do the chart analysis using ichimoku and rsi and also manage the small amount
I would like to ask the following: I work on a CTrader account (provided by a Broker) but on the Tradingview Platform. I would like to place an order with you if you make the following configuration correctly and at a good price: It is only about SL and TP. They must work like this: 1. When launching any order, SL should be set at 60p pips and TP at 4000 pips distance. 2. Whenever the launched position moves up or
Hello, I need an EA for both MQL4 and MQL5 that complies with Prop Firm's rules of a maximum daily drawdown of 4%. This means it should close all trades after a 4% loss and not trade for the rest of the day. Additionally, it should not use martingale, grid trading, or trade stacking (opening three or more trades at the same time in the same direction). The EA should also be able to achieve a monthly return of 5-10%
I want someone to employ and will create a HFT robot for my company and it must work on MQL5 and it must open and close orders automatically must work on Synthetic Indices and programmer needs to understand how Synthetic indices move and the algo of them, robot must have high win rate for my Clients, must be able to grow small accounts. Programmer can possibly land a job as a Developer if the robot created works
HI, I'm looking for an experienced person who can add buy/sell indications/Alerts on existing Pinescript code along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should execute trade instantly as based on the alerts/indications on tradingview script
I need an EA created by combining the PZ RSI, PZ MACD,and PZ Stochastic into one EA with the grid function The idea of the trading system is as follows: market entries are performed when MACD, RSI and Stochastic K are in the same current trend direction. The EA is created by combining 3 existing PZ EA's
I would like to find a developer who can develop an indicator that works with MT5 for Deriv synthetic indices (Deriv Broker) the developer should be an expert with Deriv, and has already developed systems for deriv broker The indicator should works with all assets with all the synthetic indices Volatility, Step, Jump, Boom , Crash, etc - Multiple RSI dashboard monitor to monitor multiple indices which shows a
Hello, I need a max daily loss script that works for mql5 and mql4. I want to integrate this into my EA and have both versions. I need input for max drawdown %. And the rules will follow prop firm rules. If todays loss (closed + current running trades) reaches 5%. Close all trades and pause until the next trading day. ***My trading account is automatically closed every time I open a trade after crossing the daily
Hello, I need smart and professional programmer that have minimum 300 projects finish for my expert advisor (mq4). I need this project finish quickly, and the function can running well like I need. My EA basicly using Consecutives Signals Candle, MA20, and ATR with some others parameters. If you programmer like I need, so can apply, IF NOT DONT APPLY! I will send the document completely when you apply. Thank you

Project information

Budget
30 - 150 USD
For the developer
27 - 135 USD
Deadline
from 1 to 10 day(s)