Difference between ArrayIsSeries and ArrayGetAsSeries

 
ArraySetAsSeries sets the value that changes how the indexing works in your arrays. ArrayGetAsSeries read the value. I use Set in my ResizeBuffer() code to expand arrays like indicator buffers.

My read is ArrayIsSeries tells you if the array is Time[], Open[], Close[], High[], Low[], or Volume[]. Possibly buffers set by ArrayCopyRates() and ArrayCopySeries(). I've never used it.

Try this code:

bool IsSeries(double A[]){ return( ArrayIsSeries   (A) ); }
bool AsSeries(double A[]){ return( ArrayGetAsSeries(A) ); }
:
double myA[];
Print(IsSeries(Close),IsSeries(myA)); // 10
Print(AsSeries(Close),AsSeries(myA)); // 10
ArraySetAsSeries(myA, true); // See ResizeBuffer
Print(IsSeries(Close),IsSeries(myA)); // 10
Print(AsSeries(Close),AsSeries(myA)); // 11
 
WHRoeder:
ArraySetAsSeries sets the value that changes how the indexing works in your arrays. ArrayGetAsSeries read the value. I use Set in my ResizeBuffer() code to expand arrays like indicator buffers.

My read is ArrayIsSeries tells you if the array is Time[], Open[], Close[], High[], Low[], or Volume[]. Possibly buffers set by ArrayCopyRates() and ArrayCopySeries(). I've never used it.

Try this code:



Ok, thanks. I got it.