Equity Target Closer
- 유틸리티
-
Augusto Martin D'anna
MQL5 & Pine Script developer | Trader since 2019 | Strategy validation
As a trader, I know a bot is only as good as the logic behind it. I bridge
trading concepts and clean code: I don't just follow instructions, I make
sure your EA behaves exactly the way your strategy intends. - 버전: 1.0
Equity Target Closer closes all positions and pending orders when the profit or loss of the account reaches a level you choose. It does not open trades. Attach it to one chart and it checks the account on every tick and once per second.
What it does
- Profit target: when the P/L reaches the target, it closes everything.
- Loss limit: when the P/L reaches the limit, it closes everything.
- Money or %: levels in account currency or in % of the balance.
- Two ways to measure: floating P/L of the open positions, or today's P/L (closed trades of the day plus open positions; deposits and withdrawals are excluded).
- Filters: all positions, or only one symbol and/or one magic number.
- Pause until tomorrow (optional): after a close it keeps closing any new trade until the next day.
- Status on the chart: current P/L, target and limit.
Inputs
- What to measure (floating P/L or today's P/L)
- Units (money or % of balance)
- Close all at this profit (0 = off)
- Close all at this loss, positive number (0 = off)
- Only this symbol (empty = all)
- Only this magic number (-1 = all)
- Also delete pending orders
- After closing, keep closing new trades until tomorrow
- Day reset hour (server time)
Notes
- Positions are closed at market, so in fast markets the final result can be slightly beyond the level you set.
- Use only one copy per account with the same filters.
