Set firstbar for Owner-draw indicator
Posted: Tue Feb 21, 2017 5:38 am
Hi,
Is it possible to initialize the firstbar which is drawn in a owner-draw indicator?
Explanation:
I wrote a point and figure view indicator and set is as owner-draw indicator. After loading the history and calculation the point and figure data, the indicator will have 1000 bars.
If the indicator is loaded the first time, then it will draw the whole data to the screen(1000 bars). This make the indicator unreadable. I have allways to zoom in to the chart to see only last 50 bars.
Is there a way to setup the owner-draw indicator,maybe in the Draw(stage,context) function, to show only the last 50 bars at the first time?
best Guido
Is it possible to initialize the firstbar which is drawn in a owner-draw indicator?
Explanation:
I wrote a point and figure view indicator and set is as owner-draw indicator. After loading the history and calculation the point and figure data, the indicator will have 1000 bars.
If the indicator is loaded the first time, then it will draw the whole data to the screen(1000 bars). This make the indicator unreadable. I have allways to zoom in to the chart to see only last 50 bars.
Is there a way to setup the owner-draw indicator,maybe in the Draw(stage,context) function, to show only the last 50 bars at the first time?
best Guido