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.
you can get other symbols data from strategy tester with the following functions:
But in strategy tester you can only open positions in the symbol selected for the testing.
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.