 |
QuantShare
2011-07-12 15:12:17
1
|
|
Best Answer
This is because the lower bollinger band in your chart returns negative values. The log scale converts the min-scale value to 0.00001 by default.
Centering for log scales will be improved.
You can also update the min scale using the following function:
SetMinScale(0.5);
Or you can ignore scaling for bollinger bands:
plot1(up, down, "bb up", "bb down", colordarkred|22|colordarkred|32|298, colorgreen, colorred, chartline, stylesymbolnone|StyleNoScale);
Regarding the "long term" and "short term" buttons, you can add two shortcuts in the bookmark panel.
For example, the first shortcut will execute a script that updates the number of bars displayed in the current chart. (Tools -> Script Editor)
Chart chart = Charts.GetSelectedChart();
if(chart != null)
{
chart.ScrollBarNbQuotes = 2000;
}
|
|