When I execute a sell instruction, but I am not long (eg)
Strategy.doSell("comment",Strategy.CLOSE,Strategy. THISBAR,1);
it appears processing for that daily bar is abruptly discontinued for that bar. Is there an error trap routine in EFS which will allow me to gain control at the interruption?
I did solve the problem by testing for Strategy.isLong()==true before executing the sell command - but would like to know if an error trap routine is available.
Strategy.doSell("comment",Strategy.CLOSE,Strategy. THISBAR,1);
it appears processing for that daily bar is abruptly discontinued for that bar. Is there an error trap routine in EFS which will allow me to gain control at the interruption?
I did solve the problem by testing for Strategy.isLong()==true before executing the sell command - but would like to know if an error trap routine is available.
Comment