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 the strategy use data from multiple timeframes? #21

Open
frostRed opened this issue Mar 23, 2023 · 2 comments
Open

Can the strategy use data from multiple timeframes? #21

frostRed opened this issue Mar 23, 2023 · 2 comments

Comments

@frostRed
Copy link

frostRed commented Mar 23, 2023

I read the source code of the example, and it seems that a trader is bound to a strategy, and a strategy can only receive one data source. So is barter unable to implement strategies like triple screen?

https://www.quantifiedstrategies.com/alexander-elder-triple-screen-strategy/

@frostRed
Copy link
Author

Or the strategy that needs to use the filter also needs to be able to get other data sources.

@SeanEClarke
Copy link

I might look to pick this up... raised barter-rs/barter-data-rs#40 to add a TimeFrame element to the Candle struct

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

2 participants