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
127
41%
Arbitrage
19
47% / 53%
En retard
33
26%
Gratuit
Commandes similaires
I Trade on XAU and I need a proven MT5 profitable EA. Must needs proved of backtesting ROI, drawdown data, and Live proven results. I need solid proof of Live account and needs to check for minimum 7 days for myself. For that you can send me ex5 file at this moment no need to send source code. Once everything is verified then you may send me the source code. Must you will have to supply mq5 file to the end
Scalper V max 30 - 150 USD
Title: Scalper V max - EA with Advanced Profit Protection & Loss Defense Project Overview: I require a high-frequency MQL5 (or MQL4) Expert Advisor named "Scalper V max". The bot must execute precision scalping entries on short timeframes (M1 / M5) while strictly enforcing automated profit-locking and loss-defense rules to prevent large drawdowns. 1. Signal & Entry Logic: - Indicator Setup: Combine EMA Crossover
I need an already developed EA with proven ability to grow small accounts for day trading. It can trade any specific instrument like gold, EURUSD or more than one instrument. Any strategy is welcomed, including scalping in lower timeframes A test version is required before concluding the deal or being selected. Only those with ready products apply No fake EAs needed
Hi there. I need someone who can create an trading ea that should place order in points movement if it more then The spread but it must calculate the next price movement points using ai ,atr to be sure with the next points if it greater then the spread , it must read the live spread and compare of the next price can cover up the spread cost message me if you can also test will require only the movement of the next
the final ea must faithfully implement the logic from the provided phython file run cleanly on mt5 and deliver solid backtest result.its shoild be very easy to set up use with clear input parameter proper risk management and no complicated installation steps
PrimeXBT Broker - EA Bot wanted to be built $30 for the job to be completed. I’ve done the code just need this online via an experienced developer. Let’s hope you can make my bot and gain me a better lifestyle
Good afternoon. 30+ USD
Okay im ready to create my goals new beginning life tough but u learn and restart why not now it never too late chance szszybinvdtvvijbcdyvvxsxhuyfxbj b x d h b x d b xhnnk b v c d taking care of yourself for me is a
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
I'm looking for an experienced MQL5 developer to create a Opening Range Breakout EA. The EA should identify the high and low of a configurable trading session and open trades when price breaks out of this range. It should include configurable Stop Loss, Take Profit, fixed lot size, break-even option and trading hours. Full mq5 required
Matosfx 30 USD
Am called martin sselubiri I need a robot for trading forex and stock and I want know how this robot works and how much it costs for me to use it

Informations sur le projet

Budget
45+ USD