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.
Probably something like this, if without parameters:
Probably something like this, if without parameters:
How's that, it's an integration into the existing naming system of order property functions:
bool OrderIsActiveType(int type = -1) { if (type < 0) type = OrderType(); return (type == OP_BUY || type == OP_SELL); } if (OrderIsActiveType()) { //... } if (OrderIsAnySellType()) { //... }It's not obvious, so it doesn't work for me.
And somehow it's essentially the same, but with a parameter it's clearer, so there's no point in defaulting to it, imho.
_______
We are already doing too much of that. Let's give real codes for redesign, discussion etc.But I got it out of a pile of code:
How about this?
Probably something like this, if without parameters: