From ec302cebd6489bc24bdab38b5bc29a6aa9d208eb Mon Sep 17 00:00:00 2001 From: Jason Pan <40668464+awwesomeman@users.noreply.github.com> Date: Sun, 31 Oct 2021 01:17:14 +0800 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 250c2b8..d235159 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # vectorbt_visualization This project aims to visualize vectorized back testing results with interactive plot and other detailed information.. + +# 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() + +``` +![image](https://user-images.githubusercontent.com/40668464/139542711-ca77cb53-9696-4fdd-a2d5-27cf6f4c6a6d.png)