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

Enter a position on open price and exit on close price #432

Closed
shashank-yadav opened this issue May 22, 2021 · 3 comments
Closed

Enter a position on open price and exit on close price #432

shashank-yadav opened this issue May 22, 2021 · 3 comments
Labels

Comments

@shashank-yadav
Copy link

Is it possible to to enter a position on the open price of t+1 and exit on the close price of the same day in the backtesting engine. There is an argument called ‘deal_price’ but that is used nowhere

@you-n-g
Copy link
Collaborator

you-n-g commented May 22, 2021

Hi, @shashank-yadav
It will a little awkward to implement your feature in the current system.

Please pay attention to #408 for refracting the trading framework.
You can implement your feature much easier in this new framework

If you want this feature in the current system, you can implement your own executor https://github.com/microsoft/qlib/blob/main/qlib/contrib/online/executor.py .

@arisliang
Copy link
Contributor

Curious on this feature as well. The PR mentioned is replaced by #438.

@github-actions
Copy link

This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants