Dear all,
I have a problem on the output position of the text object. As shown in the code below, the text object will be out put with the text set to be "the time current."
But from the screenshot below, the timecurrent is "2012.09.10", But the text position is located around"2012.08.30".
..... The two "TIMES" are so different. May I know why? and how to display the text at the time(or the bar) when the ObjectCreate() function is called? Many thanks for your help.
- The incorrect output position of the text object created
- How do I automatically create a Text Object on the Chart with MQL Code?
- How to code?
tzm:
You can't create an Object that already exists . . . check if the Object exists, ObjectFind(), if it does then move it and change it's text, use ObjectMove() or ObjectSet() and ObjectSetText()
Dear all,
I have a problem on the output position of the text object. As shown in the code below, the text object will be out put with the text set to be "the time current."
But from the screenshot below, the timecurrent is "2012.09.10", But the text position is located around"2012.08.30".
..... The two "TIMES" are so different. May I know why? and how to display the text at the time(or the bar) when the ObjectCreate() function is called? Many thanks for your help.
RaptorUK:
You can't create an Object that already exists . . . check if the Object exists, ObjectFind(), if it does then move it and change it's text, use ObjectMove() or ObjectSet() and ObjectSetText()
You can't create an Object that already exists . . . check if the Object exists, ObjectFind(), if it does then move it and change it's text, use ObjectMove() or ObjectSet() and ObjectSetText()
Dear RaptorUK,
Many thanks for your kind help. I cannot access this website since last weekend. So i cannot reply to you promptly....
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