Categories
Forex Education Forex Indicators Forex System Design

Designing a Trading Strategy – Part 3

Introduction

In our previous article, we presented the first component of a trading strategy, which corresponds to the market entry and exit rules. Likewise, we exposed the case of a basic trading system based on the crossing of two moving averages.

In this educational article, we will present the filters and how they can help the trader refine a trading strategy.

Setting Additional Filters in Trading Strategy

Signals originated in a trading strategy can use filters to improve the entry or exit signals that the system generates. The purpose of incorporating filters is to improve both the accuracy and reliability of the strategy. 

A filter can be an indicator’s level or additional instructions to the initial entry, or exit rules. Some examples of filters can be:

  1. Avoid buy entries if the reading of the 60-period RSI oscillator is less than 49. 
  2. Allow Buy entries if the price closes above the high of the previous day or allow sell-short signals if the price closes below the last day’s low.

Also, rules can be established to control the strategy’s risk, and preserve the trading account’s capital. In this context, two elements that can help to manage the risk are:

  1. Initial stop-loss, which can be a fixed amount of pips or depending on some previous periods’ volatility. In turn, this rule can be fixed or dynamic, its level moving as the trade progresses through time.
  2. limiting the number of simultaneously opened trades. This rule can be useful, mainly when the market moves in a sideways path.

Measuring the Risk of Strategy

The risk of trading strategy corresponds to the amount of capital that the investor risks with the expectation of a possible return on the financial market by applying a set of rules with positive expectations.

One way to measure the risk of trading strategy is through the maximum drawdown, which corresponds to the maximum drop in equity from the peak of the equity value to the subsequent equity low.

The developer can obtain this measure as well as other strategy performance indicators by running a historical simulation.

Incorporating Additional Rules into Trading Strategy

The following example corresponds to the addition of rules to the trading strategy formulated and developed in the previous article, based on  moving averages crossovers with 5 and 55 periods. 

Before incorporating additional rules and evaluating their subsequent impact on the trading strategy, we will display the results of a historical simulation, developed using the EURUSD pair in its hourly timeframe. Likewise, the size of each trade position corresponded to 0.1 lot in a $10,000 account.

The following figure illustrates the strategy’s performance in its initial condition, which executed 652 trades providing a drawdown level of 22.66% and a net profit of -$716.93.

The additional proposed filter rules are as follows:

  • The strategy must have an initial stop loss of 30 pips. This stop will limit the possible maximum amount of loss per trade.
extern double SL_Pips = 30;
  • We propose using a Break-Even rule to ensure the opened trades’ profits, which will be used when the price advances 40 pips. Likewise, the strategy will apply a Trailing Stop of 40 pips of advance and a 3-pips step
extern double BreakEven_Pips = 40;
extern double Trail_Pips = 40;
extern double Trail_Step = 3;

The function that computes the Trailing Stop is as follows:

void TrailingStopTrail(int type, double TS, double step, bool aboveBE, double 
aboveBEval) //set Stop Loss to "TS" if price is going your way with "step"
  {
   int total = OrdersTotal();
   TS = NormalizeDouble(TS, Digits());
   step = NormalizeDouble(step, Digits());
   for(int i = total-1; i >= 0; i--)
     {
      while(IsTradeContextBusy()) Sleep(100);
      if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue;
      if(OrderMagicNumber() != MagicNumber || OrderSymbol() != 
Symbol() || OrderType() != type) continue;
	  RefreshRates();
      if(type == OP_BUY && (!aboveBE || Bid > OrderOpenPrice() + TS + aboveBEval)
 && (NormalizeDouble(OrderStopLoss(), Digits()) <= 0 ||
 Bid > OrderStopLoss() + TS + step))
         myOrderModify(OrderTicket(), Bid - TS, 0);
      else if(type == OP_SELL && (!aboveBE || Ask < OrderOpenPrice()
 - TS - aboveBEval) && (NormalizeDouble(OrderStopLoss(), Digits()) <= 0 ||
 Ask < OrderStopLoss() - TS - step))
         myOrderModify(OrderTicket(), Ask + TS, 0);
     }
  }
  • Also, the strategy must allow a maximum limit of one trade at a time.
extern int MaxOpenTrades = 1;

In this context, the code that will determined the limit reached will be as follows:

   //test maximum trades
   if((type % 2 == 0 && long_trades >= MaxLongTrades)
   || (type % 2 == 1 && short_trades >= MaxShortTrades)
   || (long_trades + short_trades >= MaxOpenTrades)
   || (type > 1 && type % 2 == 0 && long_pending >= MaxLongPendingOrders)
   || (type > 1 && type % 2 == 1 && short_pending >= MaxShortPendingOrders)
   || (type > 1 && long_pending + short_pending >= MaxPendingOrders)
   )
     {
      myAlert("print", "Order"+ordername_+" not sent, maximum reached");
      return(-1);
     }
  • The trading strategy must preserve the account equity using a position size that should be proportional to 1 lot per $100,000 of equity.
extern double MM_PositionSizing = 100000;
double MM_Size() //position sizing
  {
   double MaxLot = MarketInfo(Symbol(), MODE_MAXLOT);
   double MinLot = MarketInfo(Symbol(), MODE_MINLOT);
   double lots = AccountBalance() / MM_PositionSizing;
   if(lots > MaxLot) lots = MaxLot;
   if(lots < MinLot) lots = MinLot;
   return(lots);
  }

Now, the entry rules with the Stop-Loss rule will be as follows:

   //Open Buy Order, instant signal is tested first
   if(Cross(0, iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) >
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0)) 
//Moving Average crosses above Moving Average
   )
     {
      RefreshRates();
      price = Ask;
      SL = SL_Pips * myPoint; //Stop Loss = value in points (relative to price)   
      if(IsTradeAllowed())
        {
         ticket = myOrderSend(OP_BUY, price, MM_Size(), "");
         if(ticket <= 0) return;
        }
      else //not autotrading => only send alert
         myAlert("order", "");
      myOrderModifyRel(ticket, SL, 0);
     }
   
   //Open Sell Order, instant signal is tested first
   if(Cross(1, iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) <
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0))
 //Moving Average crosses below Moving Average
   )
     {
      RefreshRates();
      price = Bid;
      SL = SL_Pips * myPoint; //Stop Loss = value in points (relative to price)   
      if(IsTradeAllowed())
        {
         ticket = myOrderSend(OP_SELL, price, MM_Size(), "");
         if(ticket <= 0) return;
        }
      else //not autotrading => only send alert
         myAlert("order", "");
      myOrderModifyRel(ticket, SL, 0);
     }
  }

Finally, the position’s closing code including the trailing stop will be as follows:

  {
   int ticket = -1;
   double price;   
   double SL;
   
   TrailingStopTrail(OP_BUY, Trail_Pips * myPoint, Trail_Step * myPoint, false,
 0); //Trailing Stop = trail
   TrailingStopTrail(OP_SELL, Trail_Pips * myPoint, Trail_Step * myPoint, false,
 0); //Trailing Stop = trail
   
   //Close Long Positions
   if(iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) <
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0)
 //Moving Average < Moving Average
   )
     {   
      if(IsTradeAllowed())
         myOrderClose(OP_BUY, 100, "");
      else //not autotrading => only send alert
         myAlert("order", "");
     }
   
   //Close Short Positions
   if(iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) >
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0)
 //Moving Average > Moving Average
   )
     {   
      if(IsTradeAllowed())
         myOrderClose(OP_SELL, 100, "");
      else //not autotrading => only send alert
         myAlert("order", "");
     }

The historical simulation with the inclusion of the additional rules to the trading strategy  is illustrated in the next figure and reveals a reduction in the Drawdown from 22.66% to 10.49%. Likewise, we distinguish a variation in the Total Net Profit from -$716.93 to -$413.76.

Although the trading strategy continues having a negative expectation, This exercise shows the importance of including additional rules to improve the trading strategy’s performance.

Conclusions

This educational article presented how the inclussion of filters into a trading strategy can improve the performance of two key indicators such as the Drawdown and the Total Net Profit.

On the other hand, we did not consider the parameters optimization during this step. Optimization will be discussed in a future article.

In the next educational article, we will extend the concepts of Profits Management and Position Sizing.

Suggested Readings

  • Jaekle, U., Tomasini, E.; Trading Systems: A New Approach to System Development and Portfolio Optimisation; Harriman House Ltd.; 1st Edition (2009).
  • Pardo, R.; The Evaluation and Optimization of Trading Strategies; John Wiley & Sons; 2nd Edition (2008).
Categories
Forex System Design

Designing a Trading Strategy – Part 2

Introduction

Our previous article presented the three key elements of a trading strategy, which is the base of a trading system. In this second part of the designing process of a trading strategy, we will present the first component of a trading strategy corresponding to the entry and exit.

Trade Positioning and Trading Strategy

trade is made of at least by a buy order and a sell order. In other words, when, for example, the trader places a long position (buy), he should close it using a sell (cover) order.

On the other hand, a trading strategy with a positive expectation can identify and provide both long and short trading opportunities under a specific condition. Similarly, the strategy must be able to determine when to close the trading position and exit the market.

Generating Trading Opportunities

As we have seen in previous articles, a trading strategy is born from an idea that we believe might generate profits in any financial market. In this regard, the entry signals can vary from the simplest to the most complex requirement.

A buy position will arise when the price meets a condition for a bull market. On the contrary, a short position will activate if the market accomplishes the conditions for a bear leg. Some examples of long entries are:

  1. The 5-period fast moving average crosses over the 55-period slow moving average.
  2. The 65-period RSI oscillator closes above a reading of the 52-level.
  3. The price surpasses and closes above the high of the previous day.
  4. The price breaks and closes above the high of the 55-day range.

The definition of the exit rule of the trade must be considered from the basis that an open position in one direction must be closed with a position of equal size and opposite direction. For example, if the trader has opened a long trade, it will be closed with a selling trade. In this way, the developer should define a set of criteria that allow the execution of the closing of the trade. For example:

1) Closing the trade if the price advances 1.5 times the risk of the transaction.
2) The price reaches 3 times the ATR of 14 periods.
3) The rolling average of 5 periods crosses the average of 21 periods.

An example of Trading Signals using Metatrader 4

Metatrader 4 is one of the most popular trading platforms in the retail trading segment. Despite other trading platforms, such as TradeStation, Multicharts, or VisualChart, we will use Metatrader for our example. This platform includes the MetaEditor application, with which the creation of trading strategies can be developed through the programming of custom indicators.

In the following example, we show the creation of a custom indicator based on the crossing of two moving averages. This trading strategy uses a 5-period Weighted Linear Moving Average (Fast LWMA) and a 55-period Simple Moving Average (Slow SMA). 

Now it is time to define the entry and exit rules of our trading strategy as ideas and code rules for MetaEditor of MetaTrader 4.

The setting of each moving average period is as follows:

extern int Period1 = 5;
extern int Period2 = 55;

The entry criterion will occur as follows:

  • buy position will be activated when the LWMA(5) crosses above the SMA(55).
//Open Buy Order, instant signal is tested first
   if(Cross(0, iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) >
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0)) 
//Moving Average crosses above Moving Average
   )
     {
      RefreshRates();
      price = Ask;   
      if(IsTradeAllowed())
        {
         ticket = myOrderSend(OP_BUY, price, TradeSize, "");
         if(ticket <= 0) return;
        }
      else //not autotrading => only send alert
         myAlert("order", "");
     }
  • sell position will trigger when the LWMA(5) crosses below the SMA(55).
//Open Sell Order, instant signal is tested first
   if(Cross(1, iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) <
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0)) 
//Moving Average crosses below Moving Average
   )
     {
      RefreshRates();
      price = Bid;   
      if(IsTradeAllowed())
        {
         ticket = myOrderSend(OP_SELL, price, TradeSize, "");
         if(ticket <= 0) return;
        }
      else //not autotrading => only send alert
         myAlert("order", "");
     }
  }

The exit criterion will occur as follows:

  • buy position will be closed if the LWMA(5) crosses below the SMA(55).
//Close Long Positions
   if(iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) <
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0) 
//Moving Average < Moving Average
   )
     {   
      if(IsTradeAllowed())
         myOrderClose(OP_BUY, 100, "");
      else //not autotrading => only send alert
         myAlert("order", "");
     }
  • sell position will be closed if the LWMA(5) crosses above the SMA(55).
//Close Short Positions
   if(iMA(NULL, PERIOD_CURRENT, Period1, 0, MODE_LWMA, PRICE_CLOSE, 0) >
 iMA(NULL, PERIOD_CURRENT, Period2, 0, MODE_SMA, PRICE_CLOSE, 0) 
//Moving Average > Moving Average
   )
     {   
      if(IsTradeAllowed())
         myOrderClose(OP_SELL, 100, "");
      else //not autotrading => only send alert
         myAlert("order", "");
     }

Until now, we have not defined a money management rule or the position size for our trading strategy, just entries, and exits.

Conclusions

Entry and exit criteria are the basis of a trading strategy, which arises from an idea. The trading strategy’s essential objective is to obtain an economic profit from applying specific rules in both long and short positioning in the financial market.

In this educational article, we presented the case of a trading strategy based on two moving averages crossovers. In particular, we used the LWMA(5) as the signal moving average with an SMA(55) as the slow m.a.

In the following article, we will present some filters to avoid false signals.

Suggested Readings

  • Pardo, R.; The Evaluation and Optimization of Trading Strategies; John Wiley & Sons; 2nd Edition (2008).
  • Jaekle, U., Tomasini, E.; Trading Systems: A New Approach to System Development and Portfolio Optimisation; Harriman House Ltd.; 1st Edition (2009).
Categories
Forex Trading Platforms

New Trader’s Guide to MetaTrader4

Many traders out there will be considering MetaTrader 4 as the go-to trading platform, one of the most reliable, flexible, and well-supported trading platforms available. If you have traded with a number of different brokers, you would have surely come across one supporting this platform. The platforms offered by brokers are often customized by the MT4 creator Metaquotes which is known as a white-label platform, there is a further reversion known as MetaTrader 5, but MT4 still remains the powerhouse within the retail trading market. MT4 was created by MetaQuotes and was released back in 2005, it is still going as strong as ever.

MetaTrader 4 was created to be intuitive and easy to use, once you have loaded up the platform you are easily able to create a new demo account within the MEtaQuotes server, or you are able to login to an existing account that you have with a broker, if you have downloaded an adapted version for a broker, you will only be able to log into accounts for that broker, and not another one. The demo account, should you decide to open one up will allow you to use fake money in order to test out the markets, a lot of the trading conditions will try to mimic those of a real account and they often have similar settings such as leverage to live accounts, it is a perfect way to test out the servers but also new strategies without having to risk things. It should be noted that the demo accounts on MT4, do not have things like slippage or commissions built into them.

So once the platform has fully loaded, you will be presented with the default page, this is made up of a few different elements. Like many programs, there is the menu bar at the top with things like File, View, Help, and other options being available. In the centre of the screen, you will see a chart, at the bottom, there are a number of different tabs including Trade, Exposure, Account History, News, Alerts, etc. We will have a look at those later. To the right of the platform, there will be two additional boxes, one title Market Watch and the other titles Navigator. It should be noted that you can move these windows around individually to have them positioned wherever you would prefer them to be, one of the many customisation options available from MT4.

Market Watch

We will start by looking at the market watch as this is the simplest of the section, the market watch simply shows you all of the available assets that are available to trade from your broker. If you right-click on a symbol you are able to hide it, you can also choose to “Show All ”, this will then display every asset available, most people will have it show all. Right-clicking also allows you to order the pairs in a different order or to open up a chart for that currency pair. If you decide to double click on a currency pair it will bring up the Order window.

Order Window

The order window is where you will be placing your orders. It can be opened up by double-clicking a pair in the Market Watch window or right-clicking anywhere in the trade window at the bottom of the screen. Once it has opened, you can select the pair that you wish to trade at the top, if you opened it from the market watch window then it will already have the pair you clicked on selected. You can select the volume of the trade, the stop loss level, and the take profit level. You are also able to add in any comments that you may want to attach to the trade.

You can also select the type of order execution that you wish to use, Market Execution will execute the trade as soon as you click on buy or sell. If you select Pending Order it will bring up an additional menu, here you can select a Buy Limit, Sell Limit, Buy Stop or Sell Stop. You can put in the price and then hit the place button. You are also required to add an expiration date/time to the order where it will be removed when that time is met.

Navigator

This is a simple box that allows you to navigate through the various accounts that you have added, as well as any indicators, Expert Advisors, or Scripts. There is not a lot that you are able to do with them, you can simply drag any indicators, EAs, or scripts onto the charts and they will automatically activate. If you have added anything to your data folder, be sure to right-click anywhere within the navigator and then hit refresh, this will then cause it to appear in the list.

Data Folder

Something that a lot of people struggle to find is the Data Folder, this is where you will be placing any new Scripts, Indicators, or Expert Advisors that you wish to use so that they appear in the navigator window. In order to access it, simply go up to File on the main window and then Open Data Folder. Within this folder, click on MQL4, there will then be a number of different folders, simply drop your file into the appropriate one, so EAs into Experts, Indicators into Indicators, and so forth.

Charts

The charts are of course the thing that you will be looking at the most when using the platform. It takes up the largest part of the screen and when first loading up will simply look like a load of lines on a black grid. At the top of the screen within the toolbar, you are able to switch between bar charts (default), candlestick charts, and line charts, the majority of people prefer using candlestick charts, but it is up to you. You are also able to use that same toolbar to zoom in and out or to change the timeframe of the chart, the available time frames with MT4 are M1, M5, M15, M30, H1, H4, D1, W1, and MN. Right-clicking on the chart enables you to toggle the grid as well as volume levels, you can also add indicators, trade from it, and save or load templates for the chart. If you decide to make the charts full screen, then tabs will appear at the bottom of the chart for each asset chart that is opened for ease of navigation.

Bottom Tabs

The bottom of the platform has a number of different tabs, they are all pretty much self-explanatory but we will briefly go through them the first is the Trade tab, this is simply where it shows all of your current trades, you can order them in regards to their order number, time opened, type, size, symbols, stop losses, take profits, commission, swaps and current profits. At the bottom, there is also an overview of your account stats and it will show you the account balance, current equity, margin, free margin, and margin level. This makes it easier to get a very quick overview of the state of the account.

The next tab is Exposure, this will show you the currencies that you are currently buying or selling, the majority of people will never use this tab, but it can be relevant when trying to maintain margins.

The account history tab should be self-explanatory, it simply shows you the history of the trades that you have made within the account, you can get a lot of information from them and can reorder them in any way that you wish.

The news section is also very straight forward, it will be letting you know any upcoming news events., It is often taken from a couple of different websites including MQL5, and will often take information from the Economic Calendar that can be found on the MQL5 website. 

The next two sections are Alerts and Mailbox, the alerts section will show you any alerts that you may have set up and when they have triggered, the Mailbox is where you will receive messages from both the platform itself and your own broker, these are often in relation to changes of trading times when there are bank holidays and things like that. Different brokers send out messages for different things, so it will be different for each one.

The Articles section simply lists articles that are available to read on the MQL5 website, the code base section allows you to download codebases for a number of different indicators and expert advisors, the Expert and Journal tabs offer different bits of information surrounding your account and any EAs that you are using, these sections can often be used to help debug any issues that may have occurred.

Market and Signals

The other two tabs on the bottom section are the Market and Siglan sections. These are where you can purchase, rent, or try out various expert advisors, indicators, and signals. The market section allows you to browse through thousands of different bits of software that you can use to enhance your trading from automated trading to assistance in the analysis. Many of them cost money to use, clicking on them will bring up an overview of what they do and how they can be used.

The signal section does what it suggests, it allows you to view and browse the various signals that other MT4 users are providing, this is where you will be copying the trades that the others are making, the signals section gives you a basic overview as well as an insight into the current performance of the signals. 

Automated Trading

With the help of Expert Advisors, MT4 makes it very easy to achieve automated trading, within the options menu, there is a tab titled Expert Advisors, within this menu you are able to activate automated trading, as well as a few other options. Once you have an expert advisor setup onto the charts, you can activate it either through this menu, or a conveniently placed AutoTrading button found at the centre of the toolbar at the top of the platform.

Push Notifications

Something that a lot of people miss about the MT4 platform is the ability to set up push notifications for your phone, these will activate whenever you open or close a trade, as well as things like deposits. You will need to download the MT4 app for Android or iOS and then input the MetaQuotes ID from the app into the Notifications section of the Options menu within the desktop version. You can then toggle notifications on and off from this same menu.

Options Menu

We won’t go over this in detail as it is all very self-explanatory, we have already touched on the Experts Advisor and Notification sections, the other ones available are the Server where you can alter your passwords and account settings, Charts, Objects, Trade options, Community, Signals, Events, Email, and FTP options. Plenty of ways to configure the platform to better suit your needs.

Expert Advisors and Indicators

We briefly mentioned this above, but one of the things that brings a lot of people to MetaTrader 4 is the sheer amount of expert advisors and indicators that are available, in fact, there are thousands of them available on the MQL5 marketplace and thousands more available elsewhere. The Expert Advisors allow for automated trading while the indicators can add a lot of functionality and information to the charts, things like Bollinger Bands and Fibonacci levels can easily be added to the charts and they update automatically, meaning you do not need to do any of the work yourself. If you are keen on using MT4, then you will certainly find indicators and expert advisors that allow you to do whatever it is that you need to do.

Mobile and Web Versions

We have looked over the desktop version which is, of course, the most popular version of the platform, it is worth noting that there is also a mobile version for Android and iOS as well as a WebTrader which can be used within your internet browser. The mobile version allows you to trade on the move, it offers a lot of the same functionality but without a lot of the bells and whistles, it allows you to check charts, make trades, unfortunately, it does not have the huge amount of EAs or Indicators available to it. The Web version allows you to trade from an internet browser, it is a very stripped-down version of the platform, good for quickly getting on to place a trade that you want, but it is not really sustainable as an independent platform as it is not compatible with the EAs and indicators that the desktop version is, it is nice to have, but certainly not a necessity.

Summary

MetaTrader 4 is one of the most versatile trading platforms around, it makes things incredibly simple to use, but also given enough features that can allow you to create extremely complex trading setups. With access to thousands of EAs and indicators, it can be extremely easy to get things exactly how you want it to function. It is easy to navigate, customisable, and very well supported by MetaQuotes. As it has been out for so long, there are very few bugs still included if any at all. 

If you are looking for an easy to use yet versatile trading platform, then you can’t go wrong with MetaTrader 4 from MetaQuotes.

Categories
Forex Trading Platforms

What is MetaTrader 4?

MetaTrader 4, also known as MT4 for short, is one of the world’s leading and most popular electronic trading platforms. It was developed by MetaQuotes Software and first released to the public in 2005. The software is now licensed out to a large number of foreign exchange brokers who then, in turn, provide the software to their clients. The client that the user uses is a windows-based application that initially gained popularity due to its ability to allow users to create and write their own trading scripts and robots in order to automatically trade for them. MetaTrader 4 comes in various forms such as a desktop download, mobile application, or mobile application.

How to download MetaTrader 4

The MetaTrader 4 website offers the base and generic versions of MetaTrader 4 ready to download, this version is great to download if you are looking to simply try out the platform as it does not require any broker accounts and as a way to try out the expert advisor creation and scripting tools that it provides.

Many brokers have prevented their accounts from being accessed from the generic version of MetaTrader4, they have now created their own branded versions of MetaTrader 4, so if you are using EagleFX, you will need to use the EagleFX MetaTrader 4 trading platform, if you are using IC Markets, then you will need to use the one branded from IC Markets. These platforms are exclusive to the broker offering it, so you won’t be able to use an EagleFX account on the IC Markets branded MetaTrader 4 client and vice versa.

Whichever broker that you are using, there will be an option to download their platform, most likely from within the client area, but some brokers also offer it directly from the homepage or trading platform pages.

How to install MetaTrader 4 on Windows

MetaTrader 4 was designed as a windows based application which makes it fairly straight forward to install, the first thing you will need to do is download the installation file as outlined in the section above,m once this has been done we are ready to install the software.

Simply run the .exe file and the installation wizard should startup. The wizard is self-explanatory, so simply follow the steps that it presents, select the installation location, any additional software that is offered (some brokers add in further options with their installation files). Once the installation is done, just double click the shortcut on your desktop or run the terminal.exe file and the MetaTrader 4 platform should open up.

How to install MetaTrader 4 on a Mac?

It can be a little more complicated to install MetaTrader 4 onto a MAC computer, the complexity needed will depend on the broker that you are using as some offer additional software while others do not.

Hopefully, your broker will be one of the ones that offer a direct MAC compatible download, if this is the case then it is as simple as downloading the application and running through the installation process, just like with a windows installation. If however it does not, it can be a little more complicated to get installed.

In order to get it installed correctly, you will need to download some additional software that will let you install it and run windows programs. Initially you will need to download and install a program called “Wine”, this is a free bit of software that allows Unix-based systems to run applications that were developed for Windows systems, there is a version specifically for the Mac OS. Once downloaded, you will then also need to download a program called “PlayOnMac”, download the software, and then run through the installation, following the prompts and downloading any necessary additional software (through the installation process).

Once everything has been installed, make sure that the latest version of Wine is installed, this can be updated through its menu system. You can then download the MetaTrader 4 Windows installation file, running this file will automatically open it with PlayOnMac, follow the onscreen prompts, and once finished, you should be able to launch MetaTrader 4 from within the PlayOnMac interface, or from a created a shortcut on the Mac desktop.

How to install MetaTrader 4 on a Linux system

If you are running a Linus based system, then you will have a few additional hoops to jump through before you can start using MetaTrader 4, just like we did on the Mac OS installations. This little guide will be based on the popular Ubuntu version of the Linus operating systems.

We will start out the same way as with the Mac installation, you will first need to download an application called “Wine”, this application makes it possible to run Windows applications on a Unix-based operating system. Wine is already included within the Ubuntu system, so in order to get it installed you will need to execute a single command line within the terminal, this command line is:

sudo apt-get install wine-stable

If your Ubuntu version did not have the repository available, then you can obtain it by running the following commands one by one:

wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

You will then need to update the software with the following command:

sudo apt-get update

Then finally you will need to install it:

sudo apt-get install –install-recommends winehq-stable

Once this has been completed, you can download the MetaTrader 4 windows installation file, be sure to choose to open it using Wine, the MT4 installation wizard will then start up and you can just follow the prompts available to install to your preferred location and any other settings that may be available. Once it has been installed, simply run the terminal.exe file, Wine will automatically load up the windows based program and you should be good to go.

How to install multiple MetaTrader 4 platforms

If you have accounts with different brokers then this is nice and straight forward, you can simply install the MT4 client from each respective broker, as long as they have their own branded version they will both install without any issues.

If you, however, have multiple accounts with the same broker that you wish to trade at the same time, it can be a little trickier. You can install the first platform following the normal routine, simply follow the onscreen instructions. When you want to install the second platform when the option to change the location of the installation is available, you must use this to install the platform onto a separate folder to the original one, this can simply have a number at the end or name it whatever you like. Once this has completed, you should be able to open up the two platforms separately without any issues.

How to download the MetaTrader 4 Mobile App

The mobile app that is available for MetaTrader 4 is a universal application, unlike the desktop version, it does not matter which broker you are using, you will be able to access your account from the standard application. In order to download it, you will need to load up the app store that is relevant to your device. It is available on both the Android Play Store and the iOS Apple Store.

Simply put in a search for MetaTrader 4 and it should pop up. Click to download and you will be all set to input your broker, server, username, and password.

How to use the MetaTrader 4 WebTrader

The WebTrade is a feature that comes with many brokers that allows you to trade using your MetaTrader 4 account without having to download and install any software or applications. All that you will need is a compatible web browser (any modern browser will work) and your account number and password. If your broker supports it, there should be a link to their version of the WebtTrader somewhere on the site.

Categories
Beginners Forex Education Forex Trading Platforms

Overview of MetaTrader 4

MetaTrader 4 which is also known as MT4, is one of the world’s most popular and most used electronic trading platforms that is hosted by a large number of online foreign exchange brokers. The platform contains both a client and a server component, the server component is run by the providing broker which the client version is provided to and run by the customers.

MT4 is a Microsoft Windows-based application that was released back in 2004 by the MetaQuotes Software company and first became popular due to its ability to allow its users to create their own trading scripts, algorithms, and robots in order to automatically trade for them. There is now a more recent product called MetaTrader 5, but the popularity of MetaTrader 4 still continues.

MetaTrader 4 Features

MetaTrader 4 comes with a huge array of different features that should enable it to suit your own style of trading.

Mobile Trading: If you are someone that is always on the move then the mobile solution from MetaQuotes is perfect for you. Downloadable as an application to both Android and iOS devices (iPhone, iPad), the application can be accessed from anywhere in the world. The functionality that is offered by the mobile version of the platform includes interactive quote charts, a full set of trading order types, similar to the desktop version, you are able to monitor the status of your account, track the history of trades, as well as buy and sell instruments in a single click, it also comes with push notifications.

Automated Trading: The MT4 platform offers a host of features that allow you to trade automatically, these are mostly performed by Expert Advisors that use technical indicators to look a the markets and will then enter and exit the markets based on the set parameters. The MetaEditor which is built into the software allows you to design and develop your own trading robots as well as test their compilation and performance.

Web Trading: Don’t want to download the desktop platform or a mobile app? No problem, you can simply use the online WebTrader that is offered by many MetaTrader 4 compatible brokers. You can load it up within your compatible web browser (any modern one will work) and then trade on your live or demo account. There are some limitations such as the number of indicators and you cannot use automated trading with it, but it is a good tool to check your accounts and trades should you be away from your usual setting.

MetaTrader Market: MetaTrader 4 comes with both a built-in and a web-based marketplace full of expert advisors, indicators and signals available to easy purchase and installation. The market currently provides a wide selection of trading applications, over 3,000 trading robots, and 4,000 indicators, both free and paid products, the ability to both purchase or rent the applications, secure purchases, and a wide range of payment options. The applications can be purchased outright or they can be rented for a shorter period of time giving you maximum flexibility.

Trading Signals: The MetaTrader 4 marketplace is full of signals that you can copy, offering an inbuilt marketplace, you can browse the available signals from within the trading platform itself. Take a look at their statistics and then decide whether to follow the signal, there are both free and monthly rental signals available to subscribe to.

Indicators: MetaTrader 4 has been designed to work with many different indicators and there are new ones appearing every single day. The marketplace offers over 4,000 indicators that you can purchase, rent, or download for the platform. Technical indicators that incorporate things like Fibonacci Levels, RSI, Bollinger Bands, Moving Averages and more are available, whatever you are looking for, it should be available to download.

Technical Details

The MetaTrader 4 platform comes with a number of technical components that perform different tasks.

MetaTrader 4 Client Terminal – the client part. Provided free by brokerages for real-time online trading and as Demo (practice trading) accounts. This provides trade operations, charts, and technical analysis in real-time. The internal C-like programming language allows users to program trading strategies, indicators, and signals. 50 basic indicators are included, each of which can be further customized. The software runs on Windows 98/2000/XP/Vista/7. Some users have reported success using Wine on Linux for the client terminal and on Mac using WineBottler

MetaTrader 4 Mobile – controls a trading account via mobile devices such as mobile phones or PDAs. Runs on Windows Pocket PC 2002/Mobile 2003, iOS, and Android
MetaTrader 4 Server – the core of the system, the server part. Designed to handle user requests to perform trade operations, display, and execution of warrants. Also, it sends price quotes and news broadcasts, records, and maintains archives. Works as a service. It does not have a separate interface.

MetaTrader 4 Administrator – is designed to remotely manage the server settings.

MetaTrader 4 Manager – designed to handle trade inquiries and manage customer accounts.

MetaTrader 4 Data Center – a specialized proxy server and can be an intermediary between the server and client terminals. It reduces the price quote sending load on the main server.

Categories
Forex MT4 Platform

MetaTrader 4 vs MetaTrader 5: An In-Depth Comparison

If you’re a forex trader, chances are that you’ve already heard about MetaTrader 4 (MT4) and MetaTrader 5 (MT5). These are the two most popular trading platforms on the market and are among the most common platforms offered by online brokers, especially with MT4. Do know that there are other trading platforms out there, but today we will focus on these two major options. Here’s what the platforms have in common:

-Both MT4 and MT5 can be accessed for free through your forex broker. Other platforms might ask for a lifetime licensing fee, which could force you to pay around $499 out of pocket.

-Both platforms were created by the Russian development company MetaQuotes Software Corporation, which is a leader in the financial market.

-Each platform offers a user-friendly interface that is easily navigable. Video tutorials for both platforms can be found online.

-Both platforms are compatible with Windows, Mac, iPhone/iPad, and Android devices.

MetaTrader 4 (MT4)

MT4 was created in 2005 and specifically built for forex traders. Compared to MT5, the older version might seem simpler, but it is probably the best option for anyone that simply wants to trade forex and it is a simpler choice for beginners. Here are some of its (best) features:

  • 9 timeframes
  • Four types of pending orders: buy stop, buy limit, sell limit, sell stop
  • Allows hedging
  • 30 built-in indicators
  • 3 order execution types
  • 31 graphical objects
  • Single-threaded strategy tester
  • Easy to use
  • Very Accessible (supports PC, Mac, Browser, iPhone/iPad, and Android devices)

MetaTrader 5 (MT5)

Five years after MT4 was created, MT5 was released. Contrary to popular belief, MT5 is not a newer upgraded version of MT4, instead, it was created to provide traders access to stocks, CFDs, and futures because MT4 was designed for trading forex. The programming language for MT5 is more complex and allows traders to perform more actions while offering more timeframes, pending order types, built-in tools, and so on. Here are some of MT5’s most notable features:

  • 21 timeframes
  • Six types of pending orders
  • Allows hedging and netting
  • 38 technical indicators
  • Economic calendar
  • 4 order execution types
  • Supports several transaction types
  • 44 graphical objects
  • Multi-threaded strategy tester
  • Fund transfer between accounts
  • Embedded MQL5 community chat
  • Very Accessible (supports PC, Mac, Browser, iPhone/iPad, and Android devices)

In addition to offering 2 more pending orders, order execution types, and other options, MT5 also comes with more built-in convenience options, including the ability to transfer funds between accounts through the platform and the embedded community char feature. These things aren’t necessary, but they do make trading more convenient.

The Bottom Line

Comparing MT4 and MT5 is a little more complex than comparing apples and oranges. Both platforms are user-friendly and designed for simple navigation, however, MT4 is more simplistic, making it a better option for beginners or those that don’t need MT5’s features. MT4 was created for forex trading, while MT5 was created to offer access to stocks, CFDs, and futures. MT5 also offers 12 more timeframes, 2 more pending order types, netting, one extra order execution type, more graphical objects, and a multi-threaded strategy tester. Still, many traders prefer MT4 because they may not need these extra features. In the end, it comes down to personal preference. Some traders are dead set on one platform or the other, while others are happy with either. If you’re unsure, consider testing out a demo account on both MT4 and MT5 to see which platform is best suited for your needs.