Equity Guard EA

USER GUIDE – Equity Guard EA

Let us give you an example of how Equity Guard works:

Attach EA to any blank Chart when you don’t have any existing trade. For example, your equity is 1000 and you set EA’s input ‘Profit Type=In Currency’ and ‘Profit Value=5.0’. You start trading by manual or any other EA. When your current equity gain is 5 (mean total equity 1005), EA will close all trade and record new equity now 1005. Again your equity gain 5 from last recorded equity, EA trigger and close all trade. EA use global variable to record previous equity, so if your MT4 close or your VPS restart, EA will restore recorded equity from global variable. You can change/modify recorded equity from dashboard record equity input box.

 

Input Parameters

EA CONFIGURATIONS

  • Stop EA: if true, EA will stop
  • Profit Type: Select Profit Type
  • In Currency: Profit in currency.
  • In Percent: Profit in percentage base on account equity.
  • Profit Value: Set your profit value. When your Profit Type=In Currency this value is considered as currency, otherwise considered as percentage value.
  • Loss Type: Select Loss Type
  • In Currency: Loss in currency.
  • In Percent: Loss in percentage base on account equity.
  • Loss Value: Set your loss value.

DO THE FOLLOWING ON TRIGGER

  • Close all Open Trades: if TRUE, EA will close all active trade.
  • Delete all Pending Orders: if TRUE, EA will delete all pending orders.
  • Disable External Other EA: if TRUE, EA will remove your external EA after target profit/loss hit. But to do that you have to configure other settings properly. More Details.
  • EA Stop After Trigger: Select type, how long EA stop after trigger.
    • None: EA will not stop. It runs again after trigger.
    • Stop EA For X-Minute: EA will stop for X-Minute then runs again.
    • Stop EA For This Day: EA will stop for whole day. Next day EA run again.
    • Stop EA For Until Reset EA: EA will stop until you remove EA and attach again.
  • X_Minute: Put how long EA will stop after trigger. Value are minutes.
  • External_Chart_ID: Put External Chart ID (multiple values separated by commas).
  • Template_Remove_Name: Remove EA’s template name (multiple values separated by commas).
  • Restore External EA After Trigger: if TRUE, EA will restore your external EA after Equity EA is working again.
  • Template_Restore_Name: Restore EA’s template name (multiple value separated by commas).

NOTIFICATION

  • Enable Pop-Up Alerts: Enable text alert.
  • Enable Sound Alerts: Enable sound alert.
  • Send Email Alert: Enable email alert.
  • Send Mobile Notifications: Enable mobile notifications.

BASIC CONFIGURATIONS

  • Slippage: Set your trading slippage.

 

Keep In Mind (TWO IMPORTANT RULES)

1. Attach EA when you have no exiting orders.

2. EA work with equity gain or loss. If you deposit/withdraw money when your trade is open and Equity guard EA working, then EA will consider as equity gain/loss and trigger. Example: you set equity profit 5 and your record equity was 1000 so EA’s target equity is 1005. Now you have five open trade and floating loss is -50. At this time you deposit new fund 100 and your current equity is (Previous Equity (1000)+Floating Profit/Loss (-50)+New Fund (100)=1050). In this scenario your new equity is bigger than your target equity. So EA will close all trade. But originally you have loss of 50. To avoid this type of situation, my recommendation is don’t deposit or withdraw money when you have trade. If there is no trade you can deposit or withdraw money, there is no problem. In case you need deposit or withdraw money follow below:

  1. Stop EA by input setting.
  2. Deposit/Withdraw Fund.
  3. Modify your record equity input value.
  4. Run EA by click EA status button again.

 

How to EA's Disable/Enable your External EA

In this post I will describe how our EAs remove or restore your external EA automatically. The product can control External EA by changing the template. According to Market place rule, any product can’t use DLL file. Without DLL file it is not possible control External EA (Remove/Attach EA). So without DLL it is better to use change template to remove external EA. To do that you need three data put our EA's input.
  • External Chart ID:  Every chart you open has a unique identification number. You need that number to apply template on that chart.
  • Remove EA’s Template Name: A template with a blank chart.
  • Restore EA’s Template Name: A template with your EA.
When our EA needs to remove your external EA. It applies Remove EA’s Template Name to remove your External EA. After it need end it apply Restore EA’s Template Name to restore your External EA. So your EA can work properly.   External Chart ID: Put your chart ID here. If you have multiple External EA on multiple chart, put multiple chart ID on input box separated by commas. The example you are running three EA and you want to disable all of three EA after equity trigger. Then put that three chart ID into External Chart ID input box and all value separated by a semicolon (;). Example (130923092937824602;130923092937824603;130923092937824888).  

KEEP IN MIND

  • Don’t put any other value for separated without semicolon (;).
  • Don’t put any white space between the two gaps.
Remove EA’s Template Name: Put here template name that remove/disable your EA. How to create Remove EA’s Template There are two ways you can create Remove EA’s Template - First - Save a template with a Blank chart. So when our EA apply this template on your External EA, your ea will be remove from chart. Second - Save a template with your external EA but just un-check "Allow live Trading". So when our EA apply this template on your chart your ea will not be remove but can't open any trade. Save template with any name as you want. Like (remove1, remove2) you can put any name. Then put that template name on the input of Remove EA’s Template Name. If you have multiple External EA and put multiple Chart ID then you have to also put multiple Remove EA’s Template Name separated by semicolon (;).

KEEP IN MIND -

  • Template name is case-sensitive.
  • Don’t put file extensions into Remove EA’s Template Name’s input.
  Restore EA’s Template Name: Put here the template name that restores your EA again. Save the template with your EA and keep checking “Allow live Trading”.   Save template with any name as you want. Like (attach1, attach2). Then put same template name on Restore EA’s Template Name. If you have multiple External EA and put multiple Chart ID then you have to also put multiple Restore EA’s Template Name separated by commas.  

How EA work with multiple value

When you work with multiple external EA and you want our product remove all external EA then you have to put all of your chart ID into External Chart ID. Below example show you how muliple value of External Chart ID with work with Remove EA's Template Name  

Example 1

External Chart ID - 130923092937824602;130923092937824603;130923092937824888. Remove EA’s Template Name  - remove1; remove2; remove3. Restore EA’s Template Name  - attach1; attach2; attach3.

So when our EA remove external EA, it use template serial with Chart ID

First Chart ID (130923092937824602) will be use “remove1” template to remove your EA and use “attach1” template to restore your EA. Second Chart ID (130923092937824603) will be use “remove2” template to remove your EA and use “attach2” template to restore your EA. Third Chart ID (130923092937824888) will be use “remove3” template to remove your EA and use “attach2” template to restore your EA.

 

Example 2

External Chart ID - 130923092937824602;130923092937824603;130923092937824888. Remove EA’s Template Name - remove1. Restore EA’s Template Name - attach1.

Then all chart ID use "remove1" template for remove EA and use "attach1" template for restore external EA.

Example 3

External Chart ID - 130923092937824602;130923092937824603;130923092937824888. Remove EA’s Template Name - remove1. Restore EA’s Template Name - attach1;attach2;attach3.

Then all chart ID use "remove1" template for remove EA and use "attach1" to Chart ID one and "attach2" to Chart ID next one and "attach3" to Chart ID last one for restore external EA.

  If your use different EA or same EA with different setting then fellow Example 1 or Example 3 If you are using same EA with same setting on multiple chart, then fellow Example 2  

How to get your Chart ID

Use the MeetAlgo Get Chart ID indicator to know your chart ID. Indicator show your chart ID on a text box. You can copy your chart ID from the text box and then paste on EA's input.

Download Chart ID

MeetAlgo Get Chart ID MT4

MeetAlgo Get Chart ID MT5