Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSAR - How do I get Skender ParabolicSar to line up with TradingView PSAR? #1028

Closed
tanolan opened this issue Feb 18, 2023 · 0 comments
Closed
Labels
user support Help a user with their implementation

Comments

@tanolan
Copy link

tanolan commented Feb 18, 2023

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:

  1. I'm trying to use input values, .2, .2 and .2. This works on TradingView (below is ETH 1D, for 7/4/2017 UTC):
    var results = quotes.GetParabolicSar(0.2D, 0.2D, 0.2D)
    image

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.'

  1. To get around the exception, I'm using 0.1999999999 for initialFactor.
    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?

@tanolan tanolan added the bug Something isn't working label Feb 18, 2023
@DaveSkender DaveSkender added user support Help a user with their implementation and removed bug Something isn't working labels Feb 18, 2023
Repository owner locked and limited conversation to collaborators Feb 18, 2023
@DaveSkender DaveSkender converted this issue into discussion #1029 Feb 18, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
user support Help a user with their implementation
Projects
None yet
Development

No branches or pull requests

2 participants