MQL5 EA — Profit-Target Closer (Concise Spec)

MQL5 Experts

Job finished

Execution time 6 days
Feedback from employee
Thanks for the project. Looking forward to the next one!

Specification

Purpose
Automatically close positions when profit targets are hit:

  • Per trade: target by % of balance or fixed money.

  • Equity (account/group): close when equity is ≥ X% or $X above a balance reference.

Inputs

  • UseTradeTarget (bool)

  • TradeTargetPercent (double)

  • TradeTargetMoney (double)

  • UseEquityTarget (bool)

  • EquityTargetPercent (double)

  • EquityTargetMoney (double)

  • EquityScope (enum: Account | GroupBySymbolMagic )

  • BalanceReference (enum: CurrentBalance | StartBalance )

  • OnlyCurrentSymbol (bool)

  • MagicNumber (long)

  • Optional: MinHoldSeconds (int), ConfirmTicks (int), MaxSpreadPips (double), SlippagePoints (int)

Behavior

  • Per-trade close: If floating P/L ≥ TradeTargetMoney or ≥ TradeTargetPercent of balance reference → close that trade.

  • Equity close:

    • Money: Equity − BalanceReference ≥ EquityTargetMoney , or

    • Percent: Equity ≥ BalanceReference * (1 + EquityTargetPercent/100)
      On trigger, close positions in EquityScope (all account or only Symbol+MagicNumber group).

Details

  • BalanceReference : snapshot at OnInit (StartBalance) or live (CurrentBalance).

  • Works on hedging accounts; in netting, manage the single netted position per symbol.

  • Apply stability filters ( ConfirmTicks , MinHoldSeconds ) and spread guard ( MaxSpreadPips ).

  • Log clear messages (which target hit, values, tickets). Optional simple on-chart summary.

Deliverable
One clean, compilable MQL5 EA (no entry logic) implementing the above inputs and closing rules with robust error handling.


Responded

1
Developer 1
Rating
(295)
Projects
367
30%
Arbitration
37
27% / 65%
Overdue
10
3%
Working
Published: 10 codes
2
Developer 2
Rating
(511)
Projects
978
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
3
Developer 3
Rating
(2)
Projects
0
0%
Arbitration
5
0% / 60%
Overdue
0
Free
4
Developer 4
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
5
Developer 5
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Free
6
Developer 6
Rating
(28)
Projects
39
23%
Arbitration
14
0% / 93%
Overdue
4
10%
Free
7
Developer 7
Rating
(188)
Projects
202
47%
Arbitration
4
50% / 25%
Overdue
1
0%
Working
8
Developer 8
Rating
(85)
Projects
175
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
Published: 1 code
Similar orders
Hi I'm looking for this EA or Similar EA with optimizated set file. This bot is an automated trading robot, operating 24/7, and capable of trading all currency pairs. Compatible with all brokers. Features: Analysis of price action charts, trends, and support and resistance levels on any timeframe. The bot integrates stop-loss (SL), stop-loss (TP), and trailing stop-loss (SL) orders. Works on MT5 getshared . c o m
I wish to create 2 different Tradingview strategies to MT5 ea-s! Anyone? One is based on Heiken Ashi...the other based on different combination of my strategy. It is for 1 minute charts
نازدك 30+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
**IMPORTANT: PLEASE DISREGARD THE PREVIOUS SPECIFICATION TITLED "FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS."** I no longer need the complete trading platform outlined in my previous **"FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS"** specification. Originally, I considered building a complete trading platform with educational materials, training systems, user accounts, subscription features
I have indicators on my Trading view which will create zones automatically on H4 Candle confirmation. I am getting an alert also that specific zone is created. I want them to shift in automated trading like once zone is created, limits should be place automatically on basis of that zone with given lot size, number of layers and with TP and SL. I have checked on AI to convert this in auto but they need zone in numbers
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
I need an ready-made MT5 profitable EA for Gold. 5/7% daily I need. Before applying please make sure you have one with proven ROI, Drawdown and Live performace result. I will Pay $500 for it but I need as I want. Must needs to supply Source code if I like it. Before I purchase I will test 7 days on my live account. If It's okay then apply othersie please pass this project. Hope you will respect the time for both of
I need a EA to test many EAS all in one to see the results For back testing I've got the EA I want to see the combined EAS what is the results
Hello, I need a high-quality, reliable, and well-coded Expert Advisor (EA) for MetaTrader 5. The code must be clean, without errors, and optimized for safe trading. The robot needs to trade based on basic technical indicators. Every trade must have a strict Stop Loss and Take Profit for risk management. Please apply only if you are an experienced MT5 developer with a high rating and clean coding history. Best
VPS 80+ USD
--- Hello Developer, I need a FULL AUTO TRADING MT5 EA for XAUUSD and BTCUSD. I use Android phone only + VPS. I will only change Lot Size. IMPORTANT TIME LOGIC: 1. LONDON SESSION (09:00 - 12:00 CAT / GMT+2) - ANALYSIS ONLY: - EA must automatically mark London High and London Low (My SRA) - Mark Fixed Range Volume Profile POC for London Session - DO NOT TRADE during London, only mark levels 2. NEW YORK SESSION (15:00

Project information

Budget
30+ USD
Deadline
to 2 day(s)