How to test EAs

Ask general questions about the software
Message
Author
sigebo
Posts: 2
Joined: Sun Dec 23, 2018 4:40 am

How to test EAs

#1 Postby sigebo » Sun Dec 23, 2018 6:59 am

Please teach me how to test by the FT3 a EA on running MT4.
But I don't know the sourse code of the the EA.
I can use C++.

FX Helper
Posts: 1052
Joined: Mon Apr 01, 2013 3:55 am

Re: How to test EAs

#2 Postby FX Helper » Mon Dec 24, 2018 7:56 am

Hello,

Sorry, but you can't convert an expert from MT4 to Forex Tester format without having a source code.

If you need to add an indicator/strategy from MT4 that is not in our list, you need to convert it from .mql to .dll format.
The conversion is not very difficult because our API is very similar to MQL.
You can find API files in C:\ForexTester\Examples\Strategies folder.

Please see more information about API in Forex Tester → Help → Strategies API

As soon as you have the required EA in .dll format, add it into Forex Tester via File → Install → Install New Strategy menu.

sigebo
Posts: 2
Joined: Sun Dec 23, 2018 4:40 am

Re: How to test EAs

#3 Postby sigebo » Tue Dec 25, 2018 5:33 am

Can I create a common DLL for FT3 and MT4 by the following procedure?
Create prog_ft3.cpp for ft3 using API of FT3.
Compile this and link it with the library for ft3 to make prog_ft3.dll.
This is executed by FT3.
Next, compile link with the library of MT4 for prog_ft3.cpp and create prog_mt4.dll.
Execute prog_mt4.dll with mt4.
It is assumed that API calling format for FT3 and it of MT4 are the same.

prog_ft3 + libraly of Ft3api > prog_ft3.dll
prog_ft3 + libraly of MT4api > prog_mt4.dll

FX Helper
Posts: 1052
Joined: Mon Apr 01, 2013 3:55 am

Re: How to test EAs

#4 Postby FX Helper » Wed Dec 26, 2018 6:43 am

Hello,

Sorry, but this is not possible as far as I know, the only way is to rewrite a source code from MQL to Forex Tester format (and vice versa) and compile the EA after that.

There is no automatic converter at the moment.


Return to “General Questions about FT”

Who is online

Users browsing this forum: No registered users and 1 guest