Skip to content

Commit

Permalink
v2.2.1 edit straregy
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Sep 6, 2021
1 parent 3c7e811 commit e78e917
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ folder by using the multi-threads for speeding.
10. V2.2.0 修改接口的bug,仓位模式为both,防止币安推送错误数据。 Change the
position mode to BOTH to avoid the rubbish data pushed from Binance
Exchange.

111.V2.2.1 添加策略编辑功能 Edit Strategy
## 联系方式
微信: bitquant51

Expand Down
2 changes: 1 addition & 1 deletion howtrader/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.2.0"
__version__ = "2.2.1"
4 changes: 4 additions & 0 deletions howtrader/app/cta_strategy/ui/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ def init_ui(self):
self.stop_button.clicked.connect(self.stop_strategy)
self.stop_button.setEnabled(False)

self.edit_button = QtWidgets.QPushButton("编辑")
self.edit_button.clicked.connect(self.edit_strategy)

self.remove_button = QtWidgets.QPushButton("移除")
self.remove_button.clicked.connect(self.remove_strategy)

Expand All @@ -215,6 +218,7 @@ def init_ui(self):
hbox.addWidget(self.init_button)
hbox.addWidget(self.start_button)
hbox.addWidget(self.stop_button)
hbox.addWidget(self.edit_button)
hbox.addWidget(self.remove_button)

vbox = QtWidgets.QVBoxLayout()
Expand Down

0 comments on commit e78e917

Please sign in to comment.