以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请问这两个组合,怎样编写??  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=74352)

--  作者:jinzhe
--  发布时间:2015/1/13 9:43:40
--  
处理中,请稍等
--  作者:jinzhe
--  发布时间:2015/1/13 9:44:14
--  

上面的第一第二第三是以什么为基准的?


--  作者:jinzhe
--  发布时间:2015/1/13 9:52:54
--  
不是问这个,第一第二第三是在k线图上的哪个位置为第一第二第三的?
--  作者:jinzhe
--  发布时间:2015/1/13 10:07:13
--  
组合一:
第一根K线 最低价 高于 第二根K线的 最低价,并且 第一根K线 最高价 高于 第二根K线的 最高价。

第二根 K线 收长下影(下影线的长度 大于 实体 的 2.5倍,上影长度 不要超过 下影长度的 20%,也可以是平顶)

第三根K线 最低价 高于 第二根K线的 最低价,并且 第三根K线 最高价 高于 第二根K线的 最高价,并且 第三根K线 收盘价 高于 第二根K线的 最高价。

xy:if(c<o,c-l,o-l);

sy:if(c<O,h-o,h-c);

pd:if(c<o,h=o,h=c);

l>ref(l,1) and h>ref(h,1) and c>ref(h,1) and ref(xy>abs(c-o)*2.5 and (sy<=xy*0.2 or pd) ,1) and ref(l,2)>ref(l,l) and ref(h,2)>ref(h,1);


[此贴子已经被作者于2015/1/13 10:09:35编辑过]

--  作者:jinzhe
--  发布时间:2015/1/13 10:09:23
--  
组合二:
第一根K线 最高价 低于 第二根K线的 最高价,并且 第一根K线 最低价 低于 第二根K线的 最低价。

第二根 K线 收长上影(上影线的长度 大于 实体 的 2.5倍,下影长度 不要超过 上影长度的 20%,也可以是平底)

第三根K线 最高价 低于 第二根K线的 最高价,并且 第三根K线 最低价 低于 第二根K线的 最低价,并且 第三根K线 收盘价 低于 第二根K线的 最低价。

xy:if(c<o,c-l,o-l);

sy:if(c<O,h-o,h-c);

pd:if(c<o,h=o,h=c);

 

h<ref(h,1) and l<ref(l,1) and c<ref(l,1) and ref(sy>abs(c-o)*2.5 and (xy<=sy*0.2 or pd),1) and ref(h,2)<ref(h,1) and ref(l,2)<ref(l,1) and ref(c,2)<ref(l,1);

[此贴子已经被作者于2015/1/13 10:10:27编辑过]

--  作者:jinzhe
--  发布时间:2015/1/13 10:41:34
--  
l>ref(l,1) and h>ref(h,1) and c>ref(h,1) and ref(xy>abs(c-o)*2.5 and (sy<=xy*0.2 or pd) ,1) and ref(l,2)>ref(l,l) and ref(h,2)>ref(h,1) and ref(c,2)>ref(h,1);

--  作者:jinzhe
--  发布时间:2015/1/13 14:21:59
--  

xy:=if(c<o,c-l,o-l);

sy:=if(c<O,h-o,h-c);

pd:=if(c<o,h=o,h=c);

加3个等号就行


--  作者:jinzhe
--  发布时间:2015/1/14 9:28:10
--  
。。。问你你说随便
--  作者:jinzhe
--  发布时间:2015/1/14 9:28:52
--  

cond:=l>ref(l,1) and h>ref(h,1) and c>ref(h,1) and ref(xy>abs(c-o)*3 and (sy<=xy*0.1 or pd),1) and ref(l,2)>ref(l,l) and ref(h,2)>ref(h,1) and ref(c,2)>ref(h,1);

 

ref(cond,1)


--  作者:jinzhe
--  发布时间:2015/1/14 9:51:36
--  
就是把我写那一大段套上一个ref(,1)