Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created May 22, 2024 16:38
Show Gist options
  • Save quantra-go-algo/1ceaba05bd296e071b25c6ea72a9e3f3 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/1ceaba05bd296e071b25c6ea72a9e3f3 to your computer and use it in GitHub Desktop.
# Obtain the prediction feature with the above function
data['y'] = triple_barrier_method(data, holding_period=10, upper_lower_multipliers=[2, 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment