Is there some way to limit the number of bars in a study? In a TICK chart I am getting over 100,000 calls. I only need the last 200 or so bars to be calculated.
I already tried creating a limited Time Template. It doesn't work with the Advanced Tick Chart.
I'm just plotting a simple histogram of volume:
var vVolLast = 0;
function main() {
var vVol = volume();
if (close() < close(-1)) {
vVol *= -1;
setBarFgColor(Color.RGB(255,173,91), 0); // light orange
} else if (close() == close(-1)) {
if (vVolLast < 0) {
vVol *= -1;
setBarFgColor(Color.RGB(255,173,91), 0); // light orange
}
}
vVolLast = vVol;
return vVol;
}
Thanks
I already tried creating a limited Time Template. It doesn't work with the Advanced Tick Chart.
I'm just plotting a simple histogram of volume:
var vVolLast = 0;
function main() {
var vVol = volume();
if (close() < close(-1)) {
vVol *= -1;
setBarFgColor(Color.RGB(255,173,91), 0); // light orange
} else if (close() == close(-1)) {
if (vVolLast < 0) {
vVol *= -1;
setBarFgColor(Color.RGB(255,173,91), 0); // light orange
}
}
vVolLast = vVol;
return vVol;
}
Thanks
Comment