forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Help and Support → EA backtest problem

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 10

Topic: EA backtest problem

I exported an EA from FSB Pro to ICMarket's MT5 and MT4, then run backtest. There was no trading activity and no error found in strategy tester.
The EA only use Time Price Channel as opening and Starc Band as closing.
Is there anythings I need to setup to make it works in strategy tester?

Re: EA backtest problem

Please see the messages. It must be some clue.

Re: EA backtest problem

Popov
Do you mean the log?
I have tried to make another EA. It works in MT4, but not in MT5.
I found that when I compile the EA, it only use 131ms in MT4, and over 7000ms in MT5.
Is it because I missed some components in MT5 library?

Re: EA backtest problem

The exported EAs contain all the necessary components.
It must be some message in the chart in the Expert tab of the MT Terminal, if there is something wrong.
Please check for a message like this: "The expert needs xxx bars... "

5 (edited by gary199233 2018-11-25 14:43:41)

Re: EA backtest problem

I made a 1min USDJPY strategy for MT5 with using the data from 27/8/2018 to 23/11/2018
The message was

2018.11.25 16:19:31.866    2018.08.26 00:00:00   Loading data: USDJPY,M1, Minumum bars: 1435...
2018.11.25 16:19:31.873    2018.08.26 00:00:00   The expert uses 1500 bars.

In the backtest, no trade was made from 27/8/2018 to 4/9/2018

Update:
If I export the same EA to MT4

2018.11.25 16:40:27.850    2018.07.02 00:00:00  Strategy USDJPY,M1:
Cannot load enough bars! The expert needs minimum 1435 bars.
Please check the "Use date" option and set the "From:" and "To:" dates properly.

This message will also occur if I set the date start from 1/1/2018

Re: EA backtest problem

It looks like your strategy uses indicators with long periods or shifts. Unfortunately the MT Tester lacks an option to set how many bars to use for the backtest start. The only way to make it working is to set a "From" date that ensures the necessary bars are available. One day contains 1440 bars (if there  is no missing bars). That means you can check when your M1 data starts and to leave several days for a reserve.

Re: EA backtest problem

Still no luck with it....
I think I should try m5 strategy

Re: EA backtest problem

Hi Popov
I generated a m15 strategy for eurusd
The initial account for generating strategy was 1000USD
When I do backtest in MT5 was 1000USD, it get a problem

2018.11.30 15:41:05.335    2017.01.05 00:00:00   Error: ActionTrade::CheckOrder(): OrderCheck(): There is not enough money to complete the request
2018.11.30 15:41:05.335    2017.01.05 00:00:00   Error with OrderCheck: No money

Re: EA backtest problem

gary199233 wrote:

There is not enough money to complete the request

What is the Lot size used for each trade?

Re: EA backtest problem

sleytus wrote:
gary199233 wrote:

There is not enough money to complete the request

What is the Lot size used for each trade?

an EURUSD M15 strategy with start from 0.1lot, and max 1lot

Posts: 10

Pages 1

You must login or register to post a reply

Forex Software → Help and Support → EA backtest problem

Similar topics in this forum