The
problem of calculation of total position volume of the specified symbol
and magic number is considered in this article. The proposed method
requests only the minimum necessary part of the deal's history, finds
the closest time when the total position was equal to zero, and perform
the calculations with the recent deals. The working with global
variables of the client terminal is considered.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
New article The Optimal Method for Calculation of Total Position Volume by Specified Magic Number is published at mql5.com:
Author: Дмитрий