Oleg Kolesov: Hello, could you please tell me how to get the initial margin factor?
Try any of these, I don't think there are any functions for the coefficient.
double a,b;
//Начальная (инициирующая) маржа //Обозначает размер необходимых залоговых средств в маржинальной валюте для открытия позиции объемом в один лот. SymbolInfoDouble(_Symbol,SYMBOL_MARGIN_INITIAL,a);
//Поддерживающая маржа по инструменту. //В случае если задана – указывает размер маржи в маржинальной валюте инструмента, удерживаемой с одного лота.SymbolInfoDouble(_Symbol,SYMBOL_MARGIN_MAINTENANCE,b);
Alert(a);
Alert(b);
//-------------------------------------------------------Alert(SymbolInfoDouble(_Symbol,SYMBOL_MARGIN_INITIAL));
Alert(SymbolInfoDouble(_Symbol,SYMBOL_MARGIN_MAINTENANCE));
//-------------------------------------------------------//Вычисляет размер маржи, необходимой для указанного типа ордера.//Значение возвращается в валюте счета.double lot=1.0;
double margin_buy,margin_sell;
OrderCalcMargin(ORDER_TYPE_BUY,_Symbol,lot,SymbolInfoDouble(_Symbol,SYMBOL_ASK),margin_buy);
OrderCalcMargin(ORDER_TYPE_SELL,_Symbol,lot,SymbolInfoDouble(_Symbol,SYMBOL_BID),margin_sell);
Print(margin_buy);
Print(margin_sell);
1 lot of sberbank(10 shares) current=2539.9 no margin. I buy 1 lot(2539.9*0.14) -355.59 from balance. Specification opening broker.question, what is it?
Oleg Kolesov: 1 lot of sberbank(10 shares) current=2539.9 without margin. I buy 1 lot(2539.9*0.14) -355.59 from balance. Specification opening broker.question, what is it?
Have broker and exchange commissions been abolished?
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.
Hello, could you please tell me how to get the initial margin factor?
Hello, could you please tell me how to get the initial margin factor?
Try any of these, I don't think there are any functions for the coefficient.
Only it is not the coefficient, but the initial margin itself.
Thank you colleagues. While writing a reply to prostotrader, Roman wrote. I will try it now.
There is no need to try.
There is no margin on the Fund (shares)
There is no need to try.
There is no margin on the Fund (shares)
The function returns 0. It needs this information.
Found them after all
1 lot of sberbank(10 shares) current=2539.9 without margin. I buy 1 lot(2539.9*0.14) -355.59 from balance. Specification opening broker.question, what is it?
Have broker and exchange commissions been abolished?