大豆-豆粕的套利(大豆只做空,豆粕只做多),[金字塔模型]
: none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px">一个大豆-豆粕的套利(大豆只做空,豆粕只做多),代码如下:: none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px">DD:="AX09$CLOSE";
DP:="M09$CLOSE";
diff:=DD-DP;
if strcmp(stklabel,\'M09\') = 0 then
begin
buy(diff>1200 and holding=0,1,limitr,C);
sell(diff<=600,1,limitr,C);
end
if strcmp(stklabel,\'AX09\') = 0 then
begin
buyshort(diff>1200 and holding=0,1,limitr,C);
sellshort(diff<=600,1,limitr,C);
end
DP:="M09$CLOSE";
diff:=DD-DP;
if strcmp(stklabel,\'M09\') = 0 then
begin
buy(diff>1200 and holding=0,1,limitr,C);
sell(diff<=600,1,limitr,C);
end
if strcmp(stklabel,\'AX09\') = 0 then
begin
buyshort(diff>1200 and holding=0,1,limitr,C);
sellshort(diff<=600,1,limitr,C);
end
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容