If I take the EFrontier example from your blog and set the PRELOAD flag, it gives me
Error 30 - check lookback, settings, asset order. It's caused by this line:
If I change it to
Everything works fine. If I increase the number to 1622, I get:
Error 047 - not enough bars (1621 missing)So my questions are:
- Is it supposed to behave like this? I.e. throw the error if you set LookBack = NumBars.
- Shouldn't the Error 047 say 1 bar missing instead of 1621?