以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 请老师改个后台模型 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=139977) |
-- 作者:jinzhe -- 发布时间:2016/9/23 13:12:03 -- PX:=stkindi(\'\',\'g666.ma8\',0,4);
PD:=stkindi(\'\',\'g666.ma55\',0,4);
abb1:=(time0-timetot0(dynainfo(207))<=tq) and time<>closetime(0);
if abb1 and cross(PX,PD)
then begin
tsellshort(1,0,mkt);
tbuy(tbuyholding(1)=0,1,mkt);
end
if abb1 and cross(PD,PX)
then begin
tsell(1,0,mkt);
tbuyshort(tsellholding(1)=0,1,mkt);
end
|