-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* strategy增加lifecycle * 保留最后一个回测周期仅供交易使用,不调用`predict` * Security获取股票列表时,如果不调用`types`,将获取股票列表,调用`types()`不传参数将获取带指数、股票的列表。
- Loading branch information
1 parent
2d65ac9
commit c2da9a7
Showing
10 changed files
with
1,985 additions
and
1,318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<mxfile host="app.diagrams.net" modified="2023-11-02T09:04:11.746Z" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0" etag="PswDgAD1aaHq92OMJ1pJ" version="21.8.1" type="device"> | ||
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1"> | ||
<mxGraphModel dx="794" dy="769" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="I5vgsRcotXR9VVc6fSss-1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="回测开始" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="160" y="80" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-21" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-11" target="I5vgsRcotXR9VVc6fSss-0"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-11" value="回测结束" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="160" y="687" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-0" value="make_report" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="761" width="120" height="29" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-1" target="I5vgsRcotXR9VVc6fSss-5"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-1" value="before_start" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="160" width="120" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-5" target="I5vgsRcotXR9VVc6fSss-7"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-5" value="bars loop" style="ellipse;whiteSpace=wrap;html=1;rounded=0;perimeterSpacing=4;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="180" y="257" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-7" target="I5vgsRcotXR9VVc6fSss-9"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-14" value="Y" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="I5vgsRcotXR9VVc6fSss-10"> | ||
<mxGeometry x="-0.2333" y="2" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-7" target="I5vgsRcotXR9VVc6fSss-12"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-15" value="N" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="I5vgsRcotXR9VVc6fSss-13"> | ||
<mxGeometry x="-0.3" y="-1" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-7" value="新交易日?" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="180" y="360" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-9" target="I5vgsRcotXR9VVc6fSss-17"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-9" value="after_trade" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="320" y="385" width="120" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-12" target="I5vgsRcotXR9VVc6fSss-25"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-12" value="predict" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="480" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-17" target="I5vgsRcotXR9VVc6fSss-12"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-17" value="before_trade" style="whiteSpace=wrap;html=1;rounded=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="320" y="490" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-25" target="I5vgsRcotXR9VVc6fSss-5"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<Array as="points"> | ||
<mxPoint x="60" y="610" /> | ||
<mxPoint x="60" y="297" /> | ||
</Array> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-28" value="N" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="I5vgsRcotXR9VVc6fSss-27"> | ||
<mxGeometry x="0.1091" y="1" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="I5vgsRcotXR9VVc6fSss-25" target="WIyWlLk6GJQsqaUBKTNV-11"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-33" value="Y" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="I5vgsRcotXR9VVc6fSss-32"> | ||
<mxGeometry x="-0.3953" y="1" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="I5vgsRcotXR9VVc6fSss-25" value="最后bar?" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="180" y="570" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.