Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Simple MA Cross Over Strategy #127

Open
JMA6971 opened this issue Jul 28, 2019 · 1 comment
Open

Simple MA Cross Over Strategy #127

JMA6971 opened this issue Jul 28, 2019 · 1 comment

Comments

@JMA6971
Copy link

JMA6971 commented Jul 28, 2019

back testing the example strategy in the documentation produces the error:

File "test_strat.py", line 8, in on_bar
bars = instrument.get_bars(window=20)
TypeError: get_bars() got an unexpected keyword argument 'window'

@ChairmanMeow
Copy link

it should be 'lookback'
the get_bars method does not have a windows param

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

No branches or pull requests

2 participants