|
1--今收盘对于N日内最低收盘价的涨幅(%)
(C-LLV(C,N))/LLV(C,N)*100;
-------------------------------------------------------------------------------
2-今收盘对于N日内最高收盘价的跌幅(%)
(HHV(C,N)-C)/HHV(C,N)*100;
-------------------------------------------------------------------------------
3股价在过去N日内运行空间的相对位置
(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
-------------------------------------------------------------------------------
4-股价上方N1%至N2%处的筹码(%)
AA:=WINNER(C+C*N2/100)*100;
BB:=WINNER(C+C*N1/100)*100;
AA-BB
-------------------------------------------------------------------------------
5-股价下方N1%至N2%处的筹码(%)
(WINNER(C-C*N1/100)-WINNER(C-C*N2/100))*100;
-------------------------------------------------------------------------------
6收盘价N%处的套牢盘
100-(WINNER(C*N/100))*100;
-------------------------------------------------------------------------------
7-收盘价N%处的获利盘
WINNER(C*N/100)*100;
-------------------------------------------------------------------------------
8-下影线
(MIN(C,O)-L)/(H-L);
-------------------------------------------------------------------------------
9--上影线
(H-MAX(C,O))/(H-L)
-------------------------------------------------------------------------------
10--本周期的涨跌幅
(C-REF(C,1))/REF(C,1)*100;
-------------------------------------------------------------------------------
11--振幅
(H-L)/L*100;
-------------------------------------------------------------------------------
12--均线金叉
CROSS(MA(C,N),MA(C,M));{N< M}
-------------------------------------------------------------------------------
13-均线死叉
CROSS(MA(C,M),MA(C,N));{N< M}
-------------------------------------------------------------------------------
14--均线多头排列
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;
COUNT(A1>A2>A3>A4,3){这样写是不对的}
-------------------------------------------------------------------------------
15-均线空头排列
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);
-------------------------------------------------------------------------------
16--N日均线向下
AA:=MA(C,N);
BB:=REF(AA,1);
AA< BB
-------------------------------------------------------------------------------
17--N日均线向上
AA:=MA(C,N);
BB:=REF(AA,1);
AA>BB
-------------------------------------------------------------------------------
18--N日均线走平
AA:=MA(C,N);
BB:=REF(AA,1);
AA=BB
-------------------------------------------------------------------------------
19--向前N日至M日出现过均线死叉(P1< P2)
AA:=MA(C,P1);
BB:=MA(C,P2);
CC:=REF(CROSS(BB,AA),N);
COUNT(CC,M)>=1;
-------------------------------------------------------------------------------
30--今日成交量大于N日以来的均量
VOL>MA(VOL,N);
-------------------------------------------------------------------------------
31--低位密集
A1:=COST(85);
A2:=COST(15);
A3:=A1-A2;
A4:=(A1+A2)/2;
A5:=A3/A4*100<10;
B1:=HHV(H,120);
B2:=LLV(L,120);
B3:=B1-B2;
B4:=(A4-B2)< B3/2;
A5 AND B4;
-------------------------------------------------------------------------------
32--换手率
VOL/CAPITAL*100;
-------------------------------------------------------------------------------
33--N日盈亏
V1:=VOL/SUM(VOL,N);
V2:=DMA(CLOSE,V1);
V3 CLOSE-V2)/V2*100;
34-底背离
LLV(L,60)=L) AND NOT(LLV(DEA,60)=DEA);
-------------------------------------------------------------------------------
35--顶背离
HHV(H,60)=H) AND NOT(HHV(DEA,60)=DEA);
36概率统计
COUNT,计数。SUM,总数、和。
当数组为逻辑运算判断的结果时,COUNT和SUM的返回值是一样的。一般习惯上,对于逻辑运算信号,用COUNT统计,返回其它数值的,用SUM统计。
当COUNT统计一般数值时,数组大于等于1时,计入;小于1时,不计入。这两个函数,主要用于统计。
用COUNT(CROSS(MA(C,5),MA(C,10)),0);就可以统计出全部的五天均线上穿十天均线的金叉数。
用SUM(CROSS(MA(C,5),MA(C,10)),0);和以上得出的结果应该是一样的。
股市的不随机规律,隐藏在统计概率之中。用这两个函数,可以统计很多概率性的规律。
比如,以两天的收盘价相比,昨天是下跌的,今天的下跌的概率是多少?
A:=C< REF(C,1);
B:=REF(A,1) AND C>REF(C,1);{昨天下跌,今天上涨}
D:=REF(A,1) AND C=REF(C,1);{昨天下跌,今天平盘}
E:=REF(A,1) AND C< REF(C,1);{昨天下跌,今天下跌}
F:=COUNT(B,0)+COUNT(D,0)+COUNT(E,0);
上升概率:100*COUNT(B,0)/F;
下跌概率:100*COUNT(E,0)/F;
平盘概率:100*COUNT(D,0)/F;
从两市指数看,昨天下跌,今天下跌的概率始终大于50%。那么连跌两天之后,第三天收盘的各种概率是多少?
A:=C< REF(C,1) AND REF(C,1)< REF(C,2);
B:=REF(A,1) AND C>REF(C,1);{前两天下跌,今天上涨}
D:=REF(A,1) AND C=REF(C,1);{前两天下跌,今天平盘}
E:=REF(A,1) AND C< REF(C,1);{前两天下跌,今天下跌}
F:=COUNT(B,0)+COUNT(D,0)+COUNT(E,0);
上升概率:100*COUNT(B,0)/F;
下跌概率:100*COUNT(E,0)/F;
平盘概率:100*COUNT(D,0)/F;
从指数的输出看,概率更明显了。连跌三天之后呢?
A:=C< REF(C,1) AND REF(C,1)< REF(C,2) AND REF(C,2)< REF(C,3);
B:=REF(A,1) AND C>REF(C,1);{前三天下跌,今天上涨}
D:=REF(A,1) AND C=REF(C,1);{前三天下跌,今天平盘}
E:=REF(A,1) AND C< REF(C,1);{前三天下跌,今天下跌}
F:=COUNT(B,0)+COUNT(D,0)+COUNT(E,0);
上升概率:100*COUNT(B,0)/F;
下跌概率:100*COUNT(E,0)/F;
平盘概率:100*COUNT(D,0)/F;
规律就更明显了。
不要小看这些数据。虽然没有有些“高手”做出的成功率达百分之九十左右的公式那么夸张,但很有意义的。要知道股市中的随机因素太多,平衡性很强,稍稍的统计偏向,足可作为有用的参考。
这只是简单的例子,用这两个函数,可以做出很多的有用的统计数据。多数的交易系统的"胜率",可以由此统计出来。
统计:
A:=CROSS(C,MA(C,3));
B:=CROSS(MA(C,3),C);
D:B*(C-REF(C,BARSLAST(A)));
月:SUM(D,20);
季:SUM(D,60);
半:SUM(D,120);
年:SUM(D,250);
总和:SUM(D,0);
37交易系统公式交易类型
ENTERLONG 多头买入 ENTERSHORT 空头买入
EXITLONG 多头卖出 EXITSHORT 空头卖出
38窄幅整理
(HHV(C,20)-LLV(C,20)/C<0.08;
-------------------------------------------------------------------------------
39--N天前到M天前之间的最高价
REF(HHV(H,20),40);
-------------------------------------------------------------------------------
40-某时间段最高价
HH:=IF(YEAR=1998 AND MONTH>=8 AND MONTH<=12,H,0);
HHV(HH,0);{此例求1998年8月1日到1998年12月31日间的最高价}
-------------------------------------------------------------------------------
41--二十日内是否有过涨停
TT:=C/REF(C,1)>1.095;
COUNT(TT,20)>0;
-------------------------------------------------------------------------------
42--放量创新高
AA:=MA(V,5);
BB:=REF(AA,2);
CC:=HHV(C,30);
AA/BB>2 AND C=CC;
-------------------------------------------------------------------------------
43-突破长期平台整理
V1:=MA(V,5);
V2:=V/REF(V1,1);
PZ1:=MA(C,150);
PZ2:=HHV(H,150);
PZ3:=LLV(L,150);
PZ4:=(PZ2-PZ1)/PZ1;
PZ5:=(PZ1-PZ3)/PZ1;
PZ:=REF(PZ4,1)<0.15 AND REF(PZ5,1)<0.15;
TP1:=HHV(H,150);
TP:=H=TP1;
V2>=2 AND PZ AND TP
-------------------------------------------------------------------------------
44--尾盘大单拉升或打压
AA:=TIME>=145500;
BB:=SUM(V,0)/240;//当天均量
CC:=SUM(V,10)/10;//10分钟内的成交均量
DD:=REF(C,10);
AA AND CC/BB>3 AND C/DD>1.02;
45--含职工股
FINANCE(8)>0
---------------------------------------------------------------
46--次新中小
N(1,255,30)
BARSCOUNT(C)< N AND
FINANCE(7)<=10000
---------------------------------------------------------------
47-收盘大于开盘
CLOSE>=DYNAINFO(4)
---------------------------------------------------------------
48-涨跌幅度
N(0,0.1,0.05)
DYNAINFO(14)>=N
---------------------------------------------------------------
49--小盘选股
CAPITAL<=500000 AND FINANCE(33)>=0.01 AND CLOSE<=30
---------------------------------------------------------------
50--低市盈率选股
N(10,30,30)
DYNAINFO(39)<=N
选择市盈率较小的股票.
市盈率小于 ?
---------------------------------------------------------------
51--业绩选股
N(0,100,0.4)
FINANCE(33)>N
业绩选股,每股收益在0.4元以上
每股收益在 ?元以上
---------------------------------------------------------------
52-小盘股
N(700,50000,3000)
FINANCE(7)<=N
选择流通股较小的股票
流通股小于 ?万股
---------------------------------------------------------------
53--大盘股
N(15000,30000,20000)
FINANCE(7)>=N
流通股大于 ?万股
---------------------------------------------------------------
54-净资产收益率选股
N(0,300,20)
FINANCE(37)>(N/100)
净资产收益率高于N的股票
净资产收益率大于百分之 ?
---------------------------------------------------------------
55--B股板块
FINANCE(5)>0
含有B股的股票
选择含B股的股票
---------------------------------------------------------------
56--无国家股板块
FINANCE(2)=0
国家股为零的股票.
选择不含国家股的股票
---------------------------------------------------------------
57-每股净资产选股
N(1,5,2.5)
FINANCE(34)>N
选出每股净资产大于N元的股票.
每股净资产大于 ?元
---------------------------------------------------------------
58--每股未分配利润选股
N(0.1,2,1)
FINANCE(32)>N
每股未分配利润大于N的股票
每股未分配利润大于 ?元
---------------------------------------------------------------
59--股东权益比率选股
N(1,100,50)
FINANCE(36)>(N/100)
股东权益比率大于N的股票.
股东权益比率大于百分之 ?
---------------------------------------------------------------
60-每股公积选股
N(1,4,2)
FINANCE(18)>N
每股公积金大于 ?元
---------------------------------------------------------------
61-举牌概念股
N(1,100,50)
FINANCE(7)/FINANCE(1)>=(N/100)
流通股在总股本中的比重很大的股票,这类股票相对来说更容易被收购和举牌,因此被市场称为举牌概念股.
流通股占总股本的比重高于 ?%,有被收购和举牌的概念.
---------------------------------------------------------------
62--指数效应股
M(1,100,10)
FINANCE(7)/FINANCE(1)<=(M/100)
流通股占总股本的比例小于M%,这类股票对指数的影响比较大,容易成为主力拉抬指数的工具.
流通股占总股本的比重低于 ?%,这类股票对指数的影响比较大.
---------------------------------------------------------------
63--H股板块
FINANCE(6)>0
选择含有H股的股票,该板块具有明显的联动效应.
选择含有H股的股票.
---------------------------------------------------------------
64-含转配股
FINANCE(9)>0
选择含有转配股的股票,这类股票在特定的时候具有一定的联动效应.
选择含有转配股的股票.
---------------------------------------------------------------
65--主营业务利润率选股
N(1,100,30)
FINANCE(21)/FINANCE(20)>=(N/100)
主营业务利润率高于N的股票,主营业务利润率越高则说明主营业务越鲜明,公司的发展越稳健.
主营业务利润率大于 ?%
---------------------------------------------------------------
66--市净率选股
N(1,50,5)
C/FINANCE(34)< N
市净率=市价/每股净资产
市净率>N
市净率越低公司股价越有被低估的可能,这类股票从理论上讲具有更高的安全性.
市价/每股净资产小于 ?倍,该比率越低,从基本分析来看理论上越安全.
---------------------------------------------------------------
67--流动比率选股
N(0.1,5,1)
FINANCE(11)/FINANCE(15)>N
流动比率大于N的股票
流动资产/流动负债大于 ?倍,该比率越大其财务风险在一定程度上越小.
---------------------------------------------------------------
68--次新股选股
N(1,60,30)
BARSCOUNT(C)< N
次新股选股
上市时间在N个交易日(缺损值为30个交易日)的股票
上市天数小于 ?天,选出近期上市的新股.
---------------------------------------------------------------
69--上市时段选股
Y(1990,2000,1999)M1(1,12,4)M2(1,12,4)
COUNT(BARSCOUNT(C)=1 AND YEAR=Y AND MONTH>=M1 AND MONTH<=M2,0)
寻找Y年M2月到M1月上市的股票,即寻找一定时间
段上市的股票。如:寻找1999年4月份上市的股票,可输入参数
Y:1999
M1:4
M2:4
在 ?年PARAM#2月至PARAM#3月上市的股票
---------------------------------------------------------------
70--涨幅选股
N(0.01,0.1,0.03)
DYNAINFO(14)>=N
选择目前涨幅大于N的股票,这类股票有可能成为今天的强势股,特别是在开市有一段时间并且大盘呈现一路阴跌的情况下.
选择当前涨幅大于 ?的股票
---------------------------------------------------------------
71--委比选股
N(0.5,1,0.5)
DYNAINFO(15)>N
选择当前委比大于等于N的股票,委比越大则说明买盘越强劲,(但这也不是绝对的,有可能被人为操纵).
选择当前委比大于 ?的股票
---------------------------------------------------------------
72--委差选股
N(1,9999,200)
DYNAINFO(16)>N
选择(委买量-委卖量)的差为正数并且大于N手的股票,差值越大买盘越强.
选择当前(委买量-委卖量)大于 ?手的股票(参数取正值)
---------------------------------------------------------------
73--内外盘选股(上涨)
DYNAINFO(22)>DYNAINFO(23) AND C>REF(C,1)
内盘大于外盘,股票仍上涨。这类股票存在一定异动,有庄家活动的可能.
内盘大于外盘,股票仍上涨。
---------------------------------------------------------------
74--内外盘选股(下跌)
DYNAINFO(23)>DYNAINFO(22) AND C< REF(C,1)
外盘大于内盘,股价仍下跌.这类股票存在一定异动,有庄家活动的可能.
外盘大于内盘,股价仍下跌.
---------------------------------------------------------------
75--阶段涨幅选股
D1(900101,1331231,990504)D2(900101,1331231,990802)P(-90,1000,20)
A:=HHV(IF(DATE=D1,C,0),0);
B:=HHV(IF(DATE=D2,C,0),0);
B/A>=(1+P/100)
选择某一阶段中一定涨幅的股票
?日——PARAM#2日涨幅大于PARAM#3%的股票
---------------------------------------------------------------
76--即时量比选股
N(1,100,1)
DYNAINFO(17)>=N
选择量比大于N的股票
当前的量比大于 ?的股票
---------------------------------------------------------------
77--大手笔成交选股(买)
N(1,10000,200)
BUYVOL>=N
主动性买盘成交量大于N的股票
(只能在分笔成交周期中使用)
当前主动性买盘的单比成交大于 ?的股票
---------------------------------------------------------------
N(1,10000,200)
SELLVOL>N
当前主动性卖盘的单比成交量大于 ?的股票
---------------------------------------------------------------
78--换手率选股
N(0.01,100,5)
DYNAINFO(37)>=N/100
单日换手率大于N的股票
当前换手率大于等于 ?%的股票
---------------------------------------------------------------
79--涨速选股
N(0.01,100,1)
DYNAINFO(24)>=N/100
选择当前涨速大于N的股票
当前五分钟涨速大于等于 ?%的股票
---------------------------------------------------------------
80--振幅选股
N(0.1,100,5)
DYNAINFO(13)>=N/100
选择今日振幅在N的股票
当前振幅大于等于 ?%的股票
---------------------------------------------------------------
81-股价-均价选股
DYNAINFO(7)>DYNAINFO(11)
分时图中目前股价高于均价的股票
---------------------------------------------------------------
82--N日内创新高
N(2,10,3)
HHV(HIGH,N)=HHV(HIGH,0) AND BARSCOUNT(C)>=N
选择 ?日内创出历史新高的股票
---------------------------------------------------------------
83--N日内创新低
N(1,5,3)
LLV(L,3)=LLV(L,0) AND BARSCOUNT(C)>=N
选择 ?日内创出历史新低的股票
---------------------------------------------------------------
84--M日内阴线多于阳线
M(3,300,30)N(50,100,60)
COUNT(OPEN>CLOSE,M)/M >= N/100
?日内阴线数量超过 ??
---------------------------------------------------------------
85-M日内阳线多于阴线
M(3,300,30)N(50,100,60)
COUNT(OPEN< CLOSE,M)/M >= N/100
?日内阳线数量超过 ??
---------------------------------------------------------------
86--N日内上涨多于下跌
N(1,300,120)M(50,100,60)
COUNT(C>REF(C,1),M)/M >= N/100
?日内上涨(收盘价高于昨收)的天数超过 ??
---------------------------------------------------------------
87-N日内下跌多于上涨
N(1,300,120)M(50,100,60)
COUNT(C< REF(C,1),N)/N >= M/100
?日内下跌(收盘价低于昨收)的天数超过 ??
---------------------------------------------------------------
88-连续N天收阳线
N(3,10,7)
UP:=CLOSE>OPEN;
COUNT(UP,N)=N
连续N天收阳线
选择连续 ?个交易日收阳线的股票
---------------------------------------------------------------
89--连续N天收阴线
N(3,10,5)
DOWN:=OPEN>CLOSE;
COUNT(DOWN,N)=N
连续N日收阴线
选择连续 ?个交易日收阴线的股票
---------------------------------------------------------------
90--连续N天上涨
N(3,20,5)
COUNT(C>REF(C,1),N)=N
选择连续N个交易日都上涨的股票
选择连续 ?个交易日上涨的股票
---------------------------------------------------------------
91--连续N日下跌
N(3,20,5)
COUNT(C< REF(C,1),N)=N
N日内收盘价为连续下跌的股票
选择连续 ?日都下跌的股票
---------------------------------------------------------------
92--首次创新高
BARSSINCE(C>HHV(IF(BARSCOUNT(C)=1,HIGH,0),0))+1=1
选择上市后首次创出新高的的股票
---------------------------------------------------------------
93--创历史新高
HHV(CLOSE,0)=CLOSE
收盘价创历史新高
---------------------------------------------------------------
94--创历史新低
LLV(CLOSE,0) = CLOSE
收盘价价创历史新低
---------------------------------------------------------------
95--单日放量
N(0.1,100,15)
A:=VOL/CAPITAL>=(N/100);
A AND (NOT(REF(A,1)))
单日换手率大于N%
单日换手率大于 ?%
---------------------------------------------------------------
96--阶段缩量
N(1,100,5)N1(1,100,10)
SUM(VOL,N1)/CAPITAL<=(N/100)
N1日内换手率小于百分之N
PARAM#2个周期的阶段换手率小于 ?%
---------------------------------------------------------------
97--阶段放量
N(1,100,10)N1(1,100,5)
SUM(VOL,N1)/CAPITAL>=(N/100)
N1日内换手率大于百分之N
PARAM#2个周期的阶段换手率小于 ?%
---------------------------------------------------------------
98--持续放量
M(1,100,3)
B:=VOL>REF(VOL,1);
COUNT(B,M)=M
成交量连续M日放大
今日成交量大于昨日成交量,这种情况连续 ?天出现.
---------------------------------------------------------------
99-持续缩量
M(1,100,3)
B:=VOL< REF(VOL,1);
COUNT(B,M)=M
成交量连续M日缩小
今日成交量小于昨日成交量,这种情况连续 ?天出现.
---------------------------------------------------------------
100--间隔放量
N(20,60,30)N1(0.1,100,4)N2(1,100,2)N3(1,100,3)
A:=MA(VOL,5);
BARSCOUNT(C)>=N AND HHV(A,N)< N1*LLV(A,N)
AND COUNT(VOL>N2*A,N)>N3
成交量分布比较均匀,偶尔有所放大,但马上又缩小.如果发生在底部区域,且盘整时间较长,则很有可能是庄家的吸货行为.
?日内五日均量的最大值小于最小值的PARAM#2倍,
成交量大于等于五日均量的PARAM#3倍的情况发生的次数多于PARAM#4次
即:
成交量分布比较均匀,偶尔有所放大,但马上又缩小.如果发生在底部区域,且盘整时间较长,则很有可能是庄家的吸货行为.
---------------------------------------------------------------
101--放量上攻
N(0.1,10,1)N1(1,10,3)N2(1,1000,20)N3(1,100,5)
UP:=REF(C,1)< C ;
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
为庄家的拉升行为,可谨慎介入.
成交量连续PARAM#4日放大,且每日股价涨幅均大于 ?%;
PARAM#2日内换手率大于PARAM#3%
---------------------------------------------------------------
102--温和放量上攻
N(2,10,3)N1(1,40,10)
UP:=MAX(C,OPEN)>REF(MAX(C,OPEN),1);
A:=VOL>REF(VOL,1);
COUNT(IF((UP AND A),1,0),N)=N AND C>OPEN
AND (C-REF(MAX(C,OPEN),1))/REF(MAX(O,C),1)<=(3/100)
AND VOL/CAPITAL<=(N1/100)
连续 ?个周期放大并保持上涨势头
当日换手率小于 ??
---------------------------------------------------------------
103--突然放量
N(1,300,10)M(1,40,3)
VOL>REF(HHV(VOL,N),1)*M
成交量较前N周期的最大成交量增大M倍
当前成交量高于 ?个周期中最大成交量的PARAM#2倍
---------------------------------------------------------------
104--平台整理
N(1,100,30)N1(1,100,11)
COUNT(CLOSE,0)>N AND (HHV(CLOSE,N)-LLV(CLOSE,N))/LLV(CLOSE,N)<=(N1/100)
N天振动幅度在M%的股票
平台整理 ?个周期
平台整理幅度 ??
---------------------------------------------------------------
105--尾盘打压
N(0,20,2)
HOUR>14 AND MINUTE>56 AND CLOSE/REF(CLOSE,2) <= 1-N/100
本指标仅适用于1分钟线
14:56以后2分钟跌幅超过 ?%
---------------------------------------------------------------
106--尾盘拉升
N(0,20,2)
HOUR>14 AND MINUTE>56 AND CLOSE/REF(CLOSE,2) >= 1+N/100
14:56以后2分钟涨幅超过 ?%
---------------------------------------------------------------
107--盘中逆势走强股
N(930,1500,930)M(930,1500,1030)
A:=HHV(IF(TIME=N,INDEXC,0),0);
B:=HHV(IF(TIME=M,INDEXC,0),0);
D:=HHV(IF(TIME=N,C,0),0);
E:=HHV(IF(TIME=M,C,0),0);
E/D>B/A
选择当天某一时段中走势强于大盘的股票
时间 ?点——PARAM#2点之间涨幅高于大盘涨幅的股票
---------------------------------------------------------------
108--突破长期盘整
N(10,60,30)N1(5,50,30)
REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(N1/100)
AND C>=REF(HHV(H,N),1) AND BARSCOUNT(C)>N
前 ?日在上下 ??的幅度内整理,今日突破。
---------------------------------------------------------------
109--阶段强势股
N(700101,1341231,990519)N1(700101,1341231,990913)
A:=SUM(IF(DATE-N=0,INDEXC,0),0);
B:=SUM(IF(DATE-N1=0,INDEXC,0),0);
E:=SUM(IF(DATE-N=0,C,0),0);
F:=SUM(IF(DATE-N1=0,C,0),0);
((F-E)/E)>((B-A)/A)
选择某一阶段内走势强于大盘的股票.
?日--PARAM#2日之间涨幅高于大盘的股票
---------------------------------------------------------------
110--阶段弱势股
N(700101,1341231,990519)N1(700101,1341231,990913)
A:=SUM(IF(DATE=N,INDEXC,0),0);
B:=SUM(IF(DATE=N1,INDEXC,0),0);
E:=SUM(IF(DATE=N,C,0),0);
F:=SUM(IF(DATE=N1,C,0),0);
((F-E)/E)<((B-A)/A)
?日--PARAM#2日之间涨幅小于大盘的股票
---------------------------------------------------------------
111-大盘同步选股
N(1,100,10)M(1,100,50)
COUNT((C>O AND INDEXC>INDEXO) OR (C< O AND INDEXC< INDEXO),N)/N > M/100
?周期中与大盘走势相同(同收阴线或同收阳线)的比例超过 ??
---------------------------------------------------------------
112--N日内强势股
N(1,300,20)M(1,100,3)
A:=(C-REF(O,N))/REF(O,N);
B:=(INDEXC-REF(INDEXO,N))/REF(INDEXO,N);
A>B AND A/B>=M
?日涨幅大于等于同期大盘涨幅的PARAM#2倍
113--含职工股
FINANCE(8)>0
---------------------------------------------------------------
114--均线多头排列
N(1,100,5)N1(1,1000,10)N2(1,1000,20)N3(1,1000,30)
MA(CLOSE,N)>MA(CLOSE,N1) AND MA(CLOSE,N1)>MA(CLOSE,N2)
AND MA(CLOSE,N2)>MA(CLOSE,N3) AND REF(MA(CLOSE,N),1)>REF(MA(CLOSE,N1),1) AND
REF(MA(CLOSE,N1),1)>REF(MA(CLOSE,N2),1) AND REF(MA(CLOSE,N2),1)>REF(MA(CLOSE,N3),1)
AND REF(MA(CLOSE,N),2)>REF(MA(CLOSE,N1),2) AND REF(MA(CLOSE,N1),2)>REF(MA(CLOSE,N2),2)
AND REF(MA(CLOSE,N2),2)>REF(MA(CLOSE,N3),2)
均线系统呈多头排列,多方占据一定优势.
?,PARAM#2,PARAM#3,PARAM#4日均线呈多头排列
---------------------------------------------------------------
115--均线空头排列
N(1,1000,5)N1(1,1000,10)N2(1,1000,20)N3(1,1000,30)
MA(CLOSE,N) < MA(CLOSE,N1) AND
MA(CLOSE,N1) < MA(CLOSE,N2) AND
MA(CLOSE,N2) < MA(CLOSE,N3) AND
REF(MA(CLOSE,N),1)< REF(MA(CLOSE,N1),1) AND
REF(MA(CLOSE,N1),1)< REF(MA(CLOSE,N2),1) AND REF(MA(CLOSE,N2),1)< REF(MA(CLOSE,N3),1)
AND REF(MA(CLOSE,N),2)< REF(MA(CLOSE,N1),2) AND REF(MA(CLOSE,N1),2)< REF(MA(CLOSE,N2),2)
AND REF(MA(CLOSE,N2),2)< REF(MA(CLOSE,N3),2)
均线系统呈空头排列,这时的形势不利与多方迅速组织起强有力的反攻.
?,PARAM#2,PARAM#3,PARAM#4日均线呈空头排列
---------------------------------------------------------------
116--强势整理
N(1,20,2)M(1,10,5)
A1:=ABS((C-REF(C,1))/REF(C,1))<=0.05
AND ABS((O-REF(C,1))/REF(C,1))<=0.05
AND C>=REF(C,1) AND L<=REF(H,1);
A2:=REF(C,1)>REF(O,1) AND (REF(C,1)/REF(O,1))>=1+N/100
AND REF(C,1)/REF(C,2)>=1.04 AND REF(C,1)>REF(C,2)
AND REF(C,1)>REF(C,3) AND REF(C,1)>REF(C,4)
AND REF(C,1)>REF(C,5) AND REF(C,1)>REF(C,6)
AND REF(C,1)>REF(C,7) AND REF(C,1)>REF(C,8)
AND REF(C,1)>REF(C,9);
A3:=IF(A1 AND A2,3,0);
A4:=BARSLAST(A1 AND A2);
A8:=REF(C,A4+1);
A5:=ABS((C-REF(C,1))/REF(C,1))<=0.03
AND ABS((O-REF(C,1))/REF(C,1))<=0.03;
A6:=(C>=A8 AND C/A8<=(1+M/100));
A4=COUNT(A5 AND A6,A4)
强势整理:一根实体超过N%的长阳,后面跟若干个振幅不超过M%的K线
强势整理:一根实体超过 ?%的长阳,后面跟若干个振幅不超过 ??的K线
---------------------------------------------------------------
117--高开大阴线
M(1,10,4)N(1,20,5)
OPEN>CLOSE AND OPEN/REF(C,1) >= 1+M/100 AND CLOSE/OPEN<=1-N/100
收盘为高开大阴线
跳空高开 ?%,当日股价较开盘价跌幅大于PARAM#2
---------------------------------------------------------------
118--低开大阳线
M(1,10,4)N(1,20,7)
OPEN< CLOSE AND OPEN/REF(C,1) <= 1-M/100 AND CLOSE/OPEN>=1+N/100
收盘为低开大阳线
跳空低开 ?%,当日股价较开盘价涨幅大于PARAM#2
---------------------------------------------------------------
119--跳空缺口选股
HIGH< REF(LOW,1) OR
LOW>REF(HIGH,1)
---------------------------------------------------------------
120--大买单提取
N(1,1000,200)
SUM(IF(BUYVOL>=N,VOL,0),0)
提取今日主动性买盘成交量中的大手笔成交,并对其求和.
该指标的值越大,则说明当日多方的力量越强大.
统计主动性买盘成交量大于 ?手的成交量总和
---------------------------------------------------------------
121--今日大单笔数
N(1,10000,200)
COUNT(VOL>N,0)
统计今日大于N手的买卖单的笔数,笔数越多,则说明成交越活跃.
统计今日成交量大于 ?手的数量
---------------------------------------------------------------
122--大盘同步指标
N(1,1000,7)
COUNT((C>O AND INDEXC>INDEXO) OR (C< O AND INDEXC< INDEXO),N)/N
统计N日中和大盘保持一致,同收阳线或同收阴线的日数所占的比例,
用法:比例越接近1,该股和大盘走势越一致。
N( ?)天中与大盘走势保持一致,同收阳线和阴线的天数/N天
---------------------------------------------------------------
123--大手笔之差
N(1,1000,100)N1(1,1000,100)
SUM(IF(BUYVOL>=N,VOL,0),0)-SUM(IF(SELLVOL>=N1,VOL,0),0)
求当日大手笔的买单与大手笔的卖单之差,该差值为正则说明多方占据优势,形势有利于多方,可看涨.该值越大多方优势月明显.
大于等于 ?手的主动性买盘之和-
大于等于PARAM#2手的主动性卖单之和
---------------------------------------------------------------
124--活跃股指标
MA(VOL,3)/CAPITAL
---------------------------------------------------------------
125--阶段强势指标
N(1,300,20)
A:=COUNT(C>O AND INDEXC< INDEXO,N);
B:=COUNT(INDEXC< INDEXO,N);
D:A/B
A:N天中大盘收阴线个股收阳线的天数;
B;N天中大盘收阴线的天数;
D:A/B
D值越大则说明股票在这一阶段中走势越强.
?天中大盘收阴线个股收阳线的天数/大盘收阴线的天数
---------------------------------------------------------------
126--内外盘比率
SUM(BUYVOL,0)/SUM(SELLVOL,0)
统计今日的主动性买盘之和和主动性卖盘之和,并求前者与后者的比值.该比值大于1则说明多方占据一定优势,比值越大优势越明显,该股可谨慎看涨.
---------------------------------------------------------------
127--内外盘之差
SUM(BUYVOL,0)-SUM(SELLVOL,0)
统计今日的主动性买盘之和和主动性卖盘之和,并求前者与后者的差值.该差值大于0则说明多方占据一定优势,差值越大优势越明显,该股可谨慎看涨.
---------------------------------------------------------------
128--平均每笔成交
SUM(VOL,0)/BARSCOUNT(C)
用当日成交量除以当日成交笔数,求得当日平均每一笔成交的成交手数,该值越大,成交越活跃,庄家的活动越明显,
特别是当该比值前期一直很小,近期明显放大,庄家活动的迹象更加明显.如果出现在底部,则有可能是庄家在吸货.
---------------------------------------------------------------
129--QHLSR阻力指标
QHL:=(C-REF(C,1))-(VOL-REF(VOL,1))*(REF(H,1)-REF(L,1))/REF(VOL,1);
A:=SUM(IF(QHL>0,QHL,0),5);
E:=SUM(IF(QHL>0,QHL,0),10);
B:=ABS(SUM(IF(QHL<0,QHL,0),5));
F:=ABS(SUM(IF(QHL<0,QHL,0),10));
D:=A/(A+B);
G:=E/(E+F);
QHL5: IF(SUM(IF(QHL>0,1,0),5)=5,1,IF(SUM(IF(QHL<0,1,0),5)=5,0,D)) ;
QHL10:G
---------------------------------------------------------------
130--盘中强势指标
TIM:=IF(HOUR>12, (HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
ZLB:= SUM(VOL,0)*240/TIM/DYNAINFO(38);
ZDL:ZLB*(SUM(BUYVOL,0)-SUM(SELLVOL,0))/(SUM(BUYVOL,0)+SUM(SELLVOL,0))*100
本指标只能用于分笔成交分析
---------------------------------------------------------------
131--大卖单提取
N(1,1000,100)
SUM(IF(SELLVOL>=N,VOL,0),0)
提取今日主动性卖盘成交量中的大手笔成交,并对其求和.
该指标的值越大,则说明当日空方的力量越强大.
统计主动性卖盘成交量大于 ?手的成交量总和
---------------------------------------------------------------
132--阶段总成交额
N(700101,1341231,990901)N1(700101,1341231,990917)
SUM(IF(DATE>=N AND DATE<=N1,AMOUNT,0),0)
统计一段时间的总成交额
参数N为统计时间长度
?--PARAM#2的成交额(前面日期必须小于等于后面日期)
---------------------------------------------------------------
133--筑底指标
N1(5,250,125)N2(1,20,5)N3(5,60,20)
A:=COUNT(C>=REF(C,1),N1)/COUNT(C< REF(C,1),N1);
B:MA(A,N2);
D:MA(A,N3)
B值小于0.6时为很好的买点,股票在此筑底的可能性很大,可耐心持有.
统计 ?日中收阳及收阴的比率为AA的PARAM#2日移动平均A的PARAM#3日移动平均
---------------------------------------------------------------
134--阶段换手率
N(700101,1341231,990913)N1(700101,1341231,990917)
SUM(IF(DATE>=N AND DATE<=N1,VOL,0),0)/CAPITAL
统计一段时间的总换手率
参数N表示统计时间长度
?--PARAM#2的换手率(前面日期必须小于等于后面日期)
---------------------------------------------------------------
135--阶段涨幅
N(700101,1341234,990518)N1(700101,1341231,990917)
A:=HHV(IF(DATE=N1,CLOSE,0),0);
B:=HHV(IF(DATE=N,CLOSE,0),0);
UPR A/B-1)*100
统计一段时间来的股价涨幅
参数N为统计时间长度
?--PARAM#2的涨幅(前面日期必须小于等于后面日期)
---------------------------------------------------------------
136--阶段总成交量
N(700101,1341231,990601)N1(700101,1341231,990917)
SUM(IF(DATE>=N AND DATE<=N1,VOL,0),0)
统计一段时间的总成交量
参数N为统计时间长度
?--PARAM#2的成交量(前面日期必须小于等于后面日期)
---------------------------------------------------------------
137--外盘笔数、内盘笔数、总成笔数
外盘笔数:COUNT(BUYVOL,0);
内盘笔数:COUNT(SELLVOL,0);
总成笔数:BARSCOUNT(C);
---------------------------------------------------------------
138--每笔手数、外内比率
每笔手数:SUM(VOL,0)/BARSCOUNT(C);
外内比率:SUM(BUYVOL,0)/SUM(SELLVOL,0);
---------------------------------------------------------------
139--外内手差、大手之差
外内手差:SUM(BUYVOL,0)-SUM(SELLVOL,0);
大手之差:SUM(IF(BUYVOL>=N,VOL,0),0)-SUM(IF(SELLVOL>=N,VOL,0),0);{N:1,10000,100}
---------------------------------------------------------------
0198--外大手数、内大手数
外大手数:SUM(IF(BUYVOL>=N,VOL,0),0);{N:1,10000,100}
内大手数:SUM(IF(SELLVOL>=N,VOL,0),0);{N:1,10000,100}
---------------------------------------------------------------
140--外内笔差、外大笔数
外内笔差:COUNT(BUYVOL,0)-COUNT(SELLVOL,0);
外大笔数:COUNT(BUYVOL>=N,0);{N:1,10000,100}
---------------------------------------------------------------
141-内大笔数、大手笔差
内大笔数:COUNT(SELLVOL>=N,0);{N:1,10000,100}
大手笔差:COUNT(BUYVOL>=N,0)-COUNT(SELLVOL>=N,0);{N:1,10000,100}
公式技巧(0201~0235)
-----------------------------------------------------------------
142--早晨之星
BACKSET(
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),
3)
-----------------------------------------------------------------
143-黄昏之星
BACKSET(
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),
3)
-----------------------------------------------------------------
144--十字星
CLOSE=OPEN AND HIGH<>LOW
-----------------------------------------------------------------
145--长十字
CLOSE=OPEN AND
HIGH/LOW > 1.03
-----------------------------------------------------------------
146--垂死十字
CLOSE=OPEN AND
CLOSE=LOW AND
CLOSE<>HIGH
-----------------------------------------------------------------
147--早晨十字星
BACKSET(
REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND
REF(OPEN,1) < REF(CLOSE,2) AND
REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),
3)
-----------------------------------------------------------------
148-黄昏十字星
BACKSET(
REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND
REF(OPEN,1) > REF(CLOSE,2) AND
REF(OPEN,1)=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE< REF(CLOSE,2),
3)
-----------------------------------------------------------------
149--射击之星
MIN(OPEN,CLOSE)=LOW AND
HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND
CLOSE > MA(CLOSE,5)
-----------------------------------------------------------------
150--倒转锤头
MIN(OPEN,CLOSE)=LOW AND
HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND
CLOSE < MA(CLOSE,5)
-----------------------------------------------------------------
151--锤头
HIGH = MAX(OPEN,CLOSE) AND
HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND
CLOSE < MA(CLOSE,5)
-----------------------------------------------------------------
152--吊颈
HIGH = MAX(OPEN,CLOSE) AND
HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND
CLOSE > MA(CLOSE,5)
-----------------------------------------------------------------
153--穿头破脚
BACKSET(
(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND
CLOSE/OPEN<0.96 AND
CLOSE< REF(OPEN,1) AND OPEN>REF(CLOSE,1))
OR
(REF(CLOSE,1)/REF(OPEN,1)<0.97 AND
CLOSE/OPEN>1.04 AND
CLOSE>REF(OPEN,1) AND OPEN< REF(CLOSE,1)),
2)
-----------------------------------------------------------------
154--乌云盖顶
BACKSET(
REF(CLOSE,1)/REF(OPEN,1)>1.03 AND
CLOSE/OPEN<0.97 AND
OPEN>REF(CLOSE,1) AND
CLOSE< REF(CLOSE,1),
3)
-----------------------------------------------------------------
155--曙光初现
BACKSET(
REF(CLOSE,1)/REF(OPEN,1)<0.97 AND
CLOSE/OPEN>1.03 AND
OPEN< REF(CLOSE,1) AND
CLOSE>REF(CLOSE,1),
2)
-----------------------------------------------------------------
156--身怀六甲
BACKSET(
ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND
ABS(CLOSE-OPEN)/CLOSE<0.005 AND
MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND
MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1)),
2)
-----------------------------------------------------------------
157-十字胎
BACKSET(
ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND
CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND
CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1)),
2)
-----------------------------------------------------------------
158--平顶
BACKSET(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,2)
-----------------------------------------------------------------
159--平底
BACKSET((ABS(LOW-REF(LOW,1))/LOW<0.001 AND
ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001),2)
-----------------------------------------------------------------
160--大阳烛
CLOSE/OPEN>1.05 AND
HIGH/LOW < CLOSE/OPEN+0.018
-----------------------------------------------------------------
161--大阴烛
OPEN/CLOSE > 1.05 AND
HIGH/LOW < OPEN/CLOSE+0.018
-----------------------------------------------------------------
162--好友反攻
BACKSET(
(REF(CLOSE,1)< REF(OPEN,1) AND
CLOSE>OPEN AND
ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)
OR
(REF(CLOSE,1)>REF(OPEN,1) AND
CLOSE< OPEN AND
ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),
2)
-----------------------------------------------------------------
163--跳空缺口
BACKSET(
HIGH< REF(LOW,1) OR
LOW>REF(HIGH,1),
2)
-----------------------------------------------------------------
164--三个白武士
BACKSET(
REF(CLOSE,2)>REF(OPEN,2) AND
REF(CLOSE,1)>REF(OPEN,1) AND
CLOSE>OPEN AND
REF(CLOSE,1)>REF(CLOSE,2) AND
CLOSE>REF(CLOSE,1),
3)
-----------------------------------------------------------------
165-三只乌鸦
BACKSET(
REF(CLOSE,2)< REF(OPEN,2) AND
REF(CLOSE,1)< REF(OPEN,1) AND
CLOSE< OPEN AND
REF(CLOSE,1)< REF(CLOSE,2) AND
CLOSE< REF(CLOSE,1),
3)
-----------------------------------------------------------------
166--双飞乌鸦
BACKSET(
REF(CLOSE,1)< REF(OPEN,1) AND
CLOSE< OPEN AND
CLOSE/OPEN<0.98,
1)
-----------------------------------------------------------------
167--上升三部曲
BACKSET(
REF(CLOSE,4)/REF(OPEN,4)>1.03 AND
REF(CLOSE,3)< REF(OPEN,3) AND
REF(CLOSE,2)< REF(OPEN,2) AND
REF(CLOSE,1)< REF(OPEN,1) AND
REF(LOW,4)< REF(LOW,3) AND
REF(LOW,4)< REF(LOW,2) AND
REF(LOW,4)< REF(LOW,1) AND
REF(HIGH,4)>REF(HIGH,3) AND
REF(HIGH,4)>REF(HIGH,2) AND
REF(HIGH,4)>REF(HIGH,1) AND
CLOSE/OPEN>1.03 AND
CLOSE>REF(CLOSE,4),
5)
-----------------------------------------------------------------
168--下跌三部曲
BACKSET(
REF(CLOSE,4)/REF(OPEN,4)<0.97 AND
REF(CLOSE,3)>REF(OPEN,3) AND
REF(CLOSE,2)>REF(OPEN,2) AND
REF(CLOSE,1)>REF(OPEN,1) AND
REF(LOW,4)< REF(LOW,3) AND
REF(LOW,4)< REF(LOW,2) AND
REF(LOW,4)< REF(LOW,1) AND
REF(HIGH,4)>REF(HIGH,3) AND
REF(HIGH,4)>REF(HIGH,2) AND
REF(HIGH,4)>REF(HIGH,1) AND
CLOSE/OPEN<0.97 AND
CLOSE< REF(CLOSE,4),
5)
-----------------------------------------------------------------
169-长下影
(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667
-----------------------------------------------------------------
170--长上影
(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,COLORBLUE
-----------------------------------------------------------------
171--分离
BACKSET(
OPEN=REF(OPEN,1) AND
(CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,
2)
-----------------------------------------------------------------
172-光头阳线
HIGH=CLOSE AND
HIGH<>LOW
-----------------------------------------------------------------
173--光脚阴线
LOW=CLOSE AND
HIGH<>LOW
-----------------------------------------------------------------
174--孕育线
N(1,100,2)N1(1,100,2)N2(1,100,2)N3(1,100,1)
BACKSET(REF(CLOSE,2)>REF(OPEN,2) AND
(REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=N/100 AND
REF(OPEN,1)>=REF(CLOSE,1) AND
(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=N1/100 AND
REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND
C>=OPEN AND
(CLOSE-OPEN)/OPEN>=N2/100
AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1)
AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=N3/100
,3)
三根K线的组合,由两阳夹一阴组成,中间的一根阴线被两根阳线完全包围,呈孕育线形态
第一根阳线实体大于等于 ?%;
第二根阴线实体小于等于 ??;
第三根阳线实体大于等于PARAM#3%;
两根阳线的收盘价相差不超过PARAM#4
{设A,B,R为三条曲线;N,M等为参数。如:A:MA(C,N) ; B:=MA(C,M); R:=C/REF(C,1)-1;等等}
CAB:=CROSS(A,B);{交叉}
WZ1:=BARSLAST(CAB);{第一(交叉)点的位置}
WZ2:=REF(WZ1,WZ1+1)+WZ1+2;{第二(交叉)点的位置}
WZ3:=REF(WZ1,WZ2+1)+WZ2+2;{第三(交叉)点的位置}
WZ4:=REF(WZ1,WZ3+1)+WZ3+2;{第四(交叉)点的位置}
WZ5:=REF(WZ1,WZ4+1)+WZ4+2;{第五(交叉)点的位置}
{WZN:=REF(WZ1,WZ(N-1)+1)+WZ(N-1)+2;}
175任意两条指标线在某数以下(或以上)两次金叉的通式
JM:=CROSS("指标名称.指标线1","指标名称.指标线2");
JMCOUNT:=COUNT(JM,BARSLAST("指标名称.指标线1(或指标线2)"大于或小于某数));
JMTJ:40*("指标名称.指标线1(或指标线2)"小于或大于某数));
DRAWTEXT (JMTJ,40,'…………二次金叉');
条件选股:60*(JMTJ AND …………),COLORGREEN;
例一:
MACD在0轴线以下二次金叉
JM:=CROSS("MACD.DIFF","MACD.DEA");
JMCOUNT:=COUNT(JM,BARSLAST("MACD.DEA">=0));
JMTJ:40*("MACD.DEA"<0 AND COUNT(JMCOUNT=2,21)=1);
DRAWTEXT (JMTJ,40,'MACD在0轴线以下二次金叉');
条件选股:60*(JMTJ AND SLOPE(MA(C,5),2)>0),COLORGREEN;
DRAWTEXT (条件选股,50,'5日3%成功率:44.71%');
例二:
KD在60轴线以下二次金叉
JM:=CROSS("KD.K","KD.D");
JMCOUNT:=COUNT(JM,BARSLAST("KD.D">=60));
JMTJ:40*("KD.D"<60 AND COUNT(JMCOUNT=2,21)=1);
DRAWTEXT (JMTJ,"KD.D",'KD在60轴线以下二次金叉');
条件选股:60*(JMTJ AND SLOPE(MA(C,20),3)>0),COLORGREEN;
DRAWTEXT (条件选股,50,'5日3%成功率:50.3%');
例三:
SLOWKD在30轴线以下二次金叉
JM:=CROSS("SLOWKD.K","SLOWKD.D");
JMCOUNT:=COUNT(JM,BARSLAST("SLOWKD.D">=30));
JMTJ:28*("SLOWKD.D"<30 AND COUNT(JMCOUNT=2,21)=1);
DRAWTEXT (JMTJ,28,'SLOWKD在30轴线以下二次金叉');
条件选股:50*(JMTJ AND SLOPE(MA(C,20),2)>0),COLORGREEN;
-------------------------------------------------------------------------------
去除创业板:=IF(CODELIKE('300'),0,1) AND IF(CODELIKE('301'),0,1);
去除科创板:=IF(CODELIKE('688'),0,1);
去停牌:=DYNAINFO(8)>0;
去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));
QCXG:=去除创业板 AND 去除科创板 AND 去停牌 AND 去ST;
|
|