Home Page Forex Software
 
 
 

Strategy Tester

Test your Expert Advisor on historical data

MetaTrader 4 Strategy Tester is designed for testing and optimizing trading robots before using them in real trading. It is based on historical quote data. During the test, a trading robot analyzes available quotes performing virtual transactions in accordance with its algorithm. This allows you to evaluate how the Expert Advisor would have traded in the past and simulate its behavior in real trading.

The built-in Optimization function allows you to select the most efficient parameters for obtaining the best trading results. For example, you can set the trading robot parameters so as to achieve maximum profit, to minimize risk and so on.

Visual testing in the real-time mode uses the chart window to demonstrate how an Expert Advisor performs trading on historical data. Upon completion, the tester provides you with a full report containing both graphical and quantitative results. This makes strategy analysis even more convenient. In addition to data on profits, the tester shows information on profit/loss percentage ratio, amount of profitable and loss-making trades, risk factor and so on. Analyzing obtained results helps you detect possible flaws in the robot's trading strategy and adjust the EA parameters.

The main advantage of testing a strategy is the ability to quickly assess the robot's performance without using it in real trading. Besides, it saves time, as a test takes only a few minutes, while it would take several days or even months to evaluate a strategy in real trading.

Test your trading robot before launching it on live trading and ensure the efficiency of its trading strategy!

Best forex strategy tester

Build. Test. Trade

Menu and widgets

Recent Posts

Recent Comments

  • forextester on Free Smart Forex Tester: C++ Trading Strategies, EA-compatibility
  • christer on Free Smart Forex Tester: C++ Trading Strategies, EA-compatibility
  • forextester on Smart Forex Tester Suite Products: License Comparison Chart
  • GILBERT on Smart Forex Tester Suite Products: License Comparison Chart
  • forextester on Market Entry Timing With The Pivot Points Analyzer

Archives

Welcome to Forex Strategy Tester!

Our team develops the software to build and test trading strategies – both manual and automated.

Our Smart Forex Tester is EA-compatible on source code level. You can compile and run MQL EA in our Tester.

All our tools are aimed at building profitable Forex strategies. Pivot points detection algorithm and trading strategy optimization are our primary focus.


If you are new to Forex, take a look at Forex Books. Also read our Book Reviews and miscellaneous information.

Trading Automation can help in overcoming human factor in Forex trading, so it is very important. Moreover, trading automation can also considerably improve Forex strategy testing efficiency, because testing of automated trading strategies can also be automated.

8 thoughts on “”

I am very happy to find this website out. It is interested to me when searching a “cool” strategy to trade. And here is the supporting software to help feel confidence to make decision.

you nailed it – this is exactly what we want our software to be – the tool for identifying the high probability trading strategies and getting confidence in using them by rigorous testing. We see this as the only way to gain in unpredictable markets. Stay tuned, we have a lot more to come!

Thank you for your comment!
The Forex Strategy Tester Team

Hi i need help download software but dont know how to install

Hi gulfam, did you check the User’s Guide?

Live chat not working at all. Support not working as well……………………………….

We don’t see any missed live chat request initiated with your email.

Neither have we received any support request from you. When did you send it?

The Forex Strategy Tester Team

Wonder if the Strategy tab can include strategy with extension of ex4 instead of mq4?

Thanks for your feedback!

We only provide EA compatibility on source code level. Testing EAs as binaries with only 3rd party tools is virtually impossible without violating MT license.

Advanced Guide To MetaTrader 4 - Strategy Testing And Optimization

MT4 enables traders to test Expert Advisors prior to using them in a live market. This allows traders to evaluate the Expert's efficiency and to confirm that it operates as expected.

Tester Window
MT4's "Tester" is a multifunctional window where traders can test trading strategies (objective rules for trade entry, exit and management) and also optimize an Expert's parameters to find the combination of variables that will produce the most favorable results. To open the Tester window:

  • In the Main Menu >View > Strategy Tester; or
  • Press the Strategy Tester button in the Standard Toolbar; or
  • Press CTRL + R on the computer keyboard.

Any of these actions will open the Tester window at the bottom of the MT4 screen, as shown in Figure 21.

Initially, only the Settings and Journal tabs are seen in the Tester window. The other tabs will appear as certain actions are taken; for example, the Results tab appears only after an Expert has been tested. The Tester window tabs include:

  • Settings - the settings of the testing and optimization; for example, the time period to be tested.
  • Results - the results of the trade operations performed on historical data by the Expert.
  • Graph - a graphical display of the results.
  • Report - a detailed testing report.
  • Journal - a log where all actions and internal messages of the Expert are recorded.
  • Optimization Results - data regarding every optimization pass, including inputs, profitability and drawdowns.
  • Optimization Graph - the results of the optimization shown in graph form.

Setting up Testing Parameters

To test an Expert Advisor, click on the Settings tab in the Tester window. Here, the trader will have to select the:

  • Expert Advisor - Only compiled Expert Advisors will be available for testing, and these will appear in the drop-down menu next to "Expert Advisor."
  • Expert Properties - Once the Expert has been selected, click on the "Expert properties" button to select parameters for each of the three tabs: Testing, Inputs, and Optimization.
  • Symbol and Period - The symbol is defined in the Symbol field; the timeframe is specified in the "Period" field. If there is no historical data saved for the symbol or period, the Tester will automatically download the last 512 historical bars.
  • Model - One of three methods of historical data modeling can be chosen for testing:

o Open prices only - the fastest method suitable for Expert Advisors that control bar opening.

o Control points - results are considered estimates only.

o Every tick - the most accurate method of modeling. Since this method involves a large amount of tick data, it is typically slow and can bog down the computer's operation.

  • Use Date - The historical price data on which the test will be applied; complete the From and To fields to identify a range.
  • Optimization - Check to enable the Expert parameters optimization mode; if it is disabled, the Expert will be tested but not optimized when the "Start" button is pressed.
  • Open Chart - Opens a new price chart with the symbol selected for testing. The chart will show trade entries and exits, and can be opened only after the Expert has been tested.
  • Modify Expert - Click this to open the MetaEditor and make changes to the code, if desired.
  • Start - Press the "Start" button to being testing or optimization. A progress bar will appear at the bottom of the Tester window, as shown in Figure 22.

Setting up Optimization
MT4 can automatically create consecutive passes of the same Expert, with different inputs on the same data. Performing this optimization can help traders determine the inputs that have the most favorable results. To set up an optimization, traders must specify which variables will be optimized by clicking on the "Expert properties" button in the Tester window. This opens a new window with three tabs, as shown in Figure 23:

  • Testing - general optimization parameters
  • Inputs - inputs are variables that affect the Expert's operation. Check to include inputs in the optimization; leave unchecked to disregard during optimization. If checked, double-click in each field to specify the values for Start (initial value), Step (change interval) and Stop (final value).
  • Optimization - the tab allows traders to apply limitations during optimization. If any of the conditions is met during a separate pass of the optimization process, the optimization will be interrupted. Check to enable a limit condition, such as Profit Maximum and Consecutive Loss.

After making the desired selections, click "OK" to close the window. Be sure the box next to the Optimization field on the Tester window is checked (to enable optimization), and click "Start" to begin the optimization. Optimizations take varying amounts of time depending on the type of data on which the optimization is performed and the complexity of the inputs. In general, multi-variable optimizations - those that test multiple levels of multiple variables - take the longest.

Optimization Results

The Optimization Results tab in the Tester window contains a final report of each pass of the optimization. All data are presented in a table with the following fields, shown in Figure 24:

  • Pass - pass number.
  • Profit - net profit (gross profit minus gross loss).
  • Total Trades - total number of trades generated.
  • Profit Factor - ratio between the total profit and total loss. Values less than one indicate a losing system.
  • Expected Payoff - mathematical expectation of winning.
  • Drawdown $ - maximum drawdown in relation to the initial deposit.
  • Drawdown % - maximum drawdown in terms of percentage.
  • Inputs - dynamic values of inputs during each pass.

Click any header (such as Profit) to sort data by that field. Right-click the Optimization Results and select "Save as Report" to save a copy of the results.

Conclusion
Automated trading and strategy testing/optimization are advanced features of the MetaTrader 4 platform. Automated trading is popular because it removes some of the emotion from trading, helps traders avoid costly order-entry mistakes, and responds quickly to changing market conditions. The ability to test and optimize a trading idea (Expert Advisor) prior to placing it in a live market with real money is an invaluable step in the development of a profitable trading system.

[Explore Investopedia's top forex broker reviews and find a broker that matches your needs.]

Brokers | VPS | Signals | Articles FX

2010-2018