Download MetaTrader 5

How to back test EA which uses DLL function ? What am I missing?

To add comments, please log in or register
Valera
70
Valera  

Hello all,


I wrote an EA shell which uses a DLL function in start() function - and it works OK while in forward test mode, but is blocked while I try to back test on historical data.

Below are screenshots to illustrate the issue:


My expert settings:



Forward test (DLL function int GetIntValue(int) is called and returns integer value back which is confirmed by the Print(..) message "Returned from..."):



And here is a warning message while expert is running in tester:


The question is: What needs to be done to let MT allow my EA to call DLL function in backtest mode?


Thank you in advance!


Valeri

Dow2
22
Dow2  
Not sure if it's related, but, would it be tool-->options-->Expert Advistors Setting --> Check Allow DLL import ?
Valera
70
Valera  

Yes, I forgot to check "Allow DLL import" checkbox in tool-->options-->Expert Advistors Setting.

Now the expert works correctly in tester!


Thank you!

Valeri.

Daniel OnWealth
9
Daniel OnWealth  
Dow2:
Not sure if it's related, but, would it be tool-->options-->Expert Advistors Setting --> Check Allow DLL import ?
thank you.
To add comments, please log in or register