Skip to content
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

Incorrect calculator SAR #235

Open
trevisanweb opened this issue May 15, 2021 · 2 comments
Open

Incorrect calculator SAR #235

trevisanweb opened this issue May 15, 2021 · 2 comments

Comments

@trevisanweb
Copy link

hi
i used SAR for calculator

when i comparison this number and SAR binance is incorrect

please help me

@quanxufeng
Copy link

quanxufeng commented May 26, 2021

I've met this problem too, so I would like to know how you'd fixed it.
really appreciate for it

@sivo1981
Copy link

Same with me. I think the starting point is the problem comparing with Tradingview pinescript where closing price is included.


	if bar_index == 1
		if close > close[1]
			isBelow := true
			maxMin := high
			result := low[1]
		else
			isBelow := false
			maxMin := low
			result := high[1]
		isFirstTrendBar := true
		acceleration := start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants