Hi
Can drawLineRelative() be used in a non-price study?
I am using the following inside a function in a non price study:
for(var i = -numbBar+1; i <= 0; i++) {
if(show2) {
if(period1 != 0) val1 = value1;
if(period2 != 0) val2 = value2;
}
if(showSum && (period2 != 0)) valSum = val1+value2;
drawLineRelative(i, val1, i, val1, PS_SOLID, 1, Color.red, 100);
debugPrintln(val1, " ", val2, " ", valSum, " ", i,"x ");
}
The correct values of val1, val2 and valSum are being calculated but nothing is printing? I have no idea why. Any suggestions anyone may be able to offer would be greatly appreciated. Thank you very much.
Regards,
Jane
Can drawLineRelative() be used in a non-price study?
I am using the following inside a function in a non price study:
for(var i = -numbBar+1; i <= 0; i++) {
if(show2) {
if(period1 != 0) val1 = value1;
if(period2 != 0) val2 = value2;
}
if(showSum && (period2 != 0)) valSum = val1+value2;
drawLineRelative(i, val1, i, val1, PS_SOLID, 1, Color.red, 100);
debugPrintln(val1, " ", val2, " ", valSum, " ", i,"x ");
}
The correct values of val1, val2 and valSum are being calculated but nothing is printing? I have no idea why. Any suggestions anyone may be able to offer would be greatly appreciated. Thank you very much.
Regards,
Jane
Comment