以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- [求助] (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=13378) |
-- 作者:定盘星 -- 发布时间:2012/7/31 1:15:40 -- [求助] 有个想法,5根K线中至少有2个是阴线,且5根K线中至少有4个上影线大于1,开空,能不能表述? |
-- 作者:rushtaotao -- 发布时间:2012/7/31 8:42:22 -- 正在处理 |
-- 作者:rushtaotao -- 发布时间:2012/7/31 9:03:20 -- //仅供参考 variable:a:=0; variable:b:=0; for i=1 to 5 do begin if ref(o,i)>ref(c,i) and islastbar then a:=a+1; if ref(o,i)>ref(c,i) and ref(h,i)-ref(o,i)>1 and islastbar then b:=b+1; if ref(o,i)<ref(c,i) and ref(h,i)-ref(c,i)>1 and islastbar then b:=b+1; end 条件成立:a>=2 and b>=4; aa:a; bb:b; if a>=2 and b>=4 then buyshort(1,1,market);
|