I'm trying to use a V countdown indicator in the non price study and would like it to be centered in the lower pane instead of the diplay at top, can any one suggest changes I need to do to accomplish this task
Peter
Peter
/*********************************************************
By Alexis C. Montenegro for eSignal © December 2004
Use and/or modify this code freely. If you redistribute it
please include this and/or any other comment blocks and a
description of any changes you make.
**********************************************************/
debugClear();
function preMain() {
setPriceStudy(false);
setStudyTitle("V-Count2");
setCursorLabelName("V-Count");
setShowCursorLabel(true);
setStudyMax( 1 );
setStudyMin( -1 );
}
function main() {
var x = getInterval();
var n = parseInt(x);
var z = n-volume(0);
drawTextRelative(2,0,z,Color.cyan,null,Text.BOLD|Text.VCENTER,"Arial",16,"TVB");
// return z.toFixed();
}
/*********************************************************
By Alexis C. Montenegro for eSignal © December 2004
Use and/or modify this code freely. If you redistribute it
please include this and/or any other comment blocks and a
description of any changes you make.
**********************************************************/
debugClear();
function preMain() {
setPriceStudy(false);
setStudyTitle("V-Count2");
setCursorLabelName("V-Count");
setShowCursorLabel(false);
setStudyMax( 1 );
setStudyMin( -1 );
}
function main() {
var x = getInterval();
var n = parseInt(x);
var z = n-volume(0);
if (z > 15 ) drawTextRelative(2,0,z,Color.cyan,null,Text.BOLD|Text.VCENTER,"Arial",16,"TVB");
if (z < 15 ){
drawTextRelative(2,0,z,Color.red,null,Text.BOLD|Text.VCENTER,"Arial",16,"TVB");
Alert.playSound("bullet.wav");
}
// return z.toFixed();
}
/***********************************
Alexis C. Montenegro © February 2004
************************************/
function preMain() {
setPriceStudy(true);
setStudyTitle("Vol Countdown");
setCursorLabelName("Vol Countdown");
setShowCursorLabel(false)
}
function main() {
var x = getInterval();
var n = parseInt(x);
var z = n-volume(0);
if(z > 13) drawTextRelative(2,close(),z,Color.cyan,null,Text.BOLD|Text.VCENTER,"Arial",16,"TVB");
if(z < 13){
drawTextRelative(2,close(),z,Color.red,null,Text.BOLD|Text.VCENTER,"Arial",16,"TVB");
Alert.playSound("buzz.wav");
}
return z+" ";
}
Comment