[求助]老師 [金字塔]
- 咨詢內(nèi)容:
有請老師幫編寫個模型:當(dāng)天的漲幅超過1%就買入開倉,跌幅超過1%就賣出開倉,到14.55就平倉怎么編寫?謝謝!
- 金字塔客服:
oo:=valuewhen(date<>ref(date,1),open);
if (h-oo)/oo>0.01 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if (h-oo)/oo<-0.01 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if time>145500 then begin
sell(1,0,market);
sellshort(1,0,market);
end
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容