Home Page Forex Software

Ultimate Manual Strategy Tester Free

Ultimate Manual Strategy Tester (UMST) is a special bird among existing manual strategy testers in that it is not running in MT4's built-in strategy tester but in the normal trading window, which makes it possible to test strategies using multi-timeframes and multi-pairs.

  • all 6 trade types (Market Buy/Sell, Limit Orders, Stop Orders)
  • playback speed change
  • SL and TP
  • trailing stop
  • multi-pair and multi-timeframe
  • swaps
  • stop out
  • all symbols including Forex and CFD
  • saving the current status and resuming later

Most environment variables like leverage, margin call, swap points, etc. are taken from the current trading account.


UMST aims to be a strategy developing tool. You can find hedging opportunities, test different TP/SL/Trailing Stop combinations and validate other indicators.


UMST contains 2 indicators. The other indicator (UMSTCandle.ex4) is to redraw candles, which is attached in the comment area and is not necessary to run the test.

To setup the environment, put UMSTCandle.ex4 to MQL4/Indicators.

Next, we setup the chart. There are two options:

  • Apply the template I have attached in the comment area. This template has best color scheme, and already has the indicators attached.
  • Use Black on White color scheme to have best view. Attach UMST and UMSTCandle indicators to the chart. This method is the raw method. You might want to save the template for later use.

Then, we need to load history data. UMST uses the history of all timeframes. The upper left corner displays history data availability, which is the earliest time available in a specific timeframe. If there is no sufficient data, go into that timeframe and scroll back to load more bars. I will attach a load history script to comment area as well.

Scroll to the time you want to start the test from. Once you see "History check passed" in all charts, press M to start the test.

Once you have the template, you just need to open charts, apply template, load history if necessary, then you are ready to start.

To restart a test, reload the template or reload UMST indicator in any chart. This will result in reinitializing in all open charts.

Most operations are triggered by keyboard. Detailed usage is described below.

Selecting a trade

  • Click on trade line to select a trade
  • /: select the newest open trade
  • ,: select next open losing trade
  • .: select next open winning trade

Updating a trade

Need to select a trade first.

  • C: market close
  • P: set default TP for the trade
  • L: set default SL for the trade
  • T: set trailing stop with the defined value
  • D -> P: remove TP
  • D -> L: remove SL
  • D -> T: remove trailing
  • O: auto set TP and SL with the defined value
  • Dragging: pending orders, TP and SL are all draggable

Placing a trade

  • Q: market buy
  • W: market sell
  • A -> Click on the chart: placing a buy limit order
  • S -> Click on the chart: placing a buy stop order
  • Z -> Click on the chart: placing a sell limit order
  • X -> Click on the chart: placing a sell stop order

Trading Strategy Tester

Test and optimize your trading robot before you use it for real trading

The built-in MetaTrader 5 Strategy Tester facilitates the testing of automated robot performance in trading. This powerful tool not only allows testing the efficiency of an Expert Advisor, but also allows detecting the best input parameters before you run the EA on your real account.

The entire operation of the Strategy Tester is based on historical quotes of currencies, stocks and other assets. During testing, the Expert Advisor goes through the accumulated quotes and performs virtual transactions according to its algorithm. This procedure allows an evaluation of how the EA would have traded in the past.

The MetaTrader 5 Strategy Tester allows testing Expert Advisors on multiple currencies. Trading robots have access to all the financial instruments in the tester and can perform trading transactions with any of them. This feature allows you to test even more sophisticated Expert Advisors that are capable of analyzing multiple currencies and identify the correlation between them.

The main advantage of the testing procedure is the possibility to evaluate a robot performance prior to trading on a real account. In addition, it takes only a few minutes in the tester rather than days, weeks or months needed to test an EA in the real market. This is an indisputable advantage of the Strategy Tester, but not all of its capabilities.

Testing modes

MetaTrader 5 Strategy Tester offers several testing modes to achieve the optimal speed/quality ratio based on trader's needs. "Every tick" is used to ensure the best testing accuracy. Simulated conditions are the most realistic in this mode. "1 minute OHLC" is introduced for traders who want to test a strategy quickly but also accurately at the same time. Select "Open prices only" if you need very quick and rough estimation based on bars' open prices.

The Strategy Tester is not only used for the testing of the trading robots, but it is also used to solve many mathematical problems involving parameter optimization. In this case trading history is not used and the market environment is not simulated giving way to math calculations implemented in the Expert Advisor.

With stress testing, the testing of trading robots can be even more realistic. Random Delay mode simulates network delays when transferring and processing trading requests, as well as delays of requests execution by dealers in real trading.

Graphical display of test results

Display of Expert Advisors' test results is one of the most notable features of the Strategy Tester. The results are shown in figures displaying an Expert Advisor's profit during a test. Additionally, they are also represented by a great amount of statistical data including profit/loss percentage ratio, number of profitable/loss-making deals, risk factor, expected payoff and much more.

Strategies testing results can be presented in charts for more convenient analysis.

Visual testing

Visual testing makes it possible to track an Expert Advisor's operations on historical price data in real time:

All performed deals are visualized on a chart, which makes the analysis more convenient. The testing process can be slowed down or stopped to observe how trading is performed at any particular time interval.

The visualization mode allows the trader not only to monitor the trading robot's operation in real time, but it additionally allows the testing of custom technical indicators. For example, you can evaluate an indicator's behavior on historical data before buying it from the Market.


Another important utility of the Strategy Tester is the function of optimization, which allows choosing the best input parameters for a specific trading robot. For instance, with optimization, you can modify the parameters to achieve maximum profitability and stability, minimum risk and so forth.

During the optimization process, one trading robot is tested multiple times with different sets of parameters. After the optimization, you can compare the results to select the parameters that provide the best performance for your robot.

The number of combinations of input parameters in the optimization can be overwhelming: you can have up to hundreds or even thousands of such combinations. As a result, the optimization can turn into a very extensive process, but still can be significantly shortened through the use of genetic algorithms. This feature disables the serial search of all combinations of input parameters and selects only those that best meet the optimization criteria set. In subsequent phases, the "optimal" combinations are crossed until the best possible result is achieved. The genetic algorithms help to considerably reduce the number of combinations and the total optimization time.

Graphical display of optimization results

The Strategy Tester provides powerful 2D and 3D tools for visual analysis of optimization results. For example, you can analyze correlation of a final result with two parameters in 2D, while 3D allows you to view the entire process of the optimal result search during optimization.

In addition to the built-in features, you can use >" href="https://www.mql5.com/en/articles/403">custom visualization methods. There is no need to prepare data in some specific way, export it or process in a third-party application. Results can be reviewed during the optimization process.

Forward testing

The built-in forward testing option helps avoid the problem of "over-optimization" or parameter fitting. This option divides the database of currency and stock quotes for optimization into two separate parts. The optimization is performed for the first part, while the second part is used to confirm the obtained results. If a trading robot is equally efficient on both segments, this is the proof that the trading system has the best parameters, and parameter fitting is practically impossible.

MQL5 Cloud Network

Distributed testing and optimization allows the connection of additional computing resources in order to enhance these processes. For example, you can use additional computers in your local network to accelerate the optimization process. But that is not all.

MQL5 Cloud Network is a cloud computing network that unites thousands of computers from all over the world. The Strategy Tester can connect to the network benefiting from almost unlimited computing power. With the MQL5 Cloud Network, the optimization of trading applications, which would normally take months to compute if using only one computer, can now be completed within a few hours.

MQL5 Cloud Network can be enabled through the MetaTrader 5 trading platform in just a couple of clicks. Learn more about how MQL5 Cloud Network can accelerate calculations >>

In addition to using the distributed computing network, you can provide your CPU computing power and earn money. You should launch the MetaTester component included into the MetaTrader 5 trading platform and your computer will be connected to the MQL5 Cloud Network.

The Strategy Tester is an extraordinary powerful tool crafted for developers of trading robots. Without the use of the tester, the creation of an efficient and reliable robot is practically impossible. The Strategy Tester saves you lots of time and allows creating a truly optimal trading robot!

Brokers | VPS | Signals | Articles FX