The trading logic is from RobotWealth FXbootcamp, so I am not sure if I can post it here. I think this should be reproducible on any strategy that trades different assets and params. Basically I am doing this:

Code
trade_function(some params, param_1, param_2);
algo(strf("lb_%d_re_%d", param_1, param_2);


trade_function cycles through the pairs and selects the ones for trading orders enterShort(), enterLong().