hyu2707 / goquantdata

python based trading engine for equities and cryptocurrency
1 stars 3 forks source link

[P0] backtest need to support customized value plot #25

Closed hyu2707 closed 4 years ago

hyu2707 commented 4 years ago

tested in local, it can create a new plot, for example:

self.record_metric("position"+Universe[0], positions.get(Universe[0], {'qty': 0}).get('qty'), figure_group=1)
self.record_metric("position"+Universe[1], positions.get(Universe[1], {'qty': 0}).get('qty'), figure_group=1)

it will plot both symbols position in the same figure. It also can plot the two position in different figure by set different figure_group