I been trying to draw Today's Volume on Bottom of the chart, but it seems like code that I've done seem to repeat multiple time on the bottom of the screen. How would I have just one and on Dead center , bottom of the chart? Second, how would I do it if I want to draw on bottom of X-Axis, where Time and Days are.
Thanks,
Billy
Here is my code: Please direct me to right direction. Thanks.
function preMain() {
setPriceStudy(true);
setComputeOnClose();
}
// initialization flag
var bInit = false;
// global variables for series objects
var xVolume = null;
function main(myAlerts) {
if (bInit == false) { // initialization routine occurs only once.
xVolume = volume(inv("D"));
bInit = true;
}
var tVolume = xVolume.getValue(0);
//Drawing
drawText(tVolume , BottomRow1, Color.blue, Text.BOLD);
}
Thanks,
Billy
Here is my code: Please direct me to right direction. Thanks.
function preMain() {
setPriceStudy(true);
setComputeOnClose();
}
// initialization flag
var bInit = false;
// global variables for series objects
var xVolume = null;
function main(myAlerts) {
if (bInit == false) { // initialization routine occurs only once.
xVolume = volume(inv("D"));
bInit = true;
}
var tVolume = xVolume.getValue(0);
//Drawing
drawText(tVolume , BottomRow1, Color.blue, Text.BOLD);
}
Comment