Estimating margin requirements in MQL5 - page 8

 
Alexey Viktorov:
Guys, give me the address of a brokerage house where the leverage for a symbol or the leverage of an account changes frequently. Or at least separate leverage conditions for some symbol.

Look at the contest conditions where Volchansky dissects scalping.

 
Renat Akhtyamov:

I understand you very much, of course.

In the beginning, I didn't understand simple things the first time around.

Once again, here is the margin for 1 lot to sell

OrderCalcMargin(ORDER_TYPE_SELL,_Symbol,1,BID,Mgn)

But for buying

OrderCalcMargin(ORDER_TYPE_BUY,_Symbol,1,ASK,Mgn)

The leverage is the ratio to it, not more than

k=100/leverage

like this

And your log tells you that you have no money and cannot open an order for free.

You can open an order with demo money. However, you do not have any demo money either, as far as I understand.

The balance is zero, isn't it?

No one here has asked you for these explanations, and even less about sharing the current spread with you by DC. You are "once again" responding to a question you made up, and not answering the question you asked directly and on the merits of the topic. I repeat it:

Renat Akhtyamov, in what way did you suggest at https://www.mql5.com/ru/forum/261955/page2#comment_7945930 to" Request margin information from the server"? Even if it takes a second, okay, but what kind of request to the server were you referring to? Is it just an attempt to open an anticipated trade for which a preliminary margin estimate is made?

Explain what this request is, no need to explain anything else. How are you going to ask the server for margin information?

Оценка маржинальных требований в MQL5
Оценка маржинальных требований в MQL5
  • 2018.07.01
  • www.mql5.com
Пример из спецификации контрактов одного ДЦ, где кредитное плечо является свойством символа, и, даже, как пишет ДЦ, его курса...
 
Vladimir:

No one here has asked you for these explanations, much less intended to share with you the current dispersal of funds by DC. You are "once again" responding to a question you made up, and not answering a question you asked directly and on the merits of the topic. I repeat it:

Renat Akhtyamov, in what way did you suggest at https://www.mql5.com/ru/forum/261955/page2#comment_7945930 to" Request margin information from the server"? Even if it takes a second, okay, but what kind of request to the server were you referring to? Is it just an attempt to open an anticipated trade for which a preliminary margin calculation is performed?

Explain what kind of request it is, no need to explain anything else. How do you intend to request margin information from the server?

Good luck with the competition