以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (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=176198) |
-- 作者:qq代人发帖 -- 发布时间:2020/5/22 8:53:53 -- 文化改成金字塔 请教:C>HV(C,N),BPK; C<LV(C,N),SPK; AUTOFILTER; |
-- 作者:FireScript -- 发布时间:2020/5/22 10:30:27 -- if C>ref(hHV(C,N),1) then begin sellshort(holding<0,1,market); buy(holding=0,1,market); end if C<ref(LlV(C,N),1) then begin sell(holding>0,1,market); buyshort(holding=0,1,market); end |