How do I retrieve the latest Parabolic SAR value ?

 

I have this code:

double dSAR = iSAR(NULL,0,0.02,0.2,0);

Comment("Last SAR Value = ", DoubleToStr(dSAR,5),"\n", "SAR 0 : ",iSAR(NULL,0,0.02,0.2,0) );

The SAR value from the iSAR function shows on the comment as 1.36710, whereas the latest SAR indicator value on screen is 1.36798

It is the value of the latest SAR indicator on the screen that I want to get. How do I achieve this ?

Thankyou

 
MickGlancy:

I have this code:

double dSAR = iSAR(NULL,0,0.02,0.2,0);

Comment("Last SAR Value = ", DoubleToStr(dSAR,5),"\n", "SAR 0 : ",iSAR(NULL,0,0.02,0.2,0) );

The SAR value from the iSAR function shows on the comment as 1.36710, whereas the latest SAR indicator value on screen is 1.36798

It is the value of the latest SAR indicator on the screen that I want to get. How do I achieve this ?

Thankyou


It now seems to be showing the correct value but I don't think I have done anything different.

Is this SAR function reliable or is there something else I am missing ?

 
MickGlancy:


It now seems to be showing the correct value but I don't think I have done anything different.

Is this SAR function reliable or is there something else I am missing ?

Did you ever find a solution to this? I'm having the same problem.