Question about strategy tester.

Back to topics list To post a new topic, please log in or register
avatar
10
ivolux 2015.05.18 12:05
 

Hi all.

 I'm experienced trader, but quite new to automated trading. I'm trying to automate my trading strategy and test it using strategy tester.

The issue I have is that my strategy looks at all availble fx pairs and then chooses just 1 pair to trade based on my given parameters. But strategy tester just allows to select 1 pair at a time for testing, would that mean EA would not work in tester as It needs all the data from other pairs to work correncly?

And if so is there away around it? Like creating separate indicator that would show data from other pairs on 1 chart, something like a table with OHLC data?

Any help would be much appreciated.

 Thanks

Ivolux 

 

avatar
16
xiruko 2015.05.18 13:44 #
 

Hello,

you can get other symbols data from strategy tester with the following functions:

https://docs.mql4.com/series/iopen

https://docs.mql4.com/series/ihigh

...

But in strategy tester you can only open positions in the symbol selected for the testing.

Regards. 

avatar
12985
WHRoeder 2015.05.18 15:30 #
 
ivolux: The issue I have is that my strategy looks at all availble fx pairs and then chooses just 1 pair to trade based on my given parameters.

Look at other pairs if you must. (Don't assume that Time[i] == iTime(otherPair,tf, i) always use iBarShift.)

Don't trade other pairs. You can't use any predefined variables, must poll other pairs, and can't use the tester. Code your EA to trade just the current pair, then put it on multiple charts.

Back to topics list  

To add comments, please log in or register