I am messing around with my first robot. My idea is to open a pending order with a set expiry time.
I do not have enough knowledge to implement it.
If you don't mind, could you please describe the example of EA which, if I compile it, just opens one by one, e.g. BuyStop for 100 min at 50 points from the current price SL=50, TP=100 for eur/usd at any timeframe.
costy_: I have a feeling you won't figure it out on your own.
How do I get all the conditions to be checked in order: first condition_1, then condition_2, and only then condition_3, and not like that (which condition coincided, that was not fulfilled in order)? And when all the conditions are fulfilled in order, then open a market order to sell. Will it be correct?
How do I get all the conditions to be checked in order: first condition_1, then condition_2, and only then condition_3, and not like that (which condition coincided, that was not fulfilled in order)? And when all the conditions are fulfilled in order, then open a market order to sell. Is it correct?
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.
Good afternoon, folks!
I am messing around with my first robot. My idea is to open a pending order with a set expiry time.
I do not have enough knowledge to implement it.
If you don't mind, could you please describe the example of EA which, if I compile it, just opens one by one, e.g. BuyStop for 100 min at 50 points from the current price SL=50, TP=100 for eur/usd at any timeframe.
Thank you in advance!
It's not working, just hangs there.
)
optimize it.
;)
I thought it was pretty clear.
Thank you! [Laughs]
another example
Please explain about operator return(-1); called in the body of function start() - what does it give?
Is return(0); the same thing or not? It seems that the result is not passed anywhere.
Why do they write it in such a way in this case?
Please explain about operator return(-1); called in the body of function start() - what does it give?
Is return(0); the same thing or not? The result does not seem to be passed anywhere.
Why do they write it that way?
Write void start()
and return is unnecessary ))
I don't know why!
I have a feeling you won't figure it out on your own.
How do I get all the conditions to be checked in order: first condition_1, then condition_2, and only then condition_3, and not like that (which condition coincided, that was not fulfilled in order)? And when all the conditions are fulfilled in order, then open a market order to sell. Will it be correct?
Please explain about operator return(-1); called in the body of function start() - what does it give?
Is return(0); the same thing or not? It seems that the result is not passed anywhere.
Why do they write it in this way?
A procedure is a function whose return value is not used.
return is often typed for fun and can safely be thrown out.
In the above example, the return value can be used: Alert(init());
How do I get all the conditions to be checked in order: first condition_1, then condition_2, and only then condition_3, and not like that (which condition coincided, that was not fulfilled in order)? And when all the conditions are fulfilled in order, then open a market order to sell. Is it correct?