I have an indicator which uses DrawText to write the number of the bar (starting at
1 each day) underneath the bar as this serves as a reference when I am writing notes.
I also maintain a largish right side margin on the chart (i.e. an area in which bars are not drawn) so that bars do not interfere with other symbols or display markers which appear there and I can see the bars clearly.
The problem is that when I am advancing through charts bar-by-bar, the right side margin, although lacking bars (as desired) still plots the bar numbers in the margin area. This is troublesome to me because sometimes I like to be 'blind' to the price development that is about to come, but the DrawText labels, because they are positioned at a fixed interval below the bars give me a hint as to what is about to happen.
Any thoughts?
(And yes, the labels do need to be close to the bars they are labelling otherwise there is little added value.)
Edit: On further inspection, the problem arises when I have a chart loaded and I decide to scroll all the way back. It appears that NT is not erasing the markers when I do this. Is there is a quick fix for this or should I amend my code to somehow handle this?
(The other way for me to do this is to remove the indicator and add it back in again. Is there a quick way of enabling and disabling indicators without removing them altogether?)
Thanks
Comment