Try . . .
ObjectSetText("Texte", DoubleToStr(Total,0), 8, "Times New Roman", White);
Great, thank you.
The complete code if someone wants to copy
Total=OrdersTotal(); ObjectCreate("Texte", OBJ_LABEL, 0, 0, 0); ObjectSetText("Texte", DoubleToStr(Total,0), 8, "Times New Roman", White); ObjectSet("Texte", OBJPROP_XDISTANCE, 1300); ObjectSet("Texte", OBJPROP_YDISTANCE, 10);
Regards
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
Hello,
Sorry for my bad english, I'm Frenchy -:)
Newbie, I try to use ObjectSetText.
I managed to display correctly a ObjetSetText when it is a comment
Exemple :
But when I want display the value of a variable, "Label" only appears on the screen.
I try with "Total", (Total) or Total, but nothing.
Of course, Total is declare int above in code
If someone can help me.
Regards
Arsouille