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

MQL5 Kütüphaneler Diğer

İş Gereklilikleri

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.




Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(69)
Projeler
93
34%
Arabuluculuk
10
40% / 30%
Süresi dolmuş
5
5%
Serbest
2
Geliştirici 2
Derecelendirme
(48)
Projeler
80
28%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
41
51%
Serbest
3
Geliştirici 3
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest

Proje bilgisi

Bütçe
50+ USD
Geliştirici için
45 USD