anandanand84/technicalindicators

Incorrect calculator SAR

trevisanweb opened this issue · 2 comments

hi
i used SAR for calculator

when i comparison this number and SAR binance is incorrect

please help me

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

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