Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]

1楼
定盘星 发表于:2012/7/31 1:15:40

有个想法,5根K线中至少有2个是阴线,且5根K线中至少有4个上影线大于1,开空,能不能表述?

2楼
rushtaotao 发表于:2012/7/31 8:42:22
正在处理
3楼
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); 
共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.08594 s, 3 queries.