Trade Discipline Guard

Trade Discipline Guard helps you keep the trading rules you set for yourself. It does not open trades and does not decide when to buy or sell. It watches the whole account, including manual trades and other Expert Advisors, and closes new positions that break your limits.
What it checks
Daily loss limit: an amount in your account currency, a percentage of the balance at the start of the trading day, or both (the stricter one is used). When the limit is reached, new positions are closed and pending orders placed that day are deleted until the next trading day.
Lot cap per symbol, for example XAUUSD=0.5;default=1.0. A new position that makes the total volume on a symbol exceed its cap is closed.
Maximum number of open positions on the account.
How to use
Attach it to any one chart. One copy watches the whole account. Enable Algo Trading so that it can close positions. Start with "Monitor only" = true for a few days: it will only log and alert, so you can check that the limits fit your trading. Then set "Monitor only" = false to enforce the limits.
Notes
Every event is written to a CSV file in the MQL5\Files folder, so you can review when and why a position was closed. Optional pop-up alerts and push notifications to MetaTrader mobile. A status panel on the chart shows today's P/L, the limit and the number of positions closed today. The trading day starts at the server hour you choose.
Closing a position at market can cause slippage and costs. The guard limits new exposure. It cannot prevent losses on positions that are already open unless "Close all open positions when the limit is reached" is enabled.
In the Strategy Tester only, the program opens small sample trades so that you can see the guard working. It never opens trades on a demo or live account.
필터:
리뷰 없음
리뷰 답변