Backtesting multiple currency pairs simultaneously but different setting for each pair

 

Hi guys

I know that I can do a backtesting for my EA with all the pairs in market watch at the same time in MT5. but can I set different setting for each currency pairs?


For example I want to test for Gold, EURUSD, GBPUSD and USDJPY and my EA have 5 options in its setting , I want to disable option1 for gold and GBP but enable it for other pairs and ....

 
You should hard code your EA to act differently upon each symbol being tested.
 
Nima J:

Hi guys

I know that I can do a backtesting for my EA with all the pairs in market watch at the same time in MT5. but can I set different setting for each currency pairs?


For example I want to test for Gold, EURUSD, GBPUSD and USDJPY and my EA have 5 options in its setting , I want to disable option1 for gold and GBP but enable it for other pairs and ....


You can use a text file as the input parameter and save all necessary settings for each currency pair.

This approach will eliminate the restriction on the number of input parameters that can be defined for an EA and effectively  allows to change the EA behavior at any given time simply by modifying the file so that no restart would be required.

File may take this format:

            CurrencyPair  Active  StartTime       EndTime ....

            EURUSD          1          10                    13       

            XAUUSD          0          10                    23       

            AUDUSD         1          10                    23

            GBPUSD          0          09                    12

...

 
Yashar Seyyedin #:
You should hard code your EA to act differently upon each symbol being tested.

thank you

 
Alireza #:


You can use a text file as the input parameter and save all necessary settings for each currency pair.

This approach will eliminate the restriction on the number of input parameters that can be defined for an EA and effectively  allows to change the EA behavior at any given time simply by modifying the file so that no restart would be required.

File may take this format:

            CurrencyPair  Active  StartTime       EndTime ....

            EURUSD          1          10                    13       

            XAUUSD          0          10                    23       

            AUDUSD         1          10                    23

            GBPUSD          0          09                    12

...

Tnx, thats a good idea