以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 麻烦帮忙编改成一个后台的公式,谢谢 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=30654) |
-- 作者:eric917 -- 发布时间:2012/11/15 8:34:41 -- 麻烦帮忙编改成一个后台的公式,谢谢 |
-- 作者:jinzhe -- 发布时间:2012/11/15 9:15:29 -- MA1:=ma(c,20); A:=MA1+10; B:=MA1-10;
if c>a then begin tsellshort(tholding<0,0,mkt); tbuy(tholding=0,1,mkt); end
if c<b then begin tsell(tholding>0,0,mkt); tbuy(tholding=0,1,mkt); end
if time>=151300 and tholding<>0 then begin tsell(1,0,mkt); tsellshort(1,0,mkt); end |
-- 作者:eric917 -- 发布时间:2012/11/15 10:54:33 -- 非常感谢!jinzhe |