2021-10-31 00:47:46 +08:00
|
|
|
# vectorbt_visualization
|
|
|
|
|
This project aims to visualize vectorized back testing results with interactive plot and other detailed information..
|
2021-10-31 01:17:14 +08:00
|
|
|
|
|
|
|
|
# Demo code
|
|
|
|
|
|
|
|
|
|
``` python
|
|
|
|
|
# ma strategy
|
|
|
|
|
trade = My_Strategy()
|
|
|
|
|
trade.get_stock('2303',start='2021-01-01',end='2021-07-15',freq='30T')
|
|
|
|
|
trade.MA()
|
|
|
|
|
df = trade.run()
|
|
|
|
|
trade.plot()
|
|
|
|
|
|
|
|
|
|
```
|
2021-10-31 01:17:42 +08:00
|
|
|

|
|
|
|
|
|
2021-10-31 01:17:14 +08:00
|
|
|

|