Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created October 11, 2023 16:46
Show Gist options
  • Save quantra-go-algo/90aa7c4f2723db0bb92d66990be8becb to your computer and use it in GitHub Desktop.
Save quantra-go-algo/90aa7c4f2723db0bb92d66990be8becb to your computer and use it in GitHub Desktop.
# Compute the DC indicators
data = directional_change_events(data, theta=0.004)
# Drop NaN values
data.dropna(inplace=True)
# Present the data
data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment