欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

股权守护者EA (Equity Guardian EA)

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:PaulDV
发布日期:First Post: Jun 2, 2020 5:08pm | Edited Sep 29, 2025 11:56pm
Equity Guardian EA

This little EA is designed to protect your account from unexpected drawdowns and/or lock in profits.

Note:

  1. It does NOT place orders.
  2. It does NOT amend existing orders.
  3. It can be used alongside any other EA or manual strategy that you care to use.


Features

  1. Monitors EQUITY, not simply floating profit/loss.
  2. Can monitor all trades, trades submitted by any EA or trades submitted by a specific EA.
  3. Closes all monitored trades if equity falls below a specified loss limit (expressed in either an amount or a percentage of the opening balance)
  4. Closes all monitored trades if equity reaches a specified profit target.
  5. Can disable auto trading when close is triggered.


Example Information Panel

Attached Image


Parameters
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 71 KB


The parameters should be self-explanatory, but for clarification:

Currency pairs

  1. All pairs
  2. Current pair only

Magic Number to Monitor for

  1. 0 = None : The EA will monitor ALL trades regardless of their magic number.
  2. -1 = All EA trades : The EA will monitor and control only trades submitted by an EA, i.e. trades opened manually will not be affected or included in the profit/loss calculations.
  3. >0 = Only trades for the requested magic number will be monitored.

Date of opening balance
The date and time that EA is to calculate the initial balance from.

Refresh interval
How often the EA checks the equity (in seconds).

Close values

  1. Percentage of balance - the profit and loss figures are a percentage of the initial balance.
  2. Amount of money - the profit and loss figures are a specific amount (in the account currency).

Profit target
The profit point at which the EA will be triggered (e.g. 10% profit or $100 profit, depending on the Close Basis).
If set to zero, the EA will not check for a profit amount, and will never close while the account is in profit.

Loss limit
The loss point at which the EA will be triggered (e.g. 5% loss or $100 loss, depending on the Close Basis).
If set to zero, the EA will not check for a loss amount, and will never close while the account is in loss. THIS IS NOT RECOMMENDED!

Include commission?
Whether or not to include commission ans swap fees when calculating the current profit amount.

Close based on date/time?
Whether or not to close all trades (regardless of profit or loss) at a specific date and time.

Date and time to close
Self-explanatory.

Close pending orders?
Whether or not to close pending orders when the close is triggered.

Disable AutoTrading?
When set to true, the EA will disable AutoTrading when triggered.

Enable trailing profit?
Whether or not to enable the trailing profit feature.

Trailing profit trigger level
The point (in either percentage of opening balance or a specific amount - see Close values parameter) at which the trailing profit is triggered.

Trail profit by
The distance behind the current profit the trailing profit should be kept at.

Trailing profit step
The amount by which the trailing profit is to be moved each time.

Version 1.15:

  1. New: Ability to close all trades every day at a specific time.
  2. Removed expiry date.

Attached File(s)
File Type: ex4 Equity Guardian 1.15.ex4   135 KB | 589 downloads | Uploaded Sep 29, 2025 8:53pm


Version 1.142:

  1. Expiry date extended to end December 2022.

Attached File(s)
File Type: ex4 Equity Guardian 1.142.ex4   99 KB | 5,393 downloads | Uploaded Jan 30, 2022 10:45pm


Version 1.141:

  1. Expiry date extended to end June 2021.

Attached File(s)
File Type: ex4 Equity Guardian 1.141.ex4   99 KB | 1,432 downloads | Uploaded Feb 23, 2021 6:53pm


Version 1.14:

  1. Tidy up processing around profit target being hit.
  2. Don't check if profit target has been reached if set to zero.
  3. Don't check if max loss reached if zero.

Attached File(s)
File Type: ex4 Equity Guardian 1.14.ex4   97 KB | 2,017 downloads | Uploaded Jun 28, 2020 7:58pm


Version 1.13:

  1. Bug fix: stop current trailing profit resetting itself.
  2. Bug fix: when resetting by turning on AutoTrading, use today's date for calculation of opening balance.

Attached File(s)
File Type: ex4 Equity Guardian 1.13.ex4   96 KB | 1,664 downloads | Uploaded Jun 6, 2020 8:46pm


Version 1.12:

  1. Bug fix: corrected trailing profit function (properly this time!).
  2. Corrected calculation of opening balance for new accounts.
  3. Corrected the trigger for scheduled close.
  4. Added details to notifications.

Version 1.11:

  1. Bug fix: stop crash on new accounts.
  2. Bug fix: corrected trailing profit function.

Version 1.10:

  1. Added option to monitor just the current symbol.
  2. Added option to close pending orders.
  3. Added option to trail profit.
  4. Added option to send notifications.
  5. Added option to include commission and swaps in profit calculation.
  6. Added option to trigger close on specific date and time.
  7. Various changes to the information panel.
  8. Corrected the calculation for the opening balance.

Version 1.00

原帖附件 (7)

📦 帖子附件汇总 (38)

以下是回帖中所有共享的附件(38 个,已去重)。

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录