How to use TradingView Stoch (14, 1, 3) with GetStoch of this library #1012
SWSSolutions
started this conversation in
Help and support
Replies: 1 comment 3 replies
-
|
Here’s a few things to try:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use several indicators from this library and all work fine except one, Stoch. TradingView use the defaults K = 14, D = 1, Smooth = 3 and for some reason I get different results. It looks likes GetStoch(14, 3, 1) comes closest but most of them during the time period are wrong. Any suggestions?
What have I tried:
How to reproduce
Getting data from api.binance.com (https://api.binance.com/api/v3/klines?symbol=BNBBUSD&interval=1m&limit=1000&startTime=1674801170223&endTime=1674844370223);
Convert them to Quote
Use GetStoch(14, 3, 1) (or any other setting like GetStoch(14, 1, 3), GetStoch(14, 3, 3) etc)
Go to: https://www.binance.com/en/trade/BNB_BUSD?theme=dark&type=spot (or https://www.tradingview.com/chart/DVyPeqdv/?symbol=BINANCE%3ABNBBUSD)
Set the time-frame on 1 minute and set the time to UTC;
Compare the results
When using the link, the last candle (open on 1674844320000 - Fri Jan 27 2023 18:32:00 GMT+0000) must have a stoch of: k:60 d:80) according to TradingView.
With GetStoch(14, 3, 3) it has a toch of: k:83.33 d:89.44
With GetStoch(14, 1, 3) it has a toch of: k:83.33 d:83.33
With GetStoch(14, 3, 1) it has a toch of: k:70 d:83.33
So i suppose i'm doing something wrong, any directions?
Beta Was this translation helpful? Give feedback.
All reactions