You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Of course it isn't. As you can see, even the author of the article named it "Functions for Money Management (...)". So I don't see a point in you remark.
But, the thing is that for the XAUUSD pair, for example, for one lot, this function returns the size of the gold trading contract in ounces (i.e. 100 ounces), but not the number of dollars in these ounces! Is this the way it is designed?
Rosh:
Да, по идее функция SymbolInfoInteger(.., SYMBOL_TRADE_CONTRACT_SIZE) возвращает размер торгового контракта по золоту в неких единицах. Для золота это может быть тройская унция, для нефти баррели и т.д. Как найти стоимость этого самого бареля или унции? Можно попробовать OrderCalcMargin(), кажется её еще не было на момент написания статьи.
Roche! I am talking about the GetMarginForOpening() function itself. The article states that this function returns the margin amount in the deposit currency, but in this particular situation this function does not work the way it is written in the article and returns the margin amount in contract units!
Nikolay, write your own. Yes, this article was written before the championship and for the championship (for forex instruments). Judging by the questions, you have figured it out yourself.
If you have questions about the functionality of MQL5 for your purposes, then it is another matter, but it does not concern the article.
Nikolay, write your own. Yes, this article was written before the championship and for the championship (for forex instruments). Judging by the questions, you have figured it out yourself.
If you have questions about the functionality of MQL5 for your purposes, then it is another matter, but it does not concern the article.
is the raw data and what we need to get.
Don't you think there's something missing for a proper calculation?
because, for example, on #IBM it doesn't add up.
Lot's of stock 100 sherds.Adequate margin.
Or am I missing something....
Testing IBM, I could not understand at first why it does not allow to open more than 0.5 lot. Then I realised. 50 sherds at the price of about 200 - it was the whole initial depot of 10 000 for the margin.
Don't talk in riddles. Did you find out that the calculation method written for Forex does not work here?
I'm saying that the formula needs to be modified to add one more indicator, which cannot be obtained directly from MQL5.
Like how many contracts are used in 1 lot.