Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Triple Barrier Method Labelling using backtesting.py #913

Unanswered
bhavithran1 asked this question in Q&A
Discussion options

Guys, I know that this library is not optimized for this problem so I would like some help on this matter.

  1. A share/lot is bought at every timestep.
  2. Attach a sl/tp to the orders
  3. Have a time limit on each order placed so no order is opened for a long time

The above steps are very easy for me to execute on my own.

However, the later steps are more complicated,

If an order has hit sl , how do I classify the order as a potential short buy?
I want the results in a dataframe with columns [timestep, signal]

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /