I wanted to draw some horizontal lines on my indicator values. I set DrawOnPricePanel to false to enable me to do this and it works perfectly.
However, I also use the indicator and put it in the main data window, i.e. not in it's own panel. When I do this, the lines no longer work. I set DrawOnPricePanel to true, but I guess the lines are then drawing on the wrong scale.
So, the questions are (I could not find the answer!)
how do I detect if the indicator is running in the data window, not in it's own panel
and 2, if I detect that is the case, how do I draw the lines using the left hand scale, not the right hand price one of the data set?
Many thanks,
Paul
Comment