Can you tell me how to determine if a position (from the history) has closed on TP? It seems that in MQL4 we read the comment on the presence of "tp". Is it the same in MQL5 or what?
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.
Can you tell me how to determine if a position (from the history) has closed on TP? It seems that in MQL4 we read the comment on the presence of "tp". Is it the same in MQL5 or what?
Example ofStop Loss Take Profit implementation in code:
Starting withbuild 1625, a wonderful enumeration ENUM_DEAL_REASON has appeared:
which can be tracked in OnTradeTransaction.
I want to "extend" the trend line to the right
I set
But the whole line is to the right for some reason, not only its right point. The price is the same for both points
What is the problem?
I want to "extend" the trend line to the right
I set
But the whole line is to the right for some reason, not only its right point. The price is the same for both points
What is the problem?
It is an error:
_PeriodTo prevent this from happening, just run the script:
You want seconds in the timeframe - usePeriodSeconds.
Error:
To prevent this from happening, simply run the script:
You want seconds in the timeframe - usePeriodSeconds.
Thank you!
Does MT5 still turn a limit order into a market order when the price touches it? Isn't the terminal supposed to be a stock exchange?
on the forex or the stock exchange?
on the forex or the stock exchange?
on forex
there are no limits on forex
There are no limits on forex.
Yeah???? 8/
Yes???? 8/
I don't know about the real one, the kitchen one certainly isn't.