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

 

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

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

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.

 
Dow2:
Not sure if it's related, but, would it be tool-->options-->Expert Advistors Setting --> Check Allow DLL import ?
thank you.
Reason: