I'm trying to draw a vertical line at 10:00am on my chart of the YM futures.
I built the following EFS, and it checks out w/no syntax errors, but when I load it, it crashes.
Any suggestions?
JOHN
======================================
function preMain() {
setPriceStudy(true);
setStudyTitle("Time Bars");
setComputeOnClose(true);
}
function main() {
if ( hour(0) == 10 && minute(0) == 0 )
drawLineRelative(0, high(0)+1000, 0, 0, PS_SOLID, 1, Color.blue);
return null;
}
I built the following EFS, and it checks out w/no syntax errors, but when I load it, it crashes.
Any suggestions?
JOHN
======================================
function preMain() {
setPriceStudy(true);
setStudyTitle("Time Bars");
setComputeOnClose(true);
}
function main() {
if ( hour(0) == 10 && minute(0) == 0 )
drawLineRelative(0, high(0)+1000, 0, 0, PS_SOLID, 1, Color.blue);
return null;
}
Comment