Hi,
I wrote a function that generates an array after the last bar on the chart is loaded. I want to recalculate it and redraw it at every NEW BAR. But I can not get the past values drawn on the chart. Only the last calculated value is seen via return and the rest is gone.
Maybe one way is to write it as a separate function and use callfunction but I don't want to have two scripts.
Any suggestions to this?
thanks,
I wrote a function that generates an array after the last bar on the chart is loaded. I want to recalculate it and redraw it at every NEW BAR. But I can not get the past values drawn on the chart. Only the last calculated value is seen via return and the rest is gone.
Maybe one way is to write it as a separate function and use callfunction but I don't want to have two scripts.
Any suggestions to this?
thanks,
Comment