yasser.danesh :
***
debug version of 'DOM.ex5', please recompile it.
***
***
debug version of 'DOM.ex5', please recompile it.
***
The error description gives you a clear order: "This is a DEBUGGING version, please RECOMPILATE the code."
Why are you making such a mistake: first, you ran your code in the "debugging on real data" mode ( ) or in the "debugging on history data" (
). These two modes create a special "debug" version of your code. You just need to compile (
) Of your code.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I wrote the code in the "OnBookEvent" function to reach the depth of the market. This code has no problem when executed as a script and returns the requested parameter as an alert. But when I run the same code as an expert advisor in MetaTrader environment, it does not print any data for me and one of its errors is:
debug version of 'DOM.ex5', please recompile it.
.......
What is the reason for this error?