欢迎光临散文网 会员登陆 & 注册

量化合约系统,合约量化系统开发策略及规则,量化合约源码部署

2023-02-16 21:15 作者:bili_88471652531  | 我要投稿

What does quantitative trading mean?

Quantitative trading refers to the investment method of trading using computer technology with the help of modern statistical and mathematical methods. Quantitative trading can bring a variety of "high probability" events with excess returns from huge historical data to formulate strategies, verify and solidify these laws and strategies with quantitative models, and then strictly implement solidified strategies to guide investment in order to obtain sustainable, stable and higher-average returns.

市场将量化交易分为以下类别:系统化交易、算法交易、程序化交易和机械式交易等,其中前三种模式在市场比较常见。

1.系统化交易指投资者将交易思路量化为交易系统,根据系统指标进行交易;

2.算法交易是利用电子平台,输入涉及算法的交易指令,以执行预先设定好的交易策略,指令中包含变量,包括时间,价格,交易量等,广泛应用于大宗交易;

3.程序化交易就是将投资者复杂的交易思路转变为能简单操作的智能交易系统,便于投资者的严格执行。

# 测试

Log("输出参数", arrParams, "#FF0000")

while True:关于量化合约系统I59开发2OO7详情3O69

nowTime = time.localtime(time.time())

nowHour = nowTime.tm_hour

nowMin = nowTime.tm_min

nowSec = nowTime.tm_sec

tbl = {

"type" : "table",

"title" : "msg",

"cols" : ["id", "begin", "end", "今天是否执行过启动", "今天是否执行过停止"],

"rows" : []

}

for i in range(len(arrParams)):

tbl["rows"].append([arrParams[i]["id"], json.dumps(arrParams[i]["begin"]), json.dumps(arrParams[i]["end"]), arrParams[i]["isProcessOpenThisDay"], arrParams[i]["isProcessCloseThisDay"]])

if nowDay != nowTime.tm_mday:

arrParams[i]["isProcessOpenThisDay"] = False

arrParams[i]["isProcessCloseThisDay"] = False

if arrParams[i]["isProcessOpenThisDay"] == False:

if nowTime.tm_hour == arrParams[i]["begin"]["hour"] and nowTime.tm_min >= arrParams[i]["begin"]["min"] and nowTime.tm_sec >= arrParams[i]["begin"]["sec"]:

ret = api('RestartRobot', int(arrParams[i]["id"]))

arrParams[i]["isProcessOpenThisDay"] = True

Log("机器人ID:", arrParams[i]["id"], "执行启动,请登录平台检查是否启动成功", "扩展API返回值:", ret, strPush)

if arrParams[i]["isProcessCloseThisDay"] == False:

if nowTime.tm_hour == arrParams[i]["end"]["hour"] and nowTime.tm_min >= arrParams[i]["end"]["min"] and nowTime.tm_sec >= arrParams[i]["end"]["sec"]:

ret = api('StopRobot', int(arrParams[i]["id"]))

arrParams[i]["isProcessCloseThisDay"] = True

Log("机器人ID:", arrParams[i]["id"], "执行停止,请登录平台检查是否停止成功", "扩展API返回值:", ret, strPush)

if nowDay != nowTime.tm_mday:开发案例:yy625019

nowDay = nowTime.tm_mday

LogStatus(_D(), nowTime, "\n`" + json.dumps(tbl) + "`")

Sleep(500)

量化合约系统,合约量化系统开发策略及规则,量化合约源码部署的评论 (共 条)

分享到微博请遵守国家法律