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

Envelope/strategy_bitget.py : le calcul de la sma ne prend pas en compte la variable src #16

Open
YVINEE opened this issue Nov 26, 2023 · 0 comments

Comments

@YVINEE
Copy link

YVINEE commented Nov 26, 2023

par défaut on a :
src="close"
si on met src = "ohlc4"
alors ohlc4 n'est pas pris en compte dans le calcul de la sma car :
df['ma_base'] = ta.trend.sma_indicator(close=df['close'], window=base_window).shift(1)
il faut remplacer ce code par :
df['ma_base'] = ta.trend.sma_indicator(close=src, window=base_window).shift(1)

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

1 participant