Giannos Antoniou: I am getting the following error : Cannot find 'getSignal' in 'WinAI.dll'
c= WinAI::getSignal(b); }
Perhaps because there is no getSignal in namespace WinAI
Hi @Giannos Antoniou, the capabilities of MT5 that handle the .NET imports are not that mature in my experience. DLL name must be the same like namespace and so on. In that case I would recommand not to choose the same name for the namespace and the class itself. The rest looks quite good.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The article https://www.metatrader5.com/en/releasenotes/terminal/1898 has an example on how the MQL5 can call a function of c# and return a value.
I have done the short example, without success.
My goal is to pass some values from MQL5 to a function in c# in order to do some calculations and the function to return a value to the MQL5.
C# (64-bit)
MQL5
and I am getting the following error :
Cannot find 'getSignal' in 'WinAI.dll'
May I have your help, please? Thanks