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
First you need to select the position you are going to work with using one of the functions below:
PositionGetSymbol
Returns the symbol of the corresponding open position
PositionSelect
Selects an open position for further work with it.
PositionSelectByTicket
Selects an open position for further work with it according to the specified ticket.
but just note that the PositionSelect() and PositionSelectByTicket() functions have a peculiarity:
then you need to get its Magic:
and then you can use position_magic where you want.
Regards, Vladimir.
First select the position you are going to work with using one of the functions below:
PositionGetSymbol
Returns the symbol of the corresponding open position
PositionSelect
Selects the open position for further work with it.
PositionSelectByTicket
Selects an open position for further work with it by the specified ticket
but just note that the PositionSelect() and PositionSelectByTicket() functions have a peculiarity:
Then you need to get its Magic:
and then you can use position_magic wherever you want.
Regards, Vladimir.
I even wondered, then what was the question?
Regards, Vladimir.
I was wondering, what was the question then?
Regards, Vladimir.
Which magik is installed in the commercial facility. I'd answer, but I'm not at my computer yet.
Something seems to me from the object is not available. Magik is in the protected area:
Here's a question I have.
I use the code in the Expert Advisor literally from the help
At the beginning it works correctly in the tester, but then I get an error in the log. Why?
Here is an example that it works a little earlier
Here's a question I have.
I am using the code in the Expert Advisor literally from the help
At the beginning it works correctly in the tester, but then I get an error in the log. Why?
Here is an example that it works a little earlier
Because
last_deal = 0
Because.
So that's the question, why zero?
So that's the question, why zero?
Orders, deals and positions should not be confused with each other. Each deal is the result of some order execution, each position is the final result of one or more deals.
HistoryDealGetTicket
Orders, deals and positions should not be confused with each other. Each deal is the result of the execution of an order, each position is the final result of one or more deals.
You copy the code I have given you for what purpose, what does it explain?