Closed Jaydyn99 closed 4 years ago
Your best bet is to plot the data (freqtrade plot-dataframe --indicators2 fastk fastd <...>
) with the indicators and compare the values to tradingview.
Ta-lib is known to "sometimes" differ from tradingview. It's not always the fault of ta-lib, as tradingview does not implement all indicators according to the original specs either.
Now i'm not certain about stochF as i don't use that personally - but it's very well possible that different default-parameters are used (best specify these manually / explicitly)- or that the startup of the indicator is calculated differently, leading to slightly different results.
StochRSI for example is known to differ (wildly) between tradingview and ta-lib, maybe something similar happens with stochf.
For most indicators, there's other libraries (finta, bta-lib, ...) which provide a similar implementation - however unfortunately, for these the same potential problem applies - noone can guarantee if all indicators of these libraries align 100% to tradingview or not.
This is unfortunately something we're suffering from,but don't really have a solution other than pointing to different libraries, or sometimes implement an indicator ourselfs.
The real problem is - tradingview is seen as "the standard" - but what if they got it wrong - should all other libraries change their (formally correct) implementations ... that's going to break other stuff, so will result in different problems.
Would you happen to know how to change values of fastk and fastd? I have just noticed the TA-Lib is saying their values are 5 and 3.. whereas the default on my charting programs is 14 and 3... That might be my problem.
well - something around the below probably:
stoch_fast = ta.STOCHF(dataframe, fastk_period=5, fastd_period=3, fastd_matype=0)
dataframe['fastd'] = stoch_fast['fastd']
dataframe['fastk'] = stoch_fast['fastk']
source (search for STOCHF)
Thank you for your help sir.. Turns out the problem was just the default being different to charting platforms.
Step 1: Have you search for this issue before posting it?
Yes
Step 2: Describe your environment
python -V
)pip freeze | grep ccxt
)git log --format="%H" -n 1
)Step 3: Describe the problem:
My libs are
My populate indicators is
My populate buy trend is
When i compare the trades it makes on dry run, only about 1 out of 10 follow these parameters. Making seemingly random trades. The only rule it always adheres to is rsi parameters.. >30&<50. Most trades are entered well below <20 fastk...
I have run
and getting no 'Wrong!!' message.
I have a trading background with very minimal coding experience. Forgive me if I'm missing something very simple here. Are the values in the libraries possibly not lining up the values I'm looking at in trading view charts? Am I using the wrong libraries somehow?
Thanks