hello,
I am trying to get this efs study to work have tried everything
I am wanting vertical lines for selected time plots ie; 4am, 930am, 935am, 940am, 1130am, 1pm
It keep returning error line 57 1,
I am using eSignal 12 latest release 2016
var vLastAlert = -1;
function preMain() {
setPriceStudy(true);
setStudyTitle("Time Lines");
}
function main() {
if (
(hour(0)*100)+minute(0) == 400
) onAction1();
if (
(hour(0)*100)+minute(0) == 930
) onAction2();
if (
(hour(0)*100)+minute(0) == 935
) onAction3();
if (
(hour(0)*100)+minute(0) == 940
) onAction4();
if (
(hour(0)*100)+minute(0) == 1130
) onAction5();
if (
(hour(0)*100)+minute(0) == 1600
) onAction6();
return null;
}
function postMain() {
}
function onAction1() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.aqua, "line"+rawtime(0));
vLastAlert = 1;
}
function onAction2() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.paleyellow, "line"+rawtime(0));
vLastAlert = 2;
}
function onAction3() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 3;
}
function onAction1() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 4;
}
function onAction2() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 5;
}
function onAction3() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.red, "line"+rawtime(0));
vLastAlert = 6;
}
I am trying to get this efs study to work have tried everything
I am wanting vertical lines for selected time plots ie; 4am, 930am, 935am, 940am, 1130am, 1pm
It keep returning error line 57 1,
I am using eSignal 12 latest release 2016
var vLastAlert = -1;
function preMain() {
setPriceStudy(true);
setStudyTitle("Time Lines");
}
function main() {
if (
(hour(0)*100)+minute(0) == 400
) onAction1();
if (
(hour(0)*100)+minute(0) == 930
) onAction2();
if (
(hour(0)*100)+minute(0) == 935
) onAction3();
if (
(hour(0)*100)+minute(0) == 940
) onAction4();
if (
(hour(0)*100)+minute(0) == 1130
) onAction5();
if (
(hour(0)*100)+minute(0) == 1600
) onAction6();
return null;
}
function postMain() {
}
function onAction1() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.aqua, "line"+rawtime(0));
vLastAlert = 1;
}
function onAction2() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.paleyellow, "line"+rawtime(0));
vLastAlert = 2;
}
function onAction3() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 3;
}
function onAction1() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 4;
}
function onAction2() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.lightgrey, "line"+rawtime(0));
vLastAlert = 5;
}
function onAction3() {
drawLineRelative(0, 0, 0, 999999, PS_DOT, 1, Color.red, "line"+rawtime(0));
vLastAlert = 6;
}
Comment