Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 234
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
Good "tone" programming is a programme without errors or warnings, everything else is amateurish.
Let's leave the tastefulness behind. I assume that such warnings are made for a reason. The question is why?
You are not going to withdraw the money earned by the Expert Advisor from the journal. Accordingly, the program must process the errors in order to act accordingly.
So the software handles them anyway, if there are any, and displays messages about them. What am I missing here?
So the software handles them anyway, if there are any, and displays messages about them. What am I missing here?
hello! the terminal is not authorised! where to go, what to do?
Authorisation = communication with broker's server, you need to turn on the internet. If demo - forget password, open a new account. If real - call the broker.
I authorised my account...but the mql5 profile is not authorised for some reason...
Good afternoon. Please help with this question...
The indicator draws a white level for the current day from the CSV. If the price does not reach this level, it (the level) continues to be displayed with a dotted line on the following days. When the price reaches this white dotted line in the future, it stops. However, after checking the unreached levels the next day the indicator considers the level as completed and stops drawing it.
I would like this dotted line to stay on the chart. Thank you.
1) How do I calculate my bail? How do I get this value in EA?
2) How do I calculate a margin for locking? How do I get this value in my EA?
3) How do I get the margin value from the ticket of an open order? I couldn't find functions like OrderMargin(), although I can see the margin on orders in the terminal (or is it lying?).
4) Is the deposit a parameter fixed once at the moment of order opening or recalculated (floating) at each new moment of order existence at the current rate?
Is the formula for manual calculation of the deposit correct?
(base_lot * trade_lot * current_rate%%%%%USD) / leverage = USD margin
HELP ME UNDERSTAND WHAT A DEPOSIT IS
1) How do I calculate the deposit? How do I get this value in my EA?
2) How do I calculate a margin for locking? How do I get this value in my EA?
3) How do I get the margin value from the ticket of an open order? I couldn't find functions like OrderMargin(), although I can see the margin on orders in the terminal (or is it lying?).
4) Is the deposit a parameter fixed once at the moment of order opening or recalculated (floating) at each new moment of order opening at the current rate?
Is the formula for manual calculation of the deposit correct?
(base_lot * trade_lot * current_rate%%%%%USD) / leverage = USD margin
1)
2) do not use
3)formula is the same as yours, only instead of "current_%%%%%USD", it is position open price.
4) parameter is fixed
Correct
1)
2) do not use
3)formula is the same as yours, only instead of "current_%%%%%USD", it is position open price.
4) parameter is fixed
Correct
Thank you!
2) Found information that the formula is the same, only at the end still divide everything by 2, but do not know if this is actually true
3) Opening price of the position, which by OrderOpenPrice() ?
5) Another question, if any opening is planned, then before that all the future costs of the order have to be calculated (amount of margin, amount of profit and loss, but here we also need to calculate the point value, check availability of free funds, limit in percentage of free funds for risk at once, did I miss something else? Or is there some other way? Is there any drawdown, should it be calculated as well?
5.1) How do I calculate the pip value?
5.2) How do I check if I have any available funds?
I ask these questions, because it is difficult to understand on my own, as there are so many specifics, like accounting.