I need to add a limit for the number of trades a EA will open in correlation with the current free margin

Job finished

Execution time 13 hours
Feedback from customer
Perfect job by Mikhail. I would recommend him to everyone. He also added extra to what I asked him to do within the short time promised. Thank you so very much!!
Feedback from employee
Thanks a lot for the order, Ylidor! :)

Specification

You will need to add to available source code 3 parameters: "MaxOrder"; "FreeMargin<=%" and "FreeMargin>=%". When the FreeMargin would be=x the MaxOrder =x. For example, when FreeMargin<=% =1000 MaxOrder=2; when FreeMargin>=% =2000 MaxOrder=default of EA).

I believe there is a shorter way to write this code but in essence this is what I need, i.e., when the free margin (%) goes below a certain value I want to limit the number of trades that the EA can open and when the free margin recovers, I want the EA to reset the number of trades it can open to the default of the EA.


Files:

MQ4
SkyUp_EA.mq4
47.6 Kb

Responded

1
Developer 1
Rating
(593)
Projects
925
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(56)
Projects
65
29%
Arbitration
5
0% / 60%
Overdue
1
2%
Free
4
Developer 4
Rating
(124)
Projects
158
42%
Arbitration
20
60% / 20%
Overdue
8
5%
Free
Similar orders
Create an EA based on the below trading algorithm. Algorithm Details: • Currency Pair: XAUUSD (Gold) • Trigger Time: New York session start time • Sell Condition: Trigger a sell order if the price is above the price at the end of the Tokyo session on the same day. • Buy Condition: Trigger a buy order if the price is below the price at the end of the Tokyo session on the same day. Settings to Include: • Lot Size • TP
Hi guys I coded a pinescript strategy which I would like to translate to mql5. First of all I guess we need to create an indicator before we can create an EA out of this. The indicator should show the following drawings: Pivot highs and lows Improved pivot highs and lows with 4 indicators (RSI, MACD, Stoch, ADX) Imbalances / Fair value gaps Asia, London and NY Session Inputs for 3 timeframes: HTF (H4), MTF (H1), LTF
I'm looking to automate a strategy using MT4 Renko charts with three indicators: 1. Simple moving average (MA) 2. RSB bands (custom indicator) 3. PV2 (custom indicator) To open a buy, we need the following at the close of an up brick: 1. MA has to have crossed over or come within "x" pips (variable input) of the bottom RSB band before turning up. 2. PV white line is above the red line. Closing the trade is by any of
I am looking for an EA that give above a 50% winrate using a 1:1.5 RR preferably trading in london to new york session, nothing complicated just something profitable. I would love to see a sample of the project before I purchase well thank you
Hello I need a MT4 EA which open trade according to the provided indicator 1 Master/Main indicator 1 Filter Find attached for details EA settings will send via chat or email because unable to send PDF
I want to make something automatic which EMA will automatically trade in my account. For this I want to make a simple robot I want to get this made automatically on a simple EMA
**Project Title:** Development of a Complex High-Performance EA for Step Index **Project Overview:** I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively. **Trading Strategy Details:** Indicators: - 50-period EMA - 200-period EMA - RSI with 14 periods - MACD
Dear All, I need to design and implement an EA with the involvement of a possible AI. I would like the entries to be realized with all MACD, RSI, Stoch parameters but also Ai. I mainly want the system to immediately close the transaction itself at the time of trend reversal even before reaching the TP position. It should work for intervals M15, H1, H4 and maybe long-term on D1 Platform for MT5 and exclusive only
Hello, I want a Telegram trade copier converted to metatrader 5. I have 2 samples with. This are samples of what I needed, inbox to let discuss if you can get this done with ease. Thanks
Below follows specifications and the pictures of how the indicator should be. I believe that during the development it is necessary some adjustments that I may have forgotten while writing the descriptions, please take this into account. If necessary I have the pdf file that may be easier to understand. Doubts I am at your disposal

Project information

Budget
30 - 40 USD
For the developer
27 - 36 USD
Deadline
from 1 to 3 day(s)