Oleg Kolesov: Bonjour, pourriez-vous me dire comment obtenir le facteur de marge initial?
Essayez l'une d'entre elles, je ne pense pas qu'il y ait de fonctions pour le 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 de sberbank(10 actions) courant=2539.9 sans marge. J'achète 1 lot (2539.9*0.14) -355.59 du solde. Spécification du courtier d'ouverture.Question : qu'est-ce que c'est ?
Oleg Kolesov: 1 lot de sberbank(10 actions) actuel=2539.9 sans marge. J'achète 1 lot (2539.9*0.14) -355.59 du solde. Spécification du courtier d'ouverture.Question : qu'est-ce que c'est ?
Les commissions de courtage et de bourse ont-elles été supprimées ?
Bonjour, pourriez-vous me dire comment obtenir le facteur de marge initial?
Bonjour, pourriez-vous me dire comment obtenir le facteur de marge initial?
Essayez l'une d'entre elles, je ne pense pas qu'il y ait de fonctions pour le coefficient.
Seulement, il ne s'agit pas du coefficient, mais de la marge initiale elle-même.
Merci à vous, chers collègues. En écrivant une réponse à prostotrader, Roman a écrit. Je vais l'essayer maintenant.
Il n'y a pas besoin d'essayer.
Il n'y a pas de marge sur le fonds (actions).
Il n'y a pas besoin d'essayer.
Il n'y a pas de marge sur le fonds (actions).
La fonction renvoie 0. Elle a besoin de cette information.
Je les ai trouvés après tout
1 lot de sberbank(10 actions) actuel=2539.9 sans marge. J'achète 1 lot (2539.9*0.14) -355.59 du solde. Spécification du courtier d'ouverture.Question : qu'est-ce que c'est ?
Les commissions de courtage et de bourse ont-elles été supprimées ?