大豆-豆粕的套利(大豆只做空,豆粕只做多),[金字塔模型]
: 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 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容