Dear Mladen,
How do I calculate if 20% of the account margin (AccountMargin()) has already been used?
If 20% of the margin has already been used do not release new orders.
Thank you,
Rogério
Coding: Account Margin used %
2For any orders or just for the specific set of orders (created by specific EA, for example)?borgesr wrote:Dear Mladen,
How do I calculate if 20% of the account margin (AccountMargin()) has already been used?
If 20% of the margin has already been used do not release new orders.
Thank you,
Rogério
Coding: Account Margin used %
3Hi Mladen,
For orders that correspond to the magic number created by specific EA.
Thank you,
Rogério
For orders that correspond to the magic number created by specific EA.
Thank you,
Rogério
Coding: Account Margin used %
4Not sure that it can be done - the way how brokers calculate the margin used when you open an order differs from broker to broker, so we do not have an universal way to "reconstruct" it for the moment when the order was opened, and, hence, we can not sum just a certain set of orders for that purposeborgesr wrote:Hi Mladen,
For orders that correspond to the magic number created by specific EA.
Thank you,
Rogério
Coding: Account Margin used %
5Is it possible to know what percentage of the margin used is independent of the order?
Thank you,
Rogério
Thank you,
Rogério
Re: Coding: Account Margin used %
6You have the AccountMargin() and AccountFreeMargin() functions - those can be used for thatborgesr wrote: Fri Feb 24, 2017 8:05 am Is it possible to know what percentage of the margin used is independent of the order?
Thank you,
Rogério
Who is online
Users browsing this forum: ChatGPT [Bot] and 11 guests