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

update MADR #473

Merged
merged 3 commits into from
Aug 17, 2024
Merged

update MADR #473

merged 3 commits into from
Aug 17, 2024

Conversation

stash86
Copy link
Contributor

@stash86 stash86 commented Aug 17, 2024

  • Add option to use different MA than SMA
  • change sma and std into variables instead of a dataframe columns, so no need to drop them later

else:
df["stdcenter"] = ta.SMA(df.rate, timeperiod=(length * stds))

std = ta.STDDEV(df.rate, timeperiod=(length * stds))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use std_series here instead?

std and stds is VERY similar - so i had to double-check what's what ... (same for ma, really).

Copy link
Member

@xmatthias xmatthias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one! 💯

LGTM 👍

@xmatthias xmatthias merged commit 26b0090 into freqtrade:main Aug 17, 2024
25 checks passed
@stash86 stash86 deleted the madr branch August 17, 2024 14:20
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

Successfully merging this pull request may close these issues.

2 participants