-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Issue]: ValueError: Invalid frequency value. The only frequencies supported frequencies are: Frequency.DAILY and Frequency.MIN_1 #128
Comments
Hi! The whole idea was to use either 1 minute or daily frequency for for the simulation of the backtest, because some of the additional functionality available in the project might not work as desired when using e.g. 15 min frequency. One of the examples would be the Nevertheless, thanks for reaching out with this issue, we will investigate further if it is something we will be able to work on in the future releases, as many changes were introduced already since the initial design. And in the meantime - what is exactly your use case? Do you have 1 minute frequency data or the issue is that you simply have access only to the 5 / 15 minutes bars? If you give us some more details maybe we can find a workaround. |
Hello! Thanks for you response!
Regards |
Hi,
So in general - new order would be created only once per hour and data used for this purpose would be the 30 mins bars. 1 minute data would be needed to just feed the backtest trading session, to run the whole backtest, but will not be used to actually trade with such frequency. Regarding the "non-time" bars - currently all of our events that are used to generate orders are time based events. |
Hello Karolina!
That's basically the ideia!
Can you provide me that example ? I would appreciate.
I also suggest you add it to the examples at guthub so other people can use
it as well.
Regards
Fernando
Em seg., 30 de out. de 2023 13:24, Karolina Cynk ***@***.***>
escreveu:
… Hi,
Thanks for the details. From what I understand from your description I
believe the following setup would work for you, is that right?
- 1 minute data bars used for the backtest flow
- 30 minutes data bars used to compute signals / orders
- signals / orders computed every 1 hour
So in general - *new order would be created only once per hour and data
used for this purpose would be the 30 mins bars*. 1 minute data would be
needed to just feed the backtest trading session, to run the whole
backtest, but will not be used to actually trade with such frequency.
If this is what you were looking for we can create a demo script with some
sample strategy working like that, in case it's still different let us know.
Regarding the "non-time" bars - currently all of our events that are used
to generate orders are time based events.
The simplest thing that can be done is the following: using 1 minute bars
for backtest flow, scheduling the orders calculation every 30 minutes and
computing your non-time bars to make a decision every 30 minutes.
We will look into this more and see if we can provide some example that
would make sense.
—
Reply to this email directly, view it on GitHub
<#128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BADKUWYDDLXK6AOMA5WXI7LYB7ICLAVCNFSM6AAAAAA5KZNUM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGU3TQMRWGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Fernando, we added a demo with additional notes on how to set the frequency separately for bars and separately for orders calculation in our tutorials: I hope this fits your requirements, but if you have more questions please let us know! |
Summary
Hello there!
I am testing the QF-lib framework and when I tried load Frequency.5M, Frequency.15M and others, I got the following message: "Invalid frequency value. The only frequencies supported frequencies are: Frequency.DAILY and Frequency.MIN_1".
I was wondering why the backtesting tool has this limitation? Is there a way to run a backtest using other intraday frequencies?
Thanks !
The text was updated successfully, but these errors were encountered: