Pad and align | 32 vs 64 bit version


#1

Dear all,

Consider the following.

  1. Two versions of AB
    1
    2
  2. On left the 32 6.20.1 on the right 64 6.27.1 version.
  3. Two symbols DAN and SPY (Norgate) ( ticked the 'Pad and align' option )
  4. Seems that ADX() for the 64 bit version gives a -nan though not for the 32 one.

Any ideas ?

AddColumn( ADX(10),"ADX", 1.4);
AddColumn( RSI(10),"RSI", 1.4);

Filter = 1;//Status("Lastbarinrange");

#2

It got nothing to do with Pad and align.

AmiBroker 64-bit of most recent development cycle uses new Microsoft Visual Studio 2017 compiler.
See 6.25 for example where there was issue with array division being fixed (because of that new compiler).

Since your 6.20 32-bit version (with old compiler) runs the code fine if DAN is selected it looks like another VC++ 2017 compiler issue in 64-bit version.

if you remove the quotes being O = H = L = C at the start of DAN price fields then DAN will show non-NAN in 64-bit again. So it seems to be compiler issue when there are such bars.

10427