How do I get the SAR value in an EA that is plotted to the chart?

[Deleted]  
I would like to get the current SAR value that is plotted to the chart.

double SARCurrent = iSAR(NULL, 0, SARStep, SARMaximum, 0);

This call doesn't seem to get this value.

Any help would be appriciated.

Thank you.
 
Perhaps using the Symbol() function without arguments rather than NULL will work?
[Deleted]  
NULL just uses the current symbol of the attached chart. I've tried it both ways, actually and they behave the same. I am getting a value, it's just not the value that is plotted to the chart.
 
Killings,

be sure "SARStep" and "SARMaximum" are double variables.