The CopyBuffer Array of SAR has different values than the printed iSAR

 

... let me explain.

I want to use the iSAR.

My Code looks kind of like this:

double asar[];

int OnInit(){

    ArrayResize(asar,4);
    ArraySetAsSeries(asar,true);
    sar = iSAR(_Symbol, timeframe, sarStep, sarMaximum);   // aktueller SAR-Wert
}

int OnTick(){
   CopyBuffer(sar,0,1,2,asar);
   ObjectCreate(0,"SAR"+TimeToString(TimeCurrent(),TIME_DATE|TIME_MINUTES),OBJ_ARROW_THUMB_DOWN,0,TimeCurrent(),asar[0]);
}

The Result is that my values are different than the printed ones. Somebody has ideas? See in the Picture.
The Swapping is one to late as well slightly the values are different


Files:
SAR_problem.png  27 kb