Equity Target and Basket Closer
- Utilitaires
-
Nikolai Konovalov
В алгоритмической торговле с 2015 года. За это время разработал десятки частных торговых алгоритмов для валютного, криптовалютного и биржевого рынков. Их устройство не раскрываю, так как работаю под NDA.
Что делаю:
- советники и индикаторы для MetaTrader 4 и 5 (MQL4, MQL5) по вашей стратегии; - Version: 1.0
- Activations: 5
Equity Target and Basket Closer closes a group of positions and pending orders when a profit target or a loss limit is reached. Choose what to watch — the whole account, the chart symbol or selected magic numbers — and set the target in money or percent.
Key features
- Scope: whole account, chart symbol, or a comma-separated list of magic numbers.
- Metrics: floating profit, realized daily profit, equity change, or absolute account equity.
- Targets in deposit currency or percent of the selected starting balance (start of day/period).
- Profit target and loss limit (default 2% / 2% of equity change); 0 disables either one.
- Optional profit trailing: after the target is reached, close on a set money pullback from the peak.
- Closes positions and pending orders in batches with automatic retries.
- Optional blocking: closes new matching positions after the target is hit while the tool is attached.
- Manual, daily or weekly reset at a chosen server time.
- Panel with live progress, two-click manual close, collapse/drag, dark/light theme, English/Russian interface, push notifications.
How it works
Attach one instance to any chart and select the scope and metric. When the measured result reaches the target or the loss limit, the basket is closed and the result is kept on the panel until the next reset. State survives a normal terminal restart. Example: with the absolute equity metric a target of 10,500 means account equity of 10,500, not a profit of 10,500.
Main inputs
InpScope (account), InpMagicList, InpMetric (equity change), InpTargetMode (percent), InpProfitTarget (2.0), InpLossLimit (2.0), InpBase (day start), InpTrailLock (0 = off), InpResetMode (daily), InpResetTime ("00:00"), InpBlockAfter (on), InpCloseEACharts, InpPush, InpInstanceId, language, theme, panel position.
Important notes
- The tool closes trades; it does not open them and does not provide signals.
- Blocking cannot prevent another program from sending orders; it closes them after they appear.
- Keep the terminal connected with Algo Trading enabled while relying on automatic closure. Gaps and slippage can make the final result differ from the target.
