Kismuz / btgym

Scalable, event-driven, deep-learning-friendly backtesting library
https://kismuz.github.io/btgym/
GNU Lesser General Public License v3.0
988 stars 261 forks source link

Workaround fix for #95 - order mixup on datas #120

Closed JaCoderX closed 5 years ago

JaCoderX commented 5 years ago

datas[] is created when we use cerebro.adddata() in sever.py but before we add the data, 2 dictionary are created on BTgymMultiData which mix the oredered data_config.

change dictionary declaration from {} to OrderedDict()

Kismuz commented 5 years ago

LGTM!