-
Hi all, I've been reading the documentation and I've been able to run the EMACross example strategy succesfully, loading the input tick data as indicated in https://docs.nautilustrader.io/user_guide/loading_external_data.html However, when I tried to load as input data, instead of tick data, using M1 bars instead, everything seems to work fine (I can read the bars, the bars are served by the engin to the strategy, the strategy receives the bars in the on_bar() method, and the strategy seems to work). However, when the strategy triggers a signal and tries to submit an order, the order is rejected with the reason 'no market data', see output:
I cannot find any reference in the documention about what does it mean the reason 'no market for ...' I guess that I shoud change something in the configuration, I've tried thousands of combinations but nothing works. Does anybody has a clue about what is going on? Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @bbergua
Detailed example for converting bar data to Tick is at following link. Let me know if need more information. |
Beta Was this translation helpful? Give feedback.
Hi @bbergua
I think you have to convert the bars to TradeTick to function it as expected. Also this will be required to use the internal aggregation for higher timeframes. Input dataframes should have datetime index.
Detailed example for converting bar data to Tick is at following link.
https://github.com/nautechsystems/nautilus_trader/blob/395d9c4d960962b77478baf20fc687a8fee8c3eb/tests/performance_tests/test_perf_backtest.py
Let me know if need more information.