大豆-豆粕的套利(大豆只做空,豆粕只做多),[金字塔模型]
: 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">一個(gè)大豆-豆粕的套利(大豆只做空,豆粕只做多),代碼如下:: 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
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容