![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
If it works for you - fine. I am glad. But my view is that any indicator should be universal as much as possible, and not good for some specific situation only. You do it once but do it properly, so that if you need to change something or situation changes in terms of your positions it works correctly.
Anyway, you are welcome.
It won't work, you create the Object and then try to create it again on the next tick, this will fail . . . so if the first Order is a Buy and the second a Sell the text will not update from Buy to Sell.
It works, but just show the last order. I don't know how to change it for current order!
I don;t know if it is good practice or not, but I create the labels in init() and ObjectSetText just with a "."
I haven't figured out how to place a label with totally empty text yet. If I try it comes up with the text"Label"
Of course that is fine as long as you know how many labels you will need.
I guess that it shouldn't be too difficult to delete excess labels and add new labels when required in the main body.
This is the code that I use in init() to create the labels
Oh. and in deinit()
It works, but just show the last order. I don't know how to change it for current order!
I meant the whole code . . . but never mind . . . try these changes.
Please do not post queries that have nothing to do with this very old thread
I have reposted your query
https://forum.mql4.com/72256