-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
PLUS_DI gives different results #266
Comments
What are the values of the indicator in the nearest candles on tradingview? Isn't they are just shifted by 1 (or -1) candle? |
@hroff-1902 I don't think so. Please look at the plots below: Also, plots very clearly shows that |
if you use ta-lib with freqtrade, make sure to apply the decimal patch (to the underlying C library) as otherwise it has some trouble with the small numbers BTC uses. Also make sure you have enough history - iirc plus_di uses smoothening of TR, so with 14, 14 as parameters, you'll need 28 candles to get "good" results (but i'm not 100% sure on the formula). this would explain why it "seems" correct(er) a bit later |
this is a working python code adx, +di, -di embedded, reference from: https://medium.com/codex/does-combining-adx-and-rsi-create-a-better-profitable-trading-strategy-125a90c36ac`import pandas as pd def get_adx(high, low, close, lookback):
` df = pd.read_csv('1D/XU100-1D.csv') |
Hello!
I use
ta-lib
in thefreqtrade
bot. When I plot indicators, It seems thatPLUS_DI
indicator in theta-lib
and DMI with ADX smoothing = 14 and DI length = 14 on the tradingview.com give different results.E.g.:
ETHBTC 14 May 19, 01:00(UTC)
PLUS_DI
intradingview.com
: 5.549ETHBTC 14 May 19, 01:00(UTC)
PLUS_DI
inta-lib
: 3.070So, how can I get the
ta-lib
DMI indicator in thefreqtrade
strategy with the same settings as on thetradingview.com
?The text was updated successfully, but these errors were encountered: