When the chart is in dynamic mode 0 in time templates, when you move the chart it brings down more data and refreshs.
However it doesnt seem to force a reload of my study. My study place drawText objects on the chart and after the data refresh they are out of place obviously cuase the data changed slightly.
Is there a way to have the efs study force a reload when the chart data changes?
[edit]
I think I may have figured some of this out. YOu see im calling a dll in my script. if i check getBarState() == BARSTATE_ALLBARS instead of using a bInit global I'll know when the script is reloading. Why do all the examples use bInit var when it seems better practice to call getBarState???
Problem now is i need to call a destructor in the DLL in postmain() which doesnt seem to be called.
It seems to me is should be called if the script is being reloaded again from the first bar.
However it doesnt seem to force a reload of my study. My study place drawText objects on the chart and after the data refresh they are out of place obviously cuase the data changed slightly.
Is there a way to have the efs study force a reload when the chart data changes?
[edit]
I think I may have figured some of this out. YOu see im calling a dll in my script. if i check getBarState() == BARSTATE_ALLBARS instead of using a bInit global I'll know when the script is reloading. Why do all the examples use bInit var when it seems better practice to call getBarState???
Problem now is i need to call a destructor in the DLL in postmain() which doesnt seem to be called.
It seems to me is should be called if the script is being reloaded again from the first bar.
Comment