vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
522 stars 281 forks source link

How to run optimization tests? #116

Open Gadhami opened 6 years ago

Gadhami commented 6 years ago

Hi,

I just found out about MtApi...really awesome work, kudos man!

I'd like to run optimization tests for my EA (tests are run via Tick Data Suite), but...

If I understand correctly, I must set MtApi.ex4 as the EA in MetaTrader 4, so I can only "optimize" MtApi.ex4 instead of my EA settings.

My question is: can I bypass this? If so, how?

Thanks!

vdemydiuk commented 6 years ago

Hello. I am not sure that I have understood you correct about optimization tests. Do you want to test your own C# EA using MtApi? If yes, you will have MtApi.ex4 initial parameters only. MtApi.ex4 is only bridge between MT4 (MQL) and C# code. I don't have experience with Tick Data Suite. Can you provide more information how do you want to use MtApi with your EA?

Gadhami commented 6 years ago

Hi,

I uploaded a screenshot.

Normally if I click on "Expert Properties", I'd find my own EA settings (where I can choose the parameters to optimize), but since I must use MtApi.ex4, I can only optimize MtApi.ex4 parameters, not my EA's.

Hopefully that clarify my question,

Thank you!

donjuandx commented 5 years ago

This question actually links in with my enhancement / new feature request (Access External Variables from within C# / Link: https://github.com/vdemydiuk/mtapi/issues/128). @Gadhami is referring to accessing external parameters from the C# side. This will also allow for EA optimization using the same parameters.