Hi Steve,
So I am facing 2 issues:
i) I get error msg for below line:
drawTextAbsolute(7, 70, vLSMA1.getValue(0).toFixed(no_of_digits), Color.white, Color.black,
Text.BOLD|Text.LEFT|Text.RELATIVETOTOP|Text.RELATI VETORIGHT, null, 10, "vLSMA1Trend");
The error msg is "TypeError: vLSMA1.getValue(0) has no properties"
I get this error when:
a) load the chart on a 30min chart
b) ok when I first load it on a 5min chart using dynamic time template. But when I try to drag the chart to see the earlier time (and thus the chart needs to reload for earlier data), I get the error even for the 5-min chart
==> Would you pls suggest a solution?
ii) the chart shows different background colors after real-load => I will try to solve by comparing the highest/lowest values instead of the real-time value
==> Will try the code out next Monday...
So I am facing 2 issues:
i) I get error msg for below line:
drawTextAbsolute(7, 70, vLSMA1.getValue(0).toFixed(no_of_digits), Color.white, Color.black,
Text.BOLD|Text.LEFT|Text.RELATIVETOTOP|Text.RELATI VETORIGHT, null, 10, "vLSMA1Trend");
The error msg is "TypeError: vLSMA1.getValue(0) has no properties"
I get this error when:
a) load the chart on a 30min chart
b) ok when I first load it on a 5min chart using dynamic time template. But when I try to drag the chart to see the earlier time (and thus the chart needs to reload for earlier data), I get the error even for the 5-min chart
==> Would you pls suggest a solution?
ii) the chart shows different background colors after real-load => I will try to solve by comparing the highest/lowest values instead of the real-time value
==> Will try the code out next Monday...
Comment