Lastbaronchart will never = TRUE in a signal that also possesses "open next bar" anywhere in the code.
I have to use "open next bar". How might I detect the last bar on chart??
No error message will be generated until you block out the last line.
Code: Select all
if LastBarOnChart then begin
if open next bar > 0 then value99=1;