Auto-calculate pending order lot size, free margin check

MQL4 Experts

Job finished

Execution time 6 days

Specification

I have two hedge EA that show a low drawdown in Strategy Tester but on live accounts the drawdown can easily be 3 times greater. Is there a solution to this? I am thinking the widening spread in the live accounts may be the cause. So what I would like is to have the lot sizes of all pending hedge trades auto-calculated and dynamically change while in the pending state, if necessary, to be ready to open based on the current spread value.

The external parameter will be:  extern bool  AdjustLotSizetoSpread = true;

I would also like another parameter added to the two EAs:  extern bool  CheckForFreeMargin = false;

If true, the EAs will only open additional hedge trades if the account free margin permits.

Finally, in one of the EAs, the HedgeProfit is calculated in dollars. If set to $3, all of the hedge trades will try to close at $3. This reduces the profits for multiple hedge trades with very large lot sizes. I would like the HedgeProfit to be calculated in pips so that if set to 30 pips, two hedge trades with smaller lot sizes can still close around $3, but four or five hedge trades with larger lot sizes will close around 20, 30 or more dollars.

Responded

1
Developer 1
Rating
(2422)
Projects
3042
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Working
2
Developer 2
Rating
(2)
Projects
2
0%
Arbitration
13
8% / 92%
Overdue
1
50%
Free
3
Developer 3
Rating
(88)
Projects
138
25%
Arbitration
33
33% / 45%
Overdue
59
43%
Working
4
Developer 4
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
5
Developer 5
Rating
(121)
Projects
134
66%
Arbitration
36
25% / 56%
Overdue
22
16%
Free
Similar orders
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
to 3 day(s)