How do you allow drawings out of chart visible area?
Does any know of any code that allows things you've drawn to go off the chart? For example, a murrey math indicator draws a bunch of lines on a chart but some of them are above and below the visible chart area. It doesn't try to keep everything it plots in the visible area. How do I make that happen? Thanks in advance.
I have tried it with the auto-scale option in the indicators visual section and the chart's visual section in the properties window. I'm not sure if thats what you are referring to or not. If you mean did I code it to appear in the parameter section then no. I don't know the code for that.
you wrote :
For example, a murrey math indicator draws a bunch of lines on a chart but some of them are above and below the visible chart area.
now, if i add this indicator it shows all its in the chart-area that is visible at the moment.
for shure it shows not lines above below the current Highs / lows of the visable chart-window.
if i change the paramter autoscale to true now, it shows me all these lines, no matter how far they are away.
it shows me all lines the indicatur is suposed to print.
of course this compresses the chartpicture a bit
if that is not what you mean, please post some pictures + the indicators you talk about.
that would help to understand.
Yes I have tried that. The problem is I have autoscale set to false on the chart to allow me to see each tick on the chart. This means my indicators autoscale is set to true by default and once price travels far enough it all gets mashed together. If I reverse the autoscale settings (chart to true and indicator to false) the chart is more condensed and each print is drawn on top of the last one. I guess a better example of what I mean would be the GomVolumeLadder. No matter what the autoscale settings are each level on the ladders is readable and never mashed together. I have included a picture to illustrate what happens when autoscale is false on the chart, true on the indicator, and price has traveled far enough to mash it up. Example 2 shows the autoscale settings reversed. If it helps, I am using DrawText() to draw on the chart. Thanks Max.
I think the problem is when I widen the charts y axis the space between the boxes get wider where on the GomVolumeLadder the rectangles themselves get wider. My brain hurts just thinking about how to accomplish this and I have used a work around I think I can live with. Thanks to all for your help
The following user says Thank You to Default User for this post: