How Backtest multiple Symbols in one time?
-
Hi all Community! i've searched on forum about it but i dont find a solution
suppose to backtest one bot that open at cross of ema5 on ema20 and so on....
in the end i have results of (for example) EURUSD ema5 cross ema20...
if i want backtest on the same time my pool of tick data, how i can do it?
there's a way to create a constant for Symbols? for have data of all my ticks, and have results of EURUSD USDJPY EURGBP etc etc ... i hope i was clear with explaination! have a good work!
-

like for timeframes i mean, that in backtest can do steps for find the best tf for a strategy
-
@Skyzen You can use this block on top of all block trees of the project:

-
@l-andorrà I’ve tried but it test all together, I need a way for test in backtest for watch situation of single Symbol, like pass… example when you test a MA for 5,10,15,20,etc etc periods
-
@Skyzen
Set it as a variable and use enumerations -
@sktsec Exactly.
-
@sktsec i've tried without success. i checked site of mql5 and seems that Symbols can't be "enumered"
-
@Skyzen
Yes. Not directly. First get the integer value from custom enumeration of symbols and then converting it to the corresponding symbol in a string variable -
i'm not able to do that, i've tried many combinations and nothing!

is like they are not linked
-
-
@sktsec i've tried
enum symbol {EURUSD, GBPUSD}
symbol symbolToTrade EURUSDand also
enum symbol {EURUSD = 0, GBPUSD = 1}
symbol symbolToTrade EURUSDin Variables i've tried double EURUSD 0
or string EURUSD EURUSD
or int EURSUSD 0in modify variables i've tried value to text... nothing, it doesn't grab information
-
for now i've solved in this way https://fxdreema.com/shared/NP7jB0e5b
-
@Skyzen You can use one only block with all involved symbols comma separated, instead of using one block per symbol.
-
@l-andorrà but in this way in backtest it will work on ALL symbols in block, I want use symbols like a normal input in optimization backtest.
Example
EURUSD 20>50 H1
GBPUSD 20>50 H1
USDJPY 20>50 H1... Etc etc... I don't know if I've explained well... In this way I'll save a lot of time in optimization and I'll not need to change manually symbols each time -
You can still optimize symbols one by one by selecting just one for that block.