-
I'm working through the low-level backtest tutorial and I'm having trouble with configuring the strategy, particularly the bar_type declaration. I think 'from nautilus_trader.model.data import BarType' should be included with the other import statements, but even when adding this I get the following error:
I can't determine if the issue is with parsing the argument to BarType or if its something else. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You should use BarType.from_str("ETHUSDT.BINANCE-250-TICK-LAST-INTERNAL") |
Beta Was this translation helpful? Give feedback.
-
Hi @ViN807 Thanks for helped there @OnlyC. I also checked the entire codebase and thankfully we don't try to pass a string to the constructor anywhere else. You need to use the |
Beta Was this translation helpful? Give feedback.
You should use BarType.from_str("ETHUSDT.BINANCE-250-TICK-LAST-INTERNAL")