crash in script&&error inconsistent series calls

Posted By: James_Bolton

crash in script&&error inconsistent series calls - 06/11/14 11:24

Hello, everyone. I ran into a problem when I was testing a self-coded sript. Two messages which are "Crash in sript", "Error 041:Inconsistent series calls Bar 1119:5 - Bar 1120:4" popped up sequetially.
I scanned the script only to find three lines of series calls which are not nested in if statements.
Does anyone know what kind of mistake I have made?
Posted By: DdlV

Re: crash in script&&error inconsistent series calls - 06/11/14 12:53

Hi James_Bolton. Hard to say without seeing the script. If you're not willing to do that, how about a stripped-down version that still shows the problem? Stripping it down to the offending combination in itself sometimes reveals the issue, as does inserting debug printf's. Also, some indicators internally do series, so the problem could lie there.

HTH.
Posted By: dusktrader

Re: crash in script&&error inconsistent series calls - 06/13/14 10:28

The two errors do generally come together, so that's typical.

Check your 3 series call and ask yourself if they are called on every iteration (ie, once per Bar). There are other reasons a series call could be skipped during an iteration (not just an if statement). DdlV is also right -- check any indicators - usually the manual lists whether or not they have an internal series.
© 2024 lite-C Forums