In OnBarUpdate() I have the following 2 statements:
Print("1. PSar for last bar is : " + ParabolicSAR(psarAcc,psarMaxStep,psarStep)[1].ToString());
Print("2. PSar for last bar is : " + ParabolicSAR(.02,.2,.02)[1].ToString());
In the variables section:
private double psarAcc = 0.02; // Default setting for PsarAcc
private double psarMaxStep = 0.2; // Default setting for PsarMaxStep
private double psarStep = 0.02; // Default setting for PsarStep
So the same variables being passed. And yet, here is a sample output:
1. PSar for last bar is : 396.7
2. PSar for last bar is : 395.308
1. PSar for last bar is : 396.9
2. PSar for last bar is : 395.48152
1. PSar for last bar is : 396.9
2. PSar for last bar is : 395.7549984
And by the way, the chart display with the Parabolic SAR indicator with same parameters has no correlation to any of the numbers above.
Why 3 separate results for each instance ?

Comment