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

Help on Example #13

Open
wlblount opened this issue Apr 28, 2015 · 0 comments
Open

Help on Example #13

wlblount opened this issue Apr 28, 2015 · 0 comments

Comments

@wlblount
Copy link

For the pythonically challenged... could someone please modify the example notebook to use 4 different buy, cover, short,and sell rules and to show the backtest fuction the long way..

pybacktest.Backtest(self, dataobj, name='Unknown', signal_fields=('buy', 'sell', 'short', 'cover'), price_fields=('buyprice', 'sellprice', 'shortprice', 'coverprice'))

with 'dataobj', name, signal_fields', and 'price_filelds'. the 'locals()' function is making it hard for me to figure this out.. thanks in advance.

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