I want to get the output result of a function and show it on the chart:
the code above returns no error and also no text on the chart.
pastaverage is the name for my object. and it is defined as a string.
checkaverage() is a function that returns a double output.
x2 and y2 are integers that are defined above.
Can you see it in the Objects List? CTRL + B
You code doesn't actually check any return codes, so you might want to change that to help.
Now I have two objects on my chart. But the second prints exactly on the previous one.x2=50
y3=80=========these are the coordinates where the two objects must be written.
Please read the documentacion about ObjectSet:
In the second parameter of ObjectSet() function, you have to use:
Integer value to set/get anchor X distance object property in pixels (see note)
Integer value is to set/get anchor Y distance object property in pixels (see note)
And in the third parameter you specify the desired value.
I do not know what are the numbers 50 after x2,y2 and x3,y3.
by changing the x2,y2,x3,y3. there is no change .
I have already two text which are printed at the same position
Yes, it's Christmas, hahaha. :-)).