MT4 robot/script that closes equal buy and sell lots of active trades while realizing a set loss.

MQL4 Experts

Spécifications

Hello 


Set up

I have an account that has a floating loss(eg -1000)

with 1 buy trade and several sell trades (or 1 sell trade and several buy trades)  with 

the t otal buy lots being the same or similar to sell lots.

(note the above are not conditions ,the EA has to check . Is information of when I am likely to use it so the bottom make more sense)


What the EA would do when it loads

 I want to specify a percentage of floating loss to be closed. 

eg : if floating profit is -1000  and I specify  30.   EA will close the necessary trades that would close trades with a loss of -300 and leave floating profit of -700 .

Conditions

1) The robot would have to close FIRST the trade that opened the FURTHEST away (does not matter if profit or loss) from current market price.

and proceed in that order when closing trades.

2) The same number of buy lots as well as sell lots have to close during this. 

Hence every time some lots buy close ,the equivalent sell lots have to close 


Notes:

-Some trades would close with partial lots. 

-Some trades would close with profit/some with loss.


So the EA will have to calculate the correct lot sizes for both directions to achieve the 30% reduction(variable) in floating loss while closing the same number of lots for each.


Regards

Répondu

1
Développeur 1
Évaluation
(9)
Projets
19
16%
Arbitrage
3
67% / 0%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(68)
Projets
126
40%
Arbitrage
18
44% / 56%
En retard
33
26%
Travail
Commandes similaires
Simple EA 100+ USD
I need write EA which load csv file which content prices where is expected support/resistance level. When market price overstep price from csv file, EA open trade some pips above/under csv file price. Example: at symbol EURUSD market price overstep 1.16500 where is expected resistance. EA open trade pending order sellstop 1.1647 (3 pips will be external input). Trade will be closed based on smart trailling stoploss
Hello, i need expert developer that have been develop so many profitable AI bots that work for mt5 and ctrader autonomously if you know you can easily execute this requirement bid for it. NOTE:- YOU MUST COME WITH SAMPLE FOR THE 2 TRADING PLATFORM. While i take a look at your profile and reach out to you thanks
Hi, GOLD EA is an automated trading robot designed for MetaTrader 5, focused mainly on GOLD/XAUUSD trading. The EA uses a combination of multi-timeframe trend confirmation, EMA pullback logic, ADX strength filtering, support/resistance rejection, momentum breakout, and reversal capture modules to identify potential Buy and Sell opportunities. Strategy and Trading Logic: The EA is designed to detect market direction
Gold robot 3000+ USD
I really liked this training platform. I want to start a good business with this funding amount."I like crypto trading. Does it provide a demo account that is good for learning?"
I am looking for an MQL5 or MQL4 developer to build an Expert Advisor What I need: The Expert Advisor should be able to open up to 10 trades per day (24-hour market) Trades should not open all at once — only based on proper signals/conditions Each trade must include: Stop Loss Take Profit The Expert Advisor must use 1:2 risk to reward The strategy should aim for around 50% win rate (about 5 wins out of 10 trades)
Dear developers I want to create an expert advisor for my strategy. The entry signals quite simple using OHLC, Bollinger, SuperTrend. (Possibly: ICT/FVG) The money and risk management is more difficult using martingale and trailing stops. I also need help to design this before any development
I need a ready made profitable system with live account trade or demo that can be back-tested for 2 years with good profits. Pls consider drawdown to be low , source code will be provided at the end. Very important sending 10 days demo before negociation , thank you
Gold robot 3000+ USD
Hello, I am looking for someone who can help me to build a MT4/MT5 forex EA, by analyzing the trading history. You are responsible to find out trading logic behind the EA and Build a new EA that accurately replicates the existing strategy. I need someone who has proven previous experience to build a new EA by reverse engineering. Thanks
I am looking for an experienced MT4/MT5 developer to analyze my trading history and replicate the strategy in a new Expert Advisor (EA). The developer must have proven experience in reverse engineering strategies, analyzing trading data, and developing EAs across various trading methodologies. A deep understanding of XAUUDS and BTCUSD behavior, as well as chart analysis, is essential. Please note that we do not have

Informations sur le projet

Budget
45+ USD