Trade Forex Trading

Learn Forex Trading

MetaTrader 4 Platform MetaEditor Tutorial: Adding Custom Indicators

The MetaEditor language Editor is a programming environment on the MetaTrader 4 that traders can use to add new Custom Indicators, Scripts, Libraries and Include Files which are used in programming. The MT4 platform MetaEditor is commonly used by Traders who use Automated Expert Advisors to place trades. This tutorial we shall look at how to add a custom indicator on the MT4 platform using the MetaEditor, to learn how to add a new Expert Advisor you can navigate to the: Adding a new MT4 Expert Advisor Tutorial.


The MetaTrader 4 online Forex platform MetaEditor environment is shown below.

MetaTrader 4 MetaEditor Tutorial: Adding Custom Indicators

MT4 Online Forex Trading Platform MetaEditor Environment


MetaEditor Menu

MetaEditor Window in MetaTrader 4 Forex Trading Platform


On the MetaTrader 4 Forex trading platform, after adding an Indicator a trader will require to compile this newly added item so that it can now be recognized by the MetaTrader 4 Platform and start to appear on the MT4 Forex platform Navigator Window.


Adding a New Custom Indicator

After you have opened the MetaQuotes Language Editor on your Forex trading platform as shown above (Short Cut Key - Press F4), you can then follow the steps below:

Step1: Go To File Menu, Then Select “New”

Adding a New Custom Indicator using MetaEditor on MetaTrader 4

Adding Custom Indicators on MT4 Platform


Step2: On the Popup window that appears on your screen select “Custom Indicator” and then click next

MetaTrader 4 Window for Adding Custom Indicator

Adding Custom Indicators on The MT4 Online Forex Trading Platform

Step3: Choose and Enter a Name as Shown Below and then Click Next

Name of New Custom Indicator on MetaTrader 4 Trading Platform

Creating Custom Forex Indicator on MetaTrader 4 Platform


Step4: Specify if it is to appear on a separate window or not, Then Click Finish

Custom Indicator Properties Settings

Creating Custom MT4 Indicator


For an MT4 indicator that is a price overlay - do not check this box, and for an oscillator like the RSI or Stochastic Oscillator - check the above option.


The Following Code will appear on the Forex trade platform MetaEditor Window

Adding Custom Indicator on MT4 MetaEditor Programming Environment

Adding Custom Indicator on MT4 Trading Platform


To program a customized MT4 indicator it requires that you are a programmer who knows the C++ Object Oriented Programming Language, which is the programming language that the MQL4 programming language uses in the programming of the MT4 Forex trading software. Or you can find the community of MQL4 Programmers and they can program the it for you.


Step4: Compile

Do not forget to compile, for the MT4 Forex indicator to be recognized by the MetaTrader 4 FX trading platform; one must compile the program, then close and restart the FX platform, just like restarting your computer - you will restart MT4 platform so that the newly added custom MT4 indicator can start appearing and be listed on the MT4 Navigator Window.

Compile a New Custom Indicator on MetaTrader 4 MetaEditor

Compile New Custom Indicator on The MT4 Online Forex Trading Platform

If there are no Errors, it will be compiled successfully without any error as shown above.


Step5: Restart MetaTrader 4 Forex online platform and it should now be listed on the MT4 Navigation Menu as shown below and you can start trading with the newly added indicator.

New Custom Indicator Added To Indicator List on MetaTrader 4

New MT4 Indicator Added To The Forex Trading Platform


How To Add a Downloaded Custom Indicator

If you download an indicator from a source on the internet for example on, and it is now on your computer - to add it to the Forex trading platform, follow the steps below:


Step1: On the File Menu of the MetaEditor, Select “Open”

Add a Downloaded Indicator to MetaTrader 4 Platform

Open a Downloaded Forex Indicator Using MetaEditor


Step2: Locate the Download Folder from the Popup window that appears as shown below.

Locate Downloaded Indicator on Your Computer To Install it on MetaTrader 4


Step3: Once you open the downloaded custom indicator it will be displayed on the MetaEditor Work Space - you can then follow the above procedure for compiling the downloaded MT4 indicator, once it is compiled without errors, restart your MT4 Forex platform and it will now be added on the Forex platform navigator menu and you can start to trade with it on your MetaTrader 4 FX Platform.

Up To $6.67 Dollars Bonus for Every Lot Traded Get Up To $6.67 For Every Lot Traded

Market Outlook: Very Bullish for EURUSD, and EURJPY - Also for GBPUSD, GBPJPY, and AUDUSD (No Need For Technical Analysis - This is Risk Appetite -Risk Averse Speculation).

Do Not Be Left by This Opportunity: Open an account and start buying Euros and position yourself early - Risk appetite speculation has already started. - Others are already profiting - Read the article How to Fast Track Account Opening and Open an account now.

Strategy: Buy the retracements and use 1 Hour and M15 Charts to look for best entry and exit points - Also checkout Money Management Rules.

Poland FX Seminar Gala

XM Account Holders Attend Poland FX Seminar

Malaysia Seminar

XM Account Holders Phillipines Seminar

XM Account Holders Thailand Seminar

Malaysia Forex Seminar

Hungary Forex Seminar

Greece Forex Seminar

XM Account Holders Hungary Seminar

XM Account Holders Thailand Seminar

European Forex Broker XM is Licensed and Regulated in 12 Countries; 10 European Countries, Australia and UK

XM Forex Broker Regulation Licenses

Should you open an XM Account this is exactly how it looks like:

Forex Account Secure Clients' Area - Trader Cabinet

Up To $6.67 Dollars Bonus for Every Lot Traded

Loyalty Bonus Points - Up To $6.67 Dollars Bonus For Every Lot Traded

Bonus Points

Forex Trading Accounts Members Area - Withdraw and Deposit Options

Real Forex Trading Account Withdraw and Deposit Options

XMP Forex Loyalty Bonus Program

Silver and Gold Online Trading

CFDs Trading and Forex Trading

50% and 20% Bonus

$5,000 Forex Bonus

Bonus Points

Regulated Broker


Open Forex Account

Open Demo Account
Open Real Account

Regulated Broker

Regulated Forex Broker

Up To $5K Bonus

Forex Account Opening Bonus

Top MQL5 EA Robots

Top MQL5 Automated Trading Expert Advisors

Up To $6.67 Bonus Per Lot Traded

Open Demo Account
Open Real Account

Top MQL5 Signals

Top MQL5 Signals

Top MQL5 Forex Signals Service Providers on MetaTrader 4
Forex Account Opening Bonus