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

Can I choose other Buy/Sell prices rather than Open/Close prices? #1085

Open
htluandc2 opened this issue Nov 3, 2023 · 0 comments
Open

Can I choose other Buy/Sell prices rather than Open/Close prices? #1085

htluandc2 opened this issue Nov 3, 2023 · 0 comments

Comments

@htluandc2
Copy link

Expected Behavior

Hi there, I use backtesting.py for my project. I want to adjust Buy/Sell price by rolling average of Open/Close price, with conditional: new Buy/Sell price in range of High/Low price. How can I do it ?

Actual Behavior

Maybe I can make a new Open price column in Pandas that is calculated by rolling average of actual Open price. Then I run backtesting.py with that. But my candlestick sticks chart look like wrong. I also research about Order class to find other solution.

Additional info

  • Backtesting version: 0.3.3
  • bokeh.__version__: 3.2.0
  • OS: Windows
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