I want my volume (nonprice study) subchart scale to always have zero at the bottom - which I have done with setStudyMin( 0 ), but I would like it to "autoscale" so that the Max varies depending on what time frame I select.
For example in the 5 minute frame the maximum might be 3,000, but in the 60 minute it could be 40,000. If I started with the 5 min time frame my subchart would be sized with the maximum sized bars near the top of my subchart - but if I switch to a different time frame the 0 is still there, but the maximum bars may be super-large, extending way past the top of my subchart. Or if the time frame is smaller the histogram bars are very small. Either way I have to drag the autoscale on the right which then cancels out my 0 (zero) base, and I have to do a lot of autosizing and dragging. Is there a way to set the maximum based on a percentage as opposed to an absolute value?
Thanks.
For example in the 5 minute frame the maximum might be 3,000, but in the 60 minute it could be 40,000. If I started with the 5 min time frame my subchart would be sized with the maximum sized bars near the top of my subchart - but if I switch to a different time frame the 0 is still there, but the maximum bars may be super-large, extending way past the top of my subchart. Or if the time frame is smaller the histogram bars are very small. Either way I have to drag the autoscale on the right which then cancels out my 0 (zero) base, and I have to do a lot of autosizing and dragging. Is there a way to set the maximum based on a percentage as opposed to an absolute value?
Thanks.
Comment