Tutorial: Importing and using own custom indicators in EA Wizard

Managing custom indicators in EA Wizard

If you want to use an indicator that is not yet included in the EA Wizard, you can add it to the program as a custom indicator. Click on the Manage custom indicators button on the toolbar.

This will open the Manage indicators dialog. Here you can see a list of all custom indicators added to the program. If you haven't added any new indicator yet, this list can be empty.

Here we have few choices:

  • Import new custom indicators from StrategyQuant website
  • Import new custom indicators from indicator files
  • Define your custom indicator manually

Importing new custom indicator definitions from StrategyQuant

We at StrategyQuant keep and update a list of interesting custom indicators for everybody to download.
To download new definitions simply click on Download new custom indicator definitions button.

This will connect to our site and checks for any new custom indicators. If there are any new indicators found, it will display them in a list (see below).
You can choose which of these indicators you want to add to the program and click on Add selected... button.

Voila! New indicators were downloaded and added to the program, you can now use them in your trading strategies.

The new indicators are not only added to the EA Wizard, but the indicator files are also downloaded from our website and placed into the {EA Wizard}/custom_indicators directory.

You have to copy these indicators also to your MetaTrader so that your EAs can access and use it.

Importing new custom indicator definitions from indicator files

If you have your own custom indicators as files, you can easily import them to EA Wizard too.
Just copy your indicator files to {EA Wizard}/custom_indicators directory, then go to Manage custom indicators and click on Recognize new custom indicators from files.

EA Wizard will check its /custom_indicators directory for new files and display the import dialog again.

You can choose which of these indicators you want to add to the program and click on Add selected... button.
That's all, now you can use them in the program.

Only indicator files with source code (.mq4 extension) can be automatically recognized. If you don't have source code of your indicator (you have only compiled .ex4 file, the indicator will be not recognized.

You can still add this indicator to EA Wizard manually.

Manually adding new custom indicator

You can add new custom indicator also manually, it is relatively simple. Open new custom indicator dialog by clicking on Add new button.

Here you can define any indicator by specifying its file name, name parameters, etc.

The file name is the most important - it has to be an exact file name of the indicator file, without the .eq4 or .mq4 extension.
If you put incorrect file name, the EA won't be able to recognize the indicator and the condition will fail.

As a sample we'll define Aroon Up Down indicator. The file name is Aroon_Up_Down.mq4, so I'll enter Aroon_Up_Down as file name.
The Indicator Long and Short names are just names under which you'll see the indicator in EA Wizard, it can be generally anything.

Return type is another property - it is simple - if the indicator is drawn on the same chart with the price, like moving average, then the return type is price.
If the indicator is displayed in separate area below the chart (like CCI, Momentum or Stochastic) then the return type is number.

Then we have to define indicator parameters. Every indicator has several parameters that can be configured in MetaTrader. To find out which parameters the indicator has, simply open the indicator in MetaTrader and switch to Inputs tab.

We can see that our Aroon Up Down indiactor has 3 parameters, so we can define them in EA Wizard.

The indicator can also have multiple output values. If it draws more thanone line on the chart then it has multiple outputs and we have to define it here. Again, we can check in MetaTrader how manyoutput values our indicator uses. To do this, we have to add teh indicator to the chart and then open MetaTrader -> View -> Data Window

We can see that our Aroon Up Down indicator has 2 output values - it draws two lines - blue and red. By checking the values in the Dat awindow I can see that the first value is blue, and value 2 is red. So I can define the output values for our indicator definition as follows:

That's all, this is the complete definition of new custom indicator. Once we click OK the indicator will be added to the programand you can use it just like any other indicator.

Using custom indicators in EA Wizard

When you already have custom indicator defined in EA Wizard, it can be used simply like any other build-in indicators. You can use your custom indicator in the trade condition:

Simply open the combo box with Custom Indicators and find the one you want to use. The Custom Indicators combo box contains all custom indicators defined in the system.
Choose your indicator (for exmaple QQE_ADV) and you can compare it to any other value on the right side, even another custom indicator.

Some custom indicators have multiple output values - for example Keltner Channels returns values for upper, middle and lower channel.
You can choose the output value in the property panel.

Custom indicators can be used also in the order price levels, for example when you define price level for Stop order, or price level for Stop Loss or Profit Target.

Note! MetaTrader folder structure has been changed in build 600+!
It no longer stores indicators and EAs in MetaTrader installation folder, now it uses separate Data Folder instead.
You can find the path to your MT4 Data Folder by opening MetaTrader and going to File -> Open Data Folder

To use the custom indicator in your MetaTrader, the indicator file has to be copied to {MetaTrader Data Folder}/MQL4/Indicators directory, so that our EA can find and use it.

comments powered by Disqus