This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
PSAR - How do I get Skender ParabolicSar to line up with TradingView PSAR? #1028
Labels
user support
Help a user with their implementation
Hello, I apologize this is not really a bug, more of a question. All other Skender indicators have been great, but I'm trying to get ParabolicSar.Sar, with the below input values, to line up to TradingView's PSAR. Here is the input data I'm using from Trading View, ETH 1D:
COINBASE_ETHUSD, 1D - For Skender Question.csv
I have two questions:
var results = quotes.GetParabolicSar(0.2D, 0.2D, 0.2D)
But when I try to use 0.2, 0.2 and 0.2 with Skender ParabolicSar, I get this error:
System.ArgumentOutOfRangeException: 'Initial Step must be greater than 0 and less than Max Acceleration Factor for Parabolic SAR. (Parameter 'initialFactor')
Actual value was 0.2.'
var results = quotes.GetParabolicSar(.2D, .2D, .1999999999D)
But when use this, my PSAR values aren't close. ETH 1D For 7/4/2017:
TradingView returns 295.96
Skender returns 242.24
I'm using the Trading View ETH 1D OHLC data as input, so these should be close, but Trading View PSAR and Skender PSAR are really off.
What am I doing wrong here? Or how can I get Skender to lineup with Trading View for PSAR?
The text was updated successfully, but these errors were encountered: