![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
forum search works.
for example https://www.mql5.com/ru/forum/1111/page4
Is this function suitable: OrderCalcMargin?
I'm not familiar with MT4. I need to know the maximum allowable volume of what?
In general, this function is easy to use: we enter 1.0 as a volume and obtain the margin for a single lot order. And then the proportion (I cannot recall right now between what and what exactly).
Thank you, and how do I know the maximum allowable volume with this function?
Question about the tester, I start to test the Expert Advisor, the tester works, but the amount of memory used is growing, the amount of memory used is increasing, the count goes to gigabytes. I use instances of classes in the Expert Advisor, which I do not close in any way, should I do it forcibly? Maybe there are already written articles by someone? The memory is released only when I close the terminal, is it normal?
Also, why when I close the tester, it continues to run as a process without freeing memory
Thanks