Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 29

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
Well, not really... Maybe(?) a histogram by thickness of a candle. Otherwise, the object will be between two candlesticks.
A line, not necessarily a rectangle. But a histogram is also an option.
Canvas.mqh can also be used, I guess. It depends on what you want to do.
Good day everyone! Can you please advise how to set the deletion of an order in an EA?
The situation is as follows:
We place 2pending orders in different directions, as soon as one of them triggers, the other is removed and is no longer exhibited.
I would be very grateful for any help.
I would be very thankful for it.
Good day everyone! Can you please advise how to set an order deletion in an EA?
The situation is as follows:
We place 2pending orders in different directions, as soon as one of them triggers, the other is removed and is no longer exhibited.
I would be very thankful for any help.
I would be very thankful for it.
Do you need mql4 ?
Yes
Have you tried anything yourself?
I am just learning, I am trying to use the handbook, but I realise it turns out to be absurd.
Look, here is your condition:
we place 2pending orders in different directions, as soon as one of them triggers, the other one is deleted and is not placed again.
If I set two pending orders in different directions, I understand, but when, in what situation? (because it is recurring, not just once).
As soon as one of these two triggers, the one that didn't work is deleted immediately - I see.
... And never set it again - this is not quite clear. It will never be displayed again? We have a cycle of EA operation.