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
(2424)
Projects
3050
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Working
3
Developer 3
Rating
(108)
Projects
138
43%
Arbitration
19
16% / 53%
Overdue
20
14%
Loaded
4
Developer 4
Rating
(197)
Projects
201
27%
Arbitration
0
Overdue
3
1%
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
(1854)
Projects
3457
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
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
Hello great developer i need a great developer that can help me to do the modification on Ninjatrader https://forum.ninjatrader.com/forum/ninjatrader-7/general-development/44785-real-time-data-feed-from-excel-sheet Need a simple tool to connect rt data from excel to Ninjatrader- Already a free tool available which extracts data from trading software called- Nest Trader - to Ninjatrader- Its possible to modify it to
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
Mt4 EA Copy trades from octafx copytrading master trader trades 1-i need a bot which will copy trades from Octafx Copytrading Master Trader trades to Metatrader 4 account. 2-bot will copy exactly same trade with same lotsize 3-Bot should open exactly same time when master open and close exactly same time when master close 4-provide complete source code Guide Completely how to Run*
"I am looking to automate my Delta Divergence trading strategy for NinjaTrader 8. The strategy is thoroughly detailed in the accompanying script, and I need it to be implemented effectively in the platform."
I’m looking for a developer that has understanding of scalping and HFT strategies that can make an algo that works for all brokers and prop firm LIVE accounts (like STP, ECN, DMA, Money Makers, NDD, Fast Server etc.,). I want someone that has understanding and insight in different scalping and HFT strategies, preferably something like momentum based strategies. The EA has to work on all Brokers and Prop firms like
I'm looking for professional developer for my project.I'm having indicators source code , i want to convert it into MT4 EA .it is having some basic inputs such as lot size,TP,SL,B.E,trailing,News filter features along with some special inputs.detailed strategy will be discussed in chat room.i prefer Indian developers who speaks hindi
The strategy uses a grid trading system where trades are placed at set intervals (grid levels) and are managed using Bollinger Bands for entry and exit signals. A fixed lot size, trades are managed to comply with maximum spread conditions and specific trading hours, with the possibility of closing trades based on Bollinger Bands signals. The use of Bollinger Bands indicates a focus on volatility-based trading, while
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale

Project information

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