거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Equity Target Closer - close all trades at a profit or loss level - MetaTrader 5용 expert

Augusto Martin D'anna
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.
조회수:
120
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Equity Target Closer is a simple utility that closes all your trades when the account reaches a profit target or a loss limit. It does not open trades and does not analyse the market: you trade manually or with other EAs, and it takes care of the exit at the level you set. Attach it to one chart.

How it works

  • On every tick and once per second it measures the P/L of the positions it watches.
  • When the P/L reaches the profit target or the loss limit, it closes all those positions at market and (optionally) deletes the pending orders.
  • Optionally it pauses until the next day: any new trade opened after the close is closed again, so the day stays locked.

Inputs

  • What to measure - floating P/L of open positions only, or today's P/L (closed trades of the day + open positions). Deposits and withdrawals are never counted.
  • Units - money (account currency) or % of balance.
  • Close all at this profit - 0 disables it.
  • Close all at this loss - write it as a positive number; 0 disables it.
  • Only this symbol - empty = all symbols.
  • Only this magic number - -1 = all trades, 0 = manual trades only, or the magic of one EA.
  • Also delete pending orders.
  • Pause until tomorrow after closing.
  • Day reset hour - server hour when the trading day starts (used for today's P/L and the pause).

Notes

  • Works on any symbol and timeframe, on netting and hedging accounts.
  • Closing is at market: in fast markets or gaps the final result can be a bit past the level. Tested in the Strategy Tester with random trades: it closed every time at the target or the limit.
  • Typical uses: lock a daily profit, cap the daily loss of a manual session, or close a basket of one EA at a money target.
Simple License - lock your EA to accounts, expiry date, demo-only or server Simple License - lock your EA to accounts, expiry date, demo-only or server

Minimal include file to license your own EAs and indicators: allowed account numbers, expiry date, demo-only trial mode and broker server filter. Example EA included.

Prop Firm Guardian - daily loss, max loss and profit target lock Prop Firm Guardian - daily loss, max loss and profit target lock

Account guardian for prop firm rules: closes all trades and blocks trading before the daily loss or max loss limit is hit, with an optional profit target lock.

Execution Quality Logger - slippage, fill delay and spread of every deal Execution Quality Logger - slippage, fill delay and spread of every deal

Logs the slippage, fill delay and spread of every deal on the account (manual, EAs, SL/TP hits) to a CSV file and shows a live summary. It never trades.

Common Folder Copier - copy positions between MT5 terminals on the same PC Common Folder Copier - copy positions between MT5 terminals on the same PC

Local MT5-to-MT5 trade copier through the Common files folder. One EA in Master or Slave mode: lot multiplier or fixed lot, symbol prefix/suffix, reverse, SL/TP and partial close sync.