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

Job finished

Execution time 3 days
Feedback from employee
Nice working with him. Communicative and open-minded. Thank you!
Feedback from customer
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.

Specification

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.



Responded

1
Developer 1
Rating
(23)
Projects
45
20%
Arbitration
24
29% / 42%
Overdue
12
27%
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
(566)
Projects
639
41%
Arbitration
21
57% / 29%
Overdue
45
7%
Loaded
4
Developer 4
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
5
Developer 5
Rating
(87)
Projects
114
26%
Arbitration
7
29% / 57%
Overdue
5
4%
Free
Similar orders
1.Green Line (20 Moving Average): This line shows the average price over the last 20 periods. 2.Red Line (50 Moving Average): This line shows the average price over the last 50 periods. Buy Signal: - When the green line crosses above the red line, it's a signal to buy. - Place the stop loss below the red line (50 moving average). - The target is when the green line crosses below the red line again. Sell Signal: -
I have an EA and the code for the same , I want a particular option to be added to this EA. The option to be added is to do the below logic. Inputs to be added. Calculation Type 1) Percentage of Profit on Number of trades. Input Percentage 1) Percentage of Profit in % 2) Percentage of Loss in % Logic Check. 1) Count number of Buy / Sell open orders separately. 2) Check for Each buy / Sell positions , how many are in
Please make a new pending order software and add it to the each of the Ea's that I would send the source codes. If any of the settings of the usual pattern of the Ea's have there in the EA's are not clear to you, then I will explain that part
I am looking for an expert NinjaTrader developer to help me backtest a custom trading strategy I've developed. The ideal candidate will have extensive experience in trading, particularly with backtesting and strategy evaluation on the NinjaTrader platform. Your expertise will be crucial to the success of this project. Key Requirements: Custom Strategy Backtesting: Develop and backtest a unique trading strategy based
Just have a look make it better enjoy and have fun 😊 this is the first time I am trying this, I got ripped off 3 times before. I hope this time works with all your help. Thank you kindly
I have an MT5 EA which I like to modify to run on custom symbol chart. I can backtest the EA on the custom symbol chart, but I cannot run on the chart to trade. When I attach the EA to the custom symbol chart, it gives me error: "2024.06.07 21:27:59.270 Trades '1520250871': failed request buy 0.1 BTCUSD_ATR10_M1 at 69260.30000 [Invalid request]" Please help me to modify the EA to run on custom symbol chart. EA is
I will provide pine script and need to convert it as a mql4 EA. The system is based on swing highs and lows. If you interested please knock me, Thank you
I want an Indicator that : Draws vertical lines at the opening of candles on a time frames selected.( I want to be able change the candle timeframe the line will be drawn. Eg. I can slelect 1H, 4H etc from the settings, and the vertical line will be drawn at the opening). Draw a horizontal line at the opening of the candles in the selected timeframe. Calculate the average range of the candles on a selected timeframe
Hello, I need to optimize my indicator so that it works in several time frames. and then convert it to mq5 The task will be carried out remotely by ANYDESK
I would need an indicator which makes averages on chart (like the one existing already on mt4 where you can choose between EMA, SMA, ...) but what i need is on chart a button plus and minus which i could press in order to change the average visually on chart( so i dont have to come back in the settings of the indicator each time to introduce a new average number) And average in mt4 is limited basically at 4000 but

Project information

Budget
30+ USD
VAT (21%): 6.3 USD
Total: 36.3 USD
For the developer
27 USD