I am using something like this:
void showTxt(string line0) { static string lable1= ""; ... if ( lable1 == "" ) lable1 = plcTxtLabel("Lab1", 10, 5, 3); ObjectSetText(lable1, line0, 10, "Tahoma", clr); .. } string plcTxtLabel(string n, int x, int y, int corner) { n = idEA + n; ObjectDelete(n); ObjectCreate(n, OBJ_LABEL, 0, 0, 0); ObjectSet(n, OBJPROP_CORNER, corner); ObjectSet(n, OBJPROP_XDISTANCE, x); ObjectSet(n, OBJPROP_YDISTANCE, y); ObjectSet(n, OBJPROP_BACK, FALSE); return (n); }
It is not really the original code so it is not tested nor compiled but might give you a hint..
Thank you, but I can't use it
As gooly has alluded to:
You are using OBJ_TEXT. These objects are fixed to a point in time. So as time progresses on the chart, your object will disappear off the screen to the left.
If you use OBJ_LABEL, you set the position relative to the window. This means the object does not move, even as time progresses.
Good. You are able to differentiate the object usage. :)
I got it...Thank you

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
Hi all,
Here the code I use to insert data
I would need to insert data on screen which you be fixed.
If I don't use ObjectMove(..) function, while the chart is running, the data will disapear.
Can anyone could provide an example how to display fixed data?
Thank you