qlib
qlib copied to clipboard
Fix the empty price_s case and self.instruments in SBBStrategyEMA.
Description
- Deal with price_s.empty:
- Deal with instruments is List
Motivation and Context
How Has This Been Tested?
- [x] Pass the test by running:
pytest qlib/tests/test_all_pipeline.py
under upper directory ofqlib
. - [ ] If you are adding a new feature, test on your own test scripts.
Screenshots of Test Results (if appropriate):
- Pipeline test:
- Your own tests:
Types of changes
- [x] Fix bugs
- [ ] Add new feature
- [ ] Update documentation
@Fivele-Li @you-n-g, Looks like the pylint has some problems, I think that is not my code's problem. Can you guys give me some suggestions to fix it?