MetaTrader 4 (MT4) is a platform with a mission – it wants to make forex trading as simple and easy as possible. And to achieve this mission, it offers a plethora of features and functions, of which some of the most useful are Expert Advisors (EAs) and custom indicators. The best way to make an informed trading decision is to base that decision on an analysis of past and present price movements to predict a future trend. For this, traders use both fundamental and technical indicators. So, what part of this is simple and easy, you may ask?
Given the wide variety of technical indicators that are available on MT4, you need to choose which ones work best for you. And to be able to use your preferred indicators, you have been given the ability to create your own custom indicators. The EAs can then use these custom indicators to track trends and patterns and execute trades on your behalf. However, the key to being able to successfully use EAs and custom indicators is to install and launch them correctly. Fortunately, the process to create, setup and launch EAs and custom indicators (CIs) is the same on MT4, which is the first step in simplifying things for the user, isn’t it?
Here are some simple steps that you can follow to install CIs:
Once you’ve defined your CI with its parameters, click on “Next.”
4. Now another window will open, called “Drawing properties of the Custom Indicator program.” Your choices at this stage will determine what the CI looks like, the shape it takes, its color and so on. Click “Add” for all the drawing properties you include and when done, click on “OK.”
5. Yet another window opens at this stage, although this one is in the MQL4 programming language. So, what you see are a bunch of codes in a window that bears the name of your CI at the top right hand corner. You will see all the parameters you had chosen for the CI listed in this window. You will need to enter the CI code in this window using MQL4 language. If you are unsure about programming in this environment, check the Help Guides on MT4.
6. Once you complete the coding, make sure it is compiled to check if the code has been entered in the right format that enables the CI to run. To compile the CI, you will need to:
When compiling is initiated, you will see an update beneath the code, in a Toolbox. Any error that might have occurred will be shown here. Double click on the error to see it in code and fix. Once all errors are fixed, make sure you compile again.
6. Once compilation has been completed successfully, your new CI will show up in the Navigator – Custom Indicators window. However, if compilation was not successfully completed, the icon for your CI will be grey, which means you can’t use it. So, to be able to launch it, you will first need to ensure compilation success.
Before you can launch it, however, you also need to complete the setup. For this you will need to go to the Options window, where you should select “Expert Advisors.” For this, you can either go through Main Menu > Tools > Options or you could press CTRL + O on your keyboard.
Now you can choose between two options:
Once you’ve made your choice of option, your CI is ready for launch. For this:
When this is completed, a new window will open that gives you choices for “Common,” “Inputs,” “Colors” and “Visualization.” Check the settings for each of these and make the needed changes. Click “OK” when done and your CI will be attached to an active chart.
If you liked this educational article please consult our Risk Disclosure Notice before starting to trade. Trading leveraged products involves a high level of risk. You may lose more than your invested capital.
Start Trading Now
Tight Spreads from 0.1 pips
Trade Micro Lots
Personal Account Manager