I'm trying to place the value (number) from a variable on a chart using the following:
drawText(variablename, BelowBar1, Color.red);
but instead of displaying the the value, which is a 3 digit number with a decimal point, it instead displayes on the chart:
[object Series]
including the brackets.
I am running 7.9 so EFS2 works, but I've also tried drawTextRelative with the same results. Can anyone tell me the problem?
Thanks
drawText(variablename, BelowBar1, Color.red);
but instead of displaying the the value, which is a 3 digit number with a decimal point, it instead displayes on the chart:
[object Series]
including the brackets.
I am running 7.9 so EFS2 works, but I've also tried drawTextRelative with the same results. Can anyone tell me the problem?
Thanks
Comment