Need Help With Method Design - A method which iterates of all possible input combinations (like strategy tester optimizer)

MQL5 资料库 其它

指定

I have designed a class which is going to act as a 'live optimizer'.

Currently there is a method which iterates over all the different input configurations using a start, step, end value - just like the optimizer.

However, I can't figure a good practice for preventing duplicates like here:


I've tried a few things but one implementation always breaks the nested loops some how.

Looking for someone to come up with a solution for me here.


  • I've set up a testing script ready, which is what is shown above
  • The method should accept a dynamic amount of inputs, and iterate all possibilities with duplicates removed.


Code is also attached - I am not sure how complex the solution would be.

I thought if in loop optimization is too hard, maybe some clean up code is needed - but I am sure there is a way to fix the loop counters mathematically.

Look forward to hearing from you.




附加的文件:

反馈

1
开发者 1
等级
(69)
项目
93
34%
仲裁
10
40% / 30%
逾期
5
5%
空闲
2
开发者 2
等级
(55)
项目
92
24%
仲裁
8
75% / 13%
逾期
44
48%
空闲
3
开发者 3
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲

项目信息

预算
50+ USD