-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fasiondog/master
update 20221017
- Loading branch information
Showing
95 changed files
with
3,096 additions
and
2,117 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
.vscode | ||
.vs | ||
.ipynb_checkpoints | ||
nohup.out | ||
temp | ||
file | ||
temp.txt | ||
|
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
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 |
---|---|---|
|
@@ -18,12 +18,11 @@ Python中的订单代理包装 | |
my_tm = crtTM(init_cash = 300000) | ||
|
||
#注册实盘交易订单代理 | ||
my_tm.regBroker(crtOB(TestOrderBroker())) #TestOerderBroker是测试用订单代理对象,只打印 | ||
#my_tm.regBroker(crtOB(Puppet())) #Puppet为内建的扯线木偶实盘下单对象 | ||
#my_tm.regBroker(crtOB(MailOrderBroker("smtp.sina.com", "[email protected]", "yourpwd", "[email protected]))) | ||
my_tm.reg_broker(crtOB(TestOrderBroker())) #TestOerderBroker是测试用订单代理对象,只打印 | ||
#my_tm.reg_broker(crtOB(MailOrderBroker("smtp.sina.com", "[email protected]", "yourpwd", "[email protected]))) | ||
|
||
#根据需要修改订单代理最后的时间戳,后续只有大于该时间戳时,订单代理才会实际发出订单指令 | ||
my_tm.brokeLastDatetime=Datetime(201706010000) | ||
my_tm.broke_last_datetime=Datetime(201706010000) | ||
|
||
#创建信号指示器(以5日EMA为快线,5日EMA自身的10日EMA作为慢线,快线向上穿越慢线时买入,反之卖出) | ||
my_sg = SG_Flex(OP(EMA(n=5)), slow_n=10) | ||
|
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
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
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
CREATE TABLE IF NOT EXISTS `hku_base`.`Holiday` ( | ||
CREATE TABLE IF NOT EXISTS `hku_base`.`holiday` ( | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`date` BIGINT UNSIGNED NOT NULL, | ||
PRIMARY KEY(`id`) | ||
); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210101); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210211); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210212); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210215); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210216); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210217); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210405); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210501); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210503); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210504); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210505); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210614); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210920); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20210921); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20211001); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20211004); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20211005); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20211006); | ||
INSERT INTO `hku_base`.`Holiday` (`date`) VALUES (20211007); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210101); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210211); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210212); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210215); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210216); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210217); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210405); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210501); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210503); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210504); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210505); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210614); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210920); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20210921); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20211001); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20211004); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20211005); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20211006); | ||
INSERT INTO `hku_base`.`holiday` (`date`) VALUES (20211007); | ||
|
||
UPDATE `hku_base`.`version` set `version` = 4; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
INSERT INTO `hku_base`.`StockTypeInfo` (`id`, `tickValue`,`precision`,`type`,`description`,`tick`,`minTradeNumber`,`maxTradeNumber`) VALUES (9, 0.01,2,9,'科创板',0.01,100,1000000); | ||
INSERT INTO `hku_base`.`CodeRuleType` (`id`,`marketid`,`codepre`,`type`,`description`) VALUES (33, 1,'688',9,'科创板'); | ||
INSERT INTO `hku_base`.`stocktypeinfo` (`id`, `tickValue`,`precision`,`type`,`description`,`tick`,`minTradeNumber`,`maxTradeNumber`) VALUES (9, 0.01,2,9,'科创板',0.01,100,1000000); | ||
INSERT INTO `hku_base`.`coderuletype` (`id`,`marketid`,`codepre`,`type`,`description`) VALUES (33, 1,'688',9,'科创板'); | ||
UPDATE `hku_base`.`version` set `version` = 5; |
Oops, something went wrong.