Expert Advisor Testing Without Metatrader

EA Testing is now possible in Smart Forex Tester!

Expert Advisor testing is usually done with MetaTrader’s own Strategy Tester tool.

Due to Metatrader’s license, testing EAs as executables without violating MT license is virtually impossible.

Smart Forex Tester uses C++ for strategy definition. Which makes it possible to test Expert Advisors as a source code. Because MQL is very similar to the C++.

How would you like to test Expert Advisors?

View Results

Loading ... Loading ...

We initially were implementing our trading strategies as Expert Advisors, but soon dropped this idea. We got disappointed by drawbacks of MT4 strategy tester and se decided to develop our own strategy testing software.

In our software, we didn’t have to stick with EA formalism, so we implemented trading strategies as state machines. Which best suits our purposes. Also in our approach the logic of the strategy is more clear – compared to the case when strategy is fully defined by a piece of software.

However, due to overall popularity of Expert Advisors, we also provided in our software a partial support to the strategies as EA – on the source code level. This became possible when we added trading strategies as C++ code in our all-new Smart Forex Tester. C++ is very much compatible with MQ, the language the Expert Advisors are written in.

Expert Advisor Testing In Smart Forex Tester
Expert Advisor Testing In Smart Forex Tester

To test an Expert Advisor in our Tester, you need to make some straightforward changes into its source code. There are language changes and trading functions replacement.

First of all, you need to load the EA source code into our Tester and compile it. At this phase there might be some errors, as MQ is not fully compatible with C++. You need to fix that by making small changes in the syntax.

Next, we need to replace the market data and trading functions, like onTick() or orderSend(), with the corresponding interfaces to the Tester engine that are available to the trading strategy.

Note that the primary reason we added C++ support to our Tester was not to enable Expert Advisor testing. Programming environment is needed to give more power to the users to define their strategy.

And, ultimately, our goal is trading strategies as state machines. For that, C++ will be the way to add new blocks of the state machines – such as market signals.

Our Smart Strategy Builder will be a proxy between the state machine formalism and C++ code environment.

What do you think? Would you like to stick with the EA format or are ready to try other options if the transition is easy? Please vote in the poll on this page.

See more details on our other site devoted to using our software for Expert Advisor testing.

One thought on “Expert Advisor Testing Without Metatrader”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.