OK. One more question on this.
Can bar skipping not be used together with for example the ATR indicator?
Manual says "The function internally creates series when TimeFrame is > 1, and must then be called in a fixed order in the script."
If I use the snippet above together with something simple like
if( price[0] > ATR(20 )) {
enterLong();
}
my script stops execution with a message along these lines
Bar 1212: 4 - Bar 1213: 1
I guess ATR does not like skipping bars?