Dang, now I see it, so 'PP1[LookBack - 1][1] = priceClose();' etc.
Thank you JCL!

A question about the array shift procedure.
So far, most relevant code examples I've seen, suggest the same loop approach, but isn't there a more efficient approach?
I was thinking about something like:

Code
for(j = 0; j <= 4; j++)
    {
    memmove(&PP1[0][j], &PP1[1][j], 1999 * sizeof(PP1[0]));
    }



but I wasn't able to find a working string.h header file, so I'm not sure if this will do the trick more efficiently.

Last edited by Grant; 09/20/21 17:00.