Hi,
The study below works fine in eSignal 10.6; but the Vertical Line is not displayed when I load the study in eSignal 12. Any ideas?
Thanks,
Paul
function preMain(){
setPriceStudy(true);
setStudyTitle("US Futures Day Open - Vertical Line");
setCursorLabelName("Time");
setComputeOnClose();
}
var Cntr = 0;
var h;
var m;
var s;
var z;
function main() {
if(getBarState()==BARSTATE_NEWBAR) {
Cntr += 1;
}
h = (getHour()*10000);
m = (getMinute()*100);
s = (getSecond()*1);
z = h+m+s;
if(z==230000) {
// drawTextRelative(0, 0, " D ", Color.cyan, Color.white, Text.FRAME | Text.BOLD | Text.RELATIVETOBOTTOM | Text.CENTER, "Arial", 10, "Time"+Cntr);
drawLineRelative(0, 0, 0, (1*Infinity), PS_SOLID, 2, Color.cyan, "Time"+Cntr);
}
return;
}
The study below works fine in eSignal 10.6; but the Vertical Line is not displayed when I load the study in eSignal 12. Any ideas?
Thanks,
Paul
function preMain(){
setPriceStudy(true);
setStudyTitle("US Futures Day Open - Vertical Line");
setCursorLabelName("Time");
setComputeOnClose();
}
var Cntr = 0;
var h;
var m;
var s;
var z;
function main() {
if(getBarState()==BARSTATE_NEWBAR) {
Cntr += 1;
}
h = (getHour()*10000);
m = (getMinute()*100);
s = (getSecond()*1);
z = h+m+s;
if(z==230000) {
// drawTextRelative(0, 0, " D ", Color.cyan, Color.white, Text.FRAME | Text.BOLD | Text.RELATIVETOBOTTOM | Text.CENTER, "Arial", 10, "Time"+Cntr);
drawLineRelative(0, 0, 0, (1*Infinity), PS_SOLID, 2, Color.cyan, "Time"+Cntr);
}
return;
}
Comment