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

What is the format of dict in pybacktest.Backtest #25

Open
fightthepower opened this issue Oct 2, 2019 · 0 comments
Open

What is the format of dict in pybacktest.Backtest #25

fightthepower opened this issue Oct 2, 2019 · 0 comments

Comments

@fightthepower
Copy link

fightthepower commented Oct 2, 2019

Hey thank you for this simple backtester I want to do a backtest for a multiple indicator strategy

Eg:
Buy: Short_ SMA > Long_SMA & RSI < 20 & Short_EMA > Long_EMA
Sell: Short_ SMA < Long_SMA & RSI > 80 & Short_EMA < Long_EMA

I have gone through the example code and I have a confusion in here bt = pybacktest.Backtest(locals(), 'ma_cross'). Instead of using locals() I want to use my own custom dict. What format as well as values should I use in this dict?

Thank you for your help

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