(1)、n日内创新高:hhv(high,n)=hhv(high,0) and barscount(c)>=n; 注:n为指标参数,可在参数设定范围内设定参数范围。Hhv(x,n),求n周期内x最高值,n=0则从第一个有效值开始;barscount(x),将当前位置到n周期前的数值设为1,若x非0,则将当前位置到n周期前的数值设为1。
(2)、n日内创新低: llv(low,n)=llv(low,0) and barscount(close)>=n; 注n为指标参数,可在参数设定范围内设定参数范围。Llv(x,n),求n周期内x最低值,n=0则从第一个有效值开始;barscount(x)第一个有效数据到当前的天数,例如,barscount(close)以于日线数据取得上市以来总交易日数。
(19)、间隔放量 a:=ma(vol,5); barscount(c)>=n and hhv(a,n)< n1*llv(a,n) and count(vol>n2*a,n)>n3; 注:a.barscount(x)第一个有效数据到当前的天数。Barscount(c)对于日线数据取得上市以来总交易日数。 b.完整含义:n日内五日均量的最大值小于最小值的n1倍,成交量大于等于五日均量的n2倍的情况发生的次数多于n3次。
(20)、放量上攻 a:=(c-ref(c,1))/ref(c,1)>=(n/100); sum(vol,n1)/capital>=(n2/100) and count(vol>ref(vol,1),n3 )=n3 and count(a,n3)=n3; 完整含义:每日股价涨幅均大于n%,n1日内累计换手率大于n2%,并且成交量连续在n3日内放大。
(21)、温和放量上攻 股价小幅上扬 a1:=close/ref(close,1); a2:=a1>1 and a1<1.03; 成交量小幅上扬 b1:=vol/ref(vol,1); b2:=b1>1 and b1<2; c1:=ma(vol,n)/capital<0.05; count(a2 and b2,n)/n>0.6 and c1; 完整公式为: a1:=close/ref(close,1); a2:=a1>1 and a1<1.03; b1:=vol/ref(vol,1); b2:=b1>1 and b1<2; c1:=ma(vol,n)/capital<0.05; count(a2 and b2,n)/n>0.6 and c1; 注:公式分为股价小幅上扬和成交量小幅上扬两个部分,请在指标编写时注意其结构。
(23)、平台整理 count(close,0)>n and (hhv(close,n)-llv(close,n))/llv(close,n)<=(n1/100); 注:count(close,0)>n为平台整理n个周期的设定。(hhv(close,n)-llv(close,n))/llv(close,n)<=(n1/100)为平台整理幅度n1%的设定。作者: 龙听 时间: 2018-2-7 10:40
(24)、突破长期盘整 ref(((hhv(h,n)-llv(l,n))/llv(l,n))/llv(l,n)),1)<=(n1/100) and c>=ref(hhv(h,n),1) and barscount(c)>n; 注:前n日在上下n1%的幅度内整理:ref(((hhv(h,n)-llv(l,n))/llv(l,n))/llv(l,n)),1)<=(n1/100);今日突破:c>=ref(hhv(h,n),1)。
(27)、大盘同步 count((c>o and indexc>indexo) or (c< o and indexc< indexo),n)/n>m/100; 注:含义为n周期中与大盘走势相同(同收阴线或同收阳线)的例超过m%。此处的o不是数字的零,而是开盘价open的首写字母o。(28)、n日内强势股 a:=(c-ref(o,n))/ref(o,n); b:=(indexc-ref(indexo,n))/ref(indexo,n); a>b and a/b>=m; 注:n日内个股涨幅大于等于大盘涨幅的m倍。
形态特征选股公式的编制
(1)、均线多头排列 a1:=ma(c,n1); a2:=ma(c,n2); a3:=ma(c,n3); a4:=ma(c,n4); count(a1>a2 and a2>a3 and a3>a4,3)=3 and isup; 注:n1、n2、n3、n4j日均线呈多头排列,isup也可以用close>open表示
(2)、均线空头排列 a1:=ma(c,n1); a2:=ma(c,n2); a3:=ma(c,n3); a4:=ma(c,n4); count(a1< a2 and a2< a3 and a3< a4,3)=3 and not(isup); 注:n1、n2、n3、n4j日均线呈空头排列,isup也可以用close< open表示。
(3)、早晨之星 ref(close,2)/ref(open,2<0.95 and ref(open,1)< ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2); 注:早晨之星,这种形态和叫法自然是后市向好,为买进信号。早晨之星由三根K线组成,其顺序是:第一天在下跌过程中已形成一根阴线:ref(close,2)/ref(open,2<0.95 第二天呈裂口下跌,K线实体较短,构成星的主体部分,阴线或阳线均可,有无上下影线均不重要。 ref(open,1)< ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.03 关键是第三根K线必须是阳线,且其长度至少要升至第一根阴线实体(如果能够“包容”第一根阴线则最好不过了)close/open>1.05 and close>ref(close,2)
(4)、强势整理 a1:=abs(close-open)/open<0.015; a2:=count(a,m)=m; a3:=ref(o,m)< ref(c,m) and ref (c,m)/ref(c,m+1)>1+n/100; a2 and a3; 注:一根实体超过n的长阳,后面跟m个K线实体不超过1.5%的K线。
(5)、高开大阴线 open>close and open/ref(c,1)>=1+m/100 and close/open<=1-n/100; 注:跳空高开m%,当日股价较开盘价跌幅大于n。股价经过一段持续攀升之后,某一日突然跳高开盘:open/ref(c,1)>=1+m/100 后股价一路下行,尾市以接近最低点收市:close/open<=1-n/100 此信号出现,往往意味着股价已形成短期头部,应注意回避风险。
(6)、低开大阳线 open< close and open/ref(c,1)<=1-m/100 and close/open>=1+n/100; 注:跳空低开m%,当日股价较开盘价涨幅大于n,其他描述请参见(5)。
(7)、黄昏之星 ref(close,2)/ref(open,2)>1.03 and ref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.02 and close/open<0.97 and close< ref(close,2); 注:黄昏之星表示股价回落,是卖出信号,应伺机抛货。幕星同样由三根K线组成,其形态和晨星正好相反:第一天股价继续上升,拉出一根阳线:ref(close,2)/ref(open,2)>1.03 第二天波动较小,形成一根小阳线或小阴线,构成星的主体部分:ref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.02 第三天形成一根包容第二天并延伸至第一天阳线实体:close/open<0.97 and close< ref(close,2)
(8)、跳空缺口 high< ref(low,1) or low>ref(high,1); 注:从内容上看,分别是向下跳空缺口和向上跳空缺口。