首页>>炒股工具使用 大智慧指标编写案例3

大智慧指标编写案例3

无忧资源网 炒股工具使用 2022-05-03 12:54:03 54

0101--含职工股
0102--次新中小
0103--收盘大于开盘
0104--涨跌幅度
0105--小盘选股
0106--低市盈率选股
0107--业绩选股
0108--小盘股
0109--大盘股
0110--净资产收益率选股
0111--B股板块
0112--无国家股板块
0113--每股净资产选股
0114--每股未分配利润选股
0115--股东权益比率选股
0116--每股公积选股
0117--举牌概念股
0118--指数效应股
0119--H股板块
0120--含转配股
0121--主营业务利润率选股
0122--市净率选股
0123--流动比率选股
0124--次新股选股
0125--上市时段选股
0126--涨幅选股
0127--委比选股
0128--委差选股
0129--内外盘选股(上涨)
0130--内外盘选股(下跌)
0131--阶段涨幅选股
0132--即时量比选股
0133--大手笔成交选股(买)
0134--大手笔成交选股(卖)
0135--买盘大手笔挂单
0136--卖盘大手笔挂单
0137--换手率选股
0138--涨速选股
0139--振幅选股
0140--股价-均价选股
0141--N日内创新高
0142--N日内创新低
0143--M日内阴线多于阳线
0144--M日内阳线多于阴线
0145--N日内上涨多于下跌
0146--N日内下跌多于上涨
0147--连续N天收阳线
0148--连续N天收阴线
0149--连续N天上涨
0150--连续N日下跌
0151--首次创新高
0152--创历史新高
0153--创历史新低
0154--单日放量
0155--阶段缩量
0156--阶段放量
0157--持续放量
0158--持续缩量
0159--间隔放量
0160--放量上攻
0161--温和放量上攻
0162--突然放量
0163--平台整理
0164--尾盘打压
0165--尾盘拉升
0166--盘中逆势走强股
0167--突破长期盘整
0168--阶段强势股
0169--阶段弱势股
0170--大盘同步选股
0171--N日内强势股
0172--均线多头排列
0173--均线空头排列
0174--强势整理
0175--高开大阴线
0176--低开大阳线
0177--跳空缺口选股
0178--大买单提取
0179--今日大单笔数
0180--大盘同步指标
0181--大手笔之差
0182--活跃股指标
0183--阶段强势指标
0184--内外盘比率
0185--内外盘之差
0186--平均每笔成交
0187--QHLSR阻力指标
0188--盘中强势指标
0189--大卖单提取
0190--阶段总成交额
0191--筑底指标
0192--阶段换手率
0193--阶段涨幅
0194--阶段总成交量
0195--外盘笔数、内盘笔数、总成笔数
0196--每笔手数、外内比率
0197--外内手差、大手之差
0198--外大手数、内大手数
0199--外内笔差、外大笔数
0200--内大笔数、大手笔差

////////////////////////////////////////////

公式技巧(0201~0235)

0201--早晨之星
0202--黄昏之星
0203--十字星
0204--长十字
0205--垂死十字
0206--早晨十字星
0206--早晨十字星
0208--射击之星
0209--倒转锤头
0210--锤头
0211--吊颈
0212--穿头破脚
0213--乌云盖顶
0214--曙光初现
0215--身怀六甲
0216--十字胎
0217--平顶
0218--平底
0219--大阳烛
0220--大阴烛
0221--好友反攻
0222--跳空缺口
0223--三个白武士
0224--三只乌鸦
0225--双飞乌鸦
0226--上升三部曲
0227--下跌三部曲
0228--长下影
0229--长上影
0230--分离
0231--光头阳线
0232--光脚阴线
0233--孕育线
0234--如何编写筹码分布公式
0235--公式底部显示“开、高、低、收”

  0101--含职工股

FINANCE(8)>0
---------------------------------------------------------------  
0102--次新中小

N(1,255,30)

BARSCOUNT(C)< N AND
FINANCE(7)<=10000
---------------------------------------------------------------  
0103--收盘大于开盘

CLOSE>=DYNAINFO(4)
---------------------------------------------------------------  
0104--涨跌幅度

N(0,0.1,0.05)

DYNAINFO(14)>=N
--------------------------------------------------------------- 
0105--小盘选股

CAPITAL<=500000 AND FINANCE(33)>=0.01 AND CLOSE<=30

---------------------------------------------------------------
0106--低市盈率选股

N(10,30,30)

DYNAINFO(39)<=N

选择市盈率较小的股票.

市盈率小于PARAM#1
--------------------------------------------------------------- 
0107--业绩选股

N(0,100,0.4)

FINANCE(33)>N

业绩选股,每股收益在0.4元以上

每股收益在PARAM#1元以上

---------------------------------------------------------------
0108--小盘股

N(700,50000,3000)

FINANCE(7)<=N

选择流通股较小的股票

流通股小于PARAM#1万股
--------------------------------------------------------------- 
0109--大盘股

N(15000,30000,20000)

FINANCE(7)>=N

流通股大于PARAM#1万股

--------------------------------------------------------------- 
0110--净资产收益率选股

N(0,300,20)

FINANCE(37)>(N/100)

净资产收益率高于N的股票

净资产收益率大于百分之PARAM#1
--------------------------------------------------------------- 
0111--B股板块

FINANCE(5)>0

含有B股的股票

选择含B股的股票
---------------------------------------------------------------
0112--无国家股板块

FINANCE(2)=0

国家股为零的股票.

选择不含国家股的股票
---------------------------------------------------------------  
0113--每股净资产选股

N(1,5,2.5)

FINANCE(34)>N

选出每股净资产大于N元的股票.

每股净资产大于PARAM#1元
---------------------------------------------------------------
0114--每股未分配利润选股

N(0.1,2,1)

FINANCE(32)>N

每股未分配利润大于N的股票

每股未分配利润大于PARAM#1元
--------------------------------------------------------------- 
0115--股东权益比率选股

N(1,100,50)

FINANCE(36)>(N/100)

股东权益比率大于N的股票.

股东权益比率大于百分之PARAM#1
--------------------------------------------------------------- 
0116--每股公积选股

N(1,4,2)

FINANCE(18)>N

每股公积金大于PARAM#1元
--------------------------------------------------------------- 
0117--举牌概念股

N(1,100,50)

FINANCE(7)/FINANCE(1)>=(N/100)

流通股在总股本中的比重很大的股票,这类股票相对来说更容易被收购和举牌,因此被市场称为举牌概念股.

流通股占总股本的比重高于PARAM#1%,有被收购和举牌的概念.

--------------------------------------------------------------- 
0118--指数效应股

M(1,100,10)

FINANCE(7)/FINANCE(1)<=(M/100)

流通股占总股本的比例小于M%,这类股票对指数的影响比较大,容易成为主力拉抬指数的工具.

流通股占总股本的比重低于PARAM#1%,这类股票对指数的影响比较大.

--------------------------------------------------------------- 
0119--H股板块

FINANCE(6)>0

选择含有H股的股票,该板块具有明显的联动效应.

选择含有H股的股票.
--------------------------------------------------------------- 
0120--含转配股

FINANCE(9)>0

选择含有转配股的股票,这类股票在特定的时候具有一定的联动效应.

选择含有转配股的股票.


---------------------------------------------------------------  
0121--主营业务利润率选股

N(1,100,30)

FINANCE(21)/FINANCE(20)>=(N/100)

主营业务利润率高于N的股票,主营业务利润率越高则说明主营业务越鲜明,公司的发展越稳健.

主营业务利润率大于PARAM#1%

--------------------------------------------------------------- 
0122--市净率选股

N(1,50,5)

C/FINANCE(34)< N

市净率=市价/每股净资产
市净率>N
市净率越低公司股价越有被低估的可能,这类股票从理论上讲具有更高的安全性.

市价/每股净资产小于PARAM#1倍,该比率越低,从基本分析来看理论上越安全.


--------------------------------------------------------------- 
0123--流动比率选股

N(0.1,5,1)

FINANCE(11)/FINANCE(15)>N

流动比率大于N的股票

流动资产/流动负债大于PARAM#1倍,该比率越大其财务风险在一定程度上越小.
---------------------------------------------------------------
0124--次新股选股

N(1,60,30)

BARSCOUNT(C)< N

次新股选股
上市时间在N个交易日(缺损值为30个交易日)的股票

上市天数小于PARAM#1天,选出近期上市的新股.
--------------------------------------------------------------- 
0125--上市时段选股

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#1年PARAM#2月至PARAM#3月上市的股票
---------------------------------------------------------------  
0126--涨幅选股

N(0.01,0.1,0.03)

DYNAINFO(14)>=N

选择目前涨幅大于N的股票,这类股票有可能成为今天的强势股,特别是在开市有一段时间并且大盘呈现一路阴跌的情况下.

选择当前涨幅大于PARAM#1的股票
---------------------------------------------------------------  
0127--委比选股

N(0.5,1,0.5)

DYNAINFO(15)>N

选择当前委比大于等于N的股票,委比越大则说明买盘越强劲,(但这也不是绝对的,有可能被人为操纵).

选择当前委比大于PARAM#1的股票
---------------------------------------------------------------  
0128--委差选股

N(1,9999,200)

DYNAINFO(16)>N

选择(委买量-委卖量)的差为正数并且大于N手的股票,差值越大买盘越强.

选择当前(委买量-委卖量)大于PARAM#1手的股票(参数取正值)
---------------------------------------------------------------  
0129--内外盘选股(上涨)

DYNAINFO(22)>DYNAINFO(23) AND C>REF(C,1)

内盘大于外盘,股票仍上涨。这类股票存在一定异动,有庄家活动的可能.

内盘大于外盘,股票仍上涨。

--------------------------------------------------------------- 
0130--内外盘选股(下跌)

DYNAINFO(23)>DYNAINFO(22) AND C< REF(C,1)

外盘大于内盘,股价仍下跌.这类股票存在一定异动,有庄家活动的可能.

外盘大于内盘,股价仍下跌.
---------------------------------------------------------------  
0131--阶段涨幅选股

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#1日——PARAM#2日涨幅大于PARAM#3%的股票

--------------------------------------------------------------- 
0132--即时量比选股

N(1,100,1)

DYNAINFO(17)>=N

选择量比大于N的股票

当前的量比大于PARAM#1的股票

---------------------------------------------------------------  
0133--大手笔成交选股(买)

N(1,10000,200)

BUYVOL>=N

主动性买盘成交量大于N的股票
(只能在分笔成交周期中使用)

当前主动性买盘的单比成交大于PARAM#1的股票
---------------------------------------------------------------

N(1,10000,200)

SELLVOL>N

当前主动性卖盘的单比成交量大于PARAM#1的股票
--------------------------------------------------------------- 
0135--买盘大手笔挂单

N(1,10000,1000)

(BIDVOL(1)+BIDVOL(2)+BIDVOL(3))>=N

选择买盘中挂有大手笔的股票
(仅用于分笔成交周期中)

当前买盘中的三笔挂单之和大于等于PARAM#1的股票

---------------------------------------------------------------  
0136--卖盘大手笔挂单

N(1,10000,1000)

(ASKVOL(1)+ASKVOL(2)+ASKVOL(3))>=N

选择卖盘中挂有大手笔的股票
(仅用于分笔成交周期中)

当前卖盘中三笔挂单之和大于等于PARAM#1的股票

---------------------------------------------------------------  
0137--换手率选股

N(0.01,100,5)

DYNAINFO(37)>=N/100

单日换手率大于N的股票

当前换手率大于等于PARAM#1%的股票

---------------------------------------------------------------  
0138--涨速选股

N(0.01,100,1)

DYNAINFO(24)>=N/100

选择当前涨速大于N的股票

当前五分钟涨速大于等于PARAM#1%的股票

--------------------------------------------------------------- 
0139--振幅选股

N(0.1,100,5)

DYNAINFO(13)>=N/100

选择今日振幅在N的股票

当前振幅大于等于PARAM#1%的股票
--------------------------------------------------------------- 
0140--股价-均价选股

DYNAINFO(7)>DYNAINFO(11)

分时图中目前股价高于均价的股票
--------------------------------------------------------------- 
0141--N日内创新高

N(2,10,3)

HHV(HIGH,N)=HHV(HIGH,0) AND BARSCOUNT(C)>=N

选择PARAM#1日内创出历史新高的股票
--------------------------------------------------------------- 
0142--N日内创新低

N(1,5,3)

LLV(L,3)=LLV(L,0) AND BARSCOUNT(C)>=N

选择PARAM#1日内创出历史新低的股票

---------------------------------------------------------------  
0143--M日内阴线多于阳线

M(3,300,30)N(50,100,60)

COUNT(OPEN>CLOSE,M)/M >= N/100

PARAM#1日内阴线数量超过PARAM#2%

--------------------------------------------------------------- 
0144--M日内阳线多于阴线

M(3,300,30)N(50,100,60)

COUNT(OPEN< CLOSE,M)/M >= N/100

PARAM#1日内阳线数量超过PARAM#2%

---------------------------------------------------------------
0145--N日内上涨多于下跌

N(1,300,120)M(50,100,60)

COUNT(C>REF(C,1),M)/M >= N/100

PARAM#1日内上涨(收盘价高于昨收)的天数超过PARAM#2%
--------------------------------------------------------------- 
0146--N日内下跌多于上涨

N(1,300,120)M(50,100,60)

COUNT(C< REF(C,1),N)/N >= M/100

PARAM#1日内下跌(收盘价低于昨收)的天数超过PARAM#2%
--------------------------------------------------------------- 
0147--连续N天收阳线

N(3,10,7)

UP:=CLOSE>OPEN;
COUNT(UP,N)=N

连续N天收阳线

选择连续PARAM#1个交易日收阳线的股票

---------------------------------------------------------------  
0148--连续N天收阴线

N(3,10,5)

DOWN:=OPEN>CLOSE;
COUNT(DOWN,N)=N

连续N日收阴线

选择连续PARAM#1个交易日收阴线的股票
--------------------------------------------------------------- 
0149--连续N天上涨

N(3,20,5)

COUNT(C>REF(C,1),N)=N

选择连续N个交易日都上涨的股票

选择连续PARAM#1个交易日上涨的股票
--------------------------------------------------------------- 
0150--连续N日下跌

N(3,20,5)

COUNT(C< REF(C,1),N)=N

N日内收盘价为连续下跌的股票

选择连续PARAM#1日都下跌的股票
--------------------------------------------------------------- 
0151--首次创新高

BARSSINCE(C>HHV(IF(BARSCOUNT(C)=1,HIGH,0),0))+1=1

选择上市后首次创出新高的的股票

--------------------------------------------------------------- 
0152--创历史新高

HHV(CLOSE,0)=CLOSE

收盘价创历史新高

--------------------------------------------------------------- 
0153--创历史新低

LLV(CLOSE,0) = CLOSE

收盘价价创历史新低

--------------------------------------------------------------- 
0154--单日放量

N(0.1,100,15)

A:=VOL/CAPITAL>=(N/100);
A AND (NOT(REF(A,1)))

单日换手率大于N%

单日换手率大于PARAM#1%

---------------------------------------------------------------  
0155--阶段缩量

N(1,100,5)N1(1,100,10)

SUM(VOL,N1)/CAPITAL<=(N/100)

N1日内换手率小于百分之N

PARAM#2个周期的阶段换手率小于PARAM#1%

--------------------------------------------------------------- 
0156--阶段放量

N(1,100,10)N1(1,100,5)

SUM(VOL,N1)/CAPITAL>=(N/100)

N1日内换手率大于百分之N

PARAM#2个周期的阶段换手率小于PARAM#1%
---------------------------------------------------------------  
0157--持续放量

M(1,100,3)

B:=VOL>REF(VOL,1);
COUNT(B,M)=M

成交量连续M日放大

今日成交量大于昨日成交量,这种情况连续PARAM#1天出现.

---------------------------------------------------------------  
0158--持续缩量

M(1,100,3)

B:=VOL< REF(VOL,1);
COUNT(B,M)=M

成交量连续M日缩小

今日成交量小于昨日成交量,这种情况连续PARAM#1天出现.

---------------------------------------------------------------  
0159--间隔放量

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#1日内五日均量的最大值小于最小值的PARAM#2倍,
成交量大于等于五日均量的PARAM#3倍的情况发生的次数多于PARAM#4次
即:
成交量分布比较均匀,偶尔有所放大,但马上又缩小.如果发生在底部区域,且盘整时间较长,则很有可能是庄家的吸货行为.

--------------------------------------------------------------- 
0160--放量上攻

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
{ www.buyhaogu.com 买好股公式网_股票
指标公式}

为庄家的拉升行为,可谨慎介入.

成交量连续PARAM#4日放大,且每日股价涨幅均大于PARAM#1%;
PARAM#2日内换手率大于PARAM#3%

--------------------------------------------------------------- 
0161--温和放量上攻

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)

连续PARAM#1个周期放大并保持上涨势头
当日换手率小于 PARAM#2%

---------------------------------------------------------------  
0162--突然放量

N(1,300,10)M(1,40,3)

VOL>REF(HHV(VOL,N),1)*M

成交量较前N周期的最大成交量增大M倍

当前成交量高于PARAM#1个周期中最大成交量的PARAM#2倍
--------------------------------------------------------------- 
0163--平台整理

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%的股票

平台整理PARAM#1个周期
平台整理幅度PARAM#2%
---------------------------------------------------------------  
0164--尾盘打压

N(0,20,2)

HOUR>14 AND MINUTE>56 AND CLOSE/REF(CLOSE,2) <= 1-N/100

本指标仅适用于1分钟线

14:56以后2分钟跌幅超过PARAM#1%

---------------------------------------------------------------
0165--尾盘拉升

N(0,20,2)

HOUR>14 AND MINUTE>56 AND CLOSE/REF(CLOSE,2) >= 1+N/100

14:56以后2分钟涨幅超过PARAM#1%

---------------------------------------------------------------  
0166--盘中逆势走强股

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#1点——PARAM#2点之间涨幅高于大盘涨幅的股票
--------------------------------------------------------------- 
0167--突破长期盘整

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

前PARAM#1日在上下PARAM#2%的幅度内整理,今日突破。

--------------------------------------------------------------- 
0168--阶段强势股

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#1日--PARAM#2日之间涨幅高于大盘的股票


---------------------------------------------------------------  
0169--阶段弱势股

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#1日--PARAM#2日之间涨幅小于大盘的股票
---------------------------------------------------------------  
0170--大盘同步选股

N(1,100,10)M(1,100,50)

COUNT((C>O AND INDEXC>INDEXO) OR (C< O AND INDEXC< INDEXO),N)/N > M/100

PARAM#1周期中与大盘走势相同(同收阴线或同收阳线)的比例超过PARAM#2%
--------------------------------------------------------------- 
0171--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#1日涨幅大于等于同期大盘涨幅的PARAM#2倍

 0101--含职工股

FINANCE(8)>0
---------------------------------------------------------------  
0172--均线多头排列

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)
{ www.buyhaogu.com 买好股公式网_股票指标公式}

均线系统呈多头排列,多方占据一定优势.

PARAM#1,PARAM#2,PARAM#3,PARAM#4日均线呈多头排列

---------------------------------------------------------------  
0173--均线空头排列

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#1,PARAM#2,PARAM#3,PARAM#4日均线呈空头排列
---------------------------------------------------------------  
0174--强势整理

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线

强势整理:一根实体超过PARAM#1%的长阳,后面跟若干个振幅不超过PARAM#2%的K线
--------------------------------------------------------------- 
0175--高开大阴线

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#1%,当日股价较开盘价跌幅大于PARAM#2

---------------------------------------------------------------  
0176--低开大阳线

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#1%,当日股价较开盘价涨幅大于PARAM#2

--------------------------------------------------------------- 
0177--跳空缺口选股

HIGH< REF(LOW,1) OR
LOW>REF(HIGH,1)

--------------------------------------------------------------- 
0178--大买单提取

N(1,1000,200)

SUM(IF(BUYVOL>=N,VOL,0),0)

提取今日主动性买盘成交量中的大手笔成交,并对其求和.
该指标的值越大,则说明当日多方的力量越强大.

统计主动性买盘成交量大于PARAM#1手的成交量总和
---------------------------------------------------------------  
0179--今日大单笔数

N(1,10000,200)

COUNT(VOL>N,0)

统计今日大于N手的买卖单的笔数,笔数越多,则说明成交越活跃.

统计今日成交量大于PARAM#1手的数量

---------------------------------------------------------------  
0180--大盘同步指标

N(1,1000,7)

COUNT((C>O AND INDEXC>INDEXO) OR (C< O AND INDEXC< INDEXO),N)/N

统计N日中和大盘保持一致,同收阳线或同收阴线的日数所占的比例,
用法:比例越接近1,该股和大盘走势越一致。

N(PARAM#1)天中与大盘走势保持一致,同收阳线和阴线的天数/N天

---------------------------------------------------------------  
0181--大手笔之差

N(1,1000,100)N1(1,1000,100)

SUM(IF(BUYVOL>=N,VOL,0),0)-SUM(IF(SELLVOL>=N1,VOL,0),0)

求当日大手笔的买单与大手笔的卖单之差,该差值为正则说明多方占据优势,形势有利于多方,可看涨.该值越大多方优势月明显.

大于等于PARAM#1手的主动性买盘之和-
大于等于PARAM#2手的主动性卖单之和


---------------------------------------------------------------  
0182--活跃股指标

MA(VOL,3)/CAPITAL
--------------------------------------------------------------- 
0183--阶段强势指标

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值越大则说明股票在这一阶段中走势越强.

PARAM#1天中大盘收阴线个股收阳线的天数/大盘收阴线的天数

---------------------------------------------------------------  
0184--内外盘比率

SUM(BUYVOL,0)/SUM(SELLVOL,0)

统计今日的主动性买盘之和和主动性卖盘之和,并求前者与后者的比值.该比值大于1则说明多方占据一定优势,比值越大优势越明显,该股可谨慎看涨.
--------------------------------------------------------------- 
0185--内外盘之差

SUM(BUYVOL,0)-SUM(SELLVOL,0)

统计今日的主动性买盘之和和主动性卖盘之和,并求前者与后者的差值.该差值大于0则说明多方占据一定优势,差值越大优势越明显,该股可谨慎看涨.

---------------------------------------------------------------  
0186--平均每笔成交

SUM(VOL,0)/BARSCOUNT(C)

用当日成交量除以当日成交笔数,求得当日平均每一笔成交的成交手数,该值越大,成交越活跃,庄家的活动越明显,
特别是当该比值前期一直很小,近期明显放大,庄家活动的迹象更加明显.如果出现在底部,则有可能是庄家在吸货.

---------------------------------------------------------------
0187--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

---------------------------------------------------------------  
0188--盘中强势指标

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

本指标只能用于分笔成交分析
--------------------------------------------------------------- 
0189--大卖单提取

N(1,1000,100)

SUM(IF(SELLVOL>=N,VOL,0),0)

提取今日主动性卖盘成交量中的大手笔成交,并对其求和.
该指标的值越大,则说明当日空方的力量越强大.

统计主动性卖盘成交量大于PARAM#1手的成交量总和

--------------------------------------------------------------- 
0190--阶段总成交额

N(700101,1341231,990901)N1(700101,1341231,990917)

SUM(IF(DATE>=N AND DATE<=N1,AMOUNT,0),0)

统计一段时间的总成交额
参数N为统计时间长度

PARAM#1--PARAM#2的成交额(前面日期必须小于等于后面日期)

--------------------------------------------------------------- 
0191--筑底指标

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时为很好的买点,股票在此筑底的可能性很大,可耐心持有.

统计PARAM#1日中收阳及收阴的比率为AA的PARAM#2日移动平均A的PARAM#3日移动平均
--------------------------------------------------------------- 
0192--阶段换手率

N(700101,1341231,990913)N1(700101,1341231,990917)

SUM(IF(DATE>=N AND DATE<=N1,VOL,0),0)/CAPITAL

统计一段时间的总换手率
参数N表示统计时间长度

PARAM#1--PARAM#2的换手率(前面日期必须小于等于后面日期)


--------------------------------------------------------------- 
0193--阶段涨幅

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#1--PARAM#2的涨幅(前面日期必须小于等于后面日期)
---------------------------------------------------------------  
0194--阶段总成交量

N(700101,1341231,990601)N1(700101,1341231,990917)

SUM(IF(DATE>=N AND DATE<=N1,VOL,0),0)

统计一段时间的总成交量
参数N为统计时间长度

PARAM#1--PARAM#2的成交量(前面日期必须小于等于后面日期)
--------------------------------------------------------------- 
0195--外盘笔数、内盘笔数、总成笔数

外盘笔数:COUNT(BUYVOL,0);

内盘笔数:COUNT(SELLVOL,0);

总成笔数:BARSCOUNT(C);
--------------------------------------------------------------- 
0196--每笔手数、外内比率

每笔手数:SUM(VOL,0)/BARSCOUNT(C);

外内比率:SUM(BUYVOL,0)/SUM(SELLVOL,0);
---------------------------------------------------------------  
0197--外内手差、大手之差

外内手差: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}

---------------------------------------------------------------  
0199--外内笔差、外大笔数

外内笔差:COUNT(BUYVOL,0)-COUNT(SELLVOL,0);

外大笔数:COUNT(BUYVOL>=N,0);{N:1,10000,100}
---------------------------------------------------------------  
0200--内大笔数、大手笔差

内大笔数:COUNT(SELLVOL>=N,0);{N:1,10000,100}

大手笔差:COUNT(BUYVOL>=N,0)-COUNT(SELLVOL>=N,0);{N:1,10000,100}

公式技巧(0201~0235)


-----------------------------------------------------------------
0201--
早晨之星

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)
-----------------------------------------------------------------  
0202--黄昏之星

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)

----------------------------------------------------------------- 
0203--十字星

CLOSE=OPEN AND HIGH<>LOW

-----------------------------------------------------------------  
0204--长十字

CLOSE=OPEN AND
HIGH/LOW > 1.03
-----------------------------------------------------------------  
0205--垂死十字

CLOSE=OPEN AND
CLOSE=LOW AND
CLOSE<>HIGH
----------------------------------------------------------------- 
0206--早晨十字星

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)

-----------------------------------------------------------------  
0207--黄昏十字星

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)
-----------------------------------------------------------------  
0208--射击之星

MIN(OPEN,CLOSE)=LOW AND
HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND
CLOSE > MA(CLOSE,5)


-----------------------------------------------------------------  
0209--倒转锤头

MIN(OPEN,CLOSE)=LOW AND
HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND
CLOSE < MA(CLOSE,5)
-----------------------------------------------------------------  
0210--锤头

HIGH = MAX(OPEN,CLOSE) AND
HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND
CLOSE < MA(CLOSE,5)
----------------------------------------------------------------- 
0211--吊颈

HIGH = MAX(OPEN,CLOSE) AND
HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND
CLOSE > MA(CLOSE,5)

-----------------------------------------------------------------  
0212--穿头破脚

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)
----------------------------------------------------------------- 
0213--乌云盖顶

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)


----------------------------------------------------------------- 
0214--曙光初现

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)
----------------------------------------------------------------- 
0215--身怀六甲

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)

----------------------------------------------------------------- 
0216--十字胎

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)

-----------------------------------------------------------------  
0217--平顶

BACKSET(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,2)

----------------------------------------------------------------- 
0218--平底

BACKSET((ABS(LOW-REF(LOW,1))/LOW<0.001 AND
ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001),2)

----------------------------------------------------------------- 
0219--大阳烛

CLOSE/OPEN>1.05 AND
HIGH/LOW < CLOSE/OPEN+0.018

-----------------------------------------------------------------  
0220--大阴烛

OPEN/CLOSE > 1.05 AND
HIGH/LOW < OPEN/CLOSE+0.018
-----------------------------------------------------------------  
0221--好友反攻

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)

-----------------------------------------------------------------  
0222--跳空缺口

BACKSET(
HIGH< REF(LOW,1) OR
LOW>REF(HIGH,1),
2)


-----------------------------------------------------------------  
0223--三个白武士

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)

-----------------------------------------------------------------  
0224--三只乌鸦

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)

-----------------------------------------------------------------  
0225--双飞乌鸦

BACKSET(
REF(CLOSE,1)< REF(OPEN,1) AND
CLOSE< OPEN AND
CLOSE/OPEN<0.98,
1)

----------------------------------------------------------------- 
0226--上升三部曲

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)
----------------------------------------------------------------- 
0227--下跌三部曲

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)
-----------------------------------------------------------------  
0228--长下影

(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667
-----------------------------------------------------------------  
0229--长上影

(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,COLORBLUE
-----------------------------------------------------------------  
0230--分离

BACKSET(
OPEN=REF(OPEN,1) AND
(CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,
2)

-----------------------------------------------------------------  
0231--光头阳线

HIGH=CLOSE AND
HIGH<>LOW
----------------------------------------------------------------- 
0232--光脚阴线

LOW=CLOSE AND
HIGH<>LOW
-----------------------------------------------------------------  
0233--孕育线

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#1%;
第二根阴线实体小于等于PARAM#2%;
第三根阳线实体大于等于PARAM#3%;
两根阳线的收盘价相差不超过PARAM#4
-----------------------------------------------------------------  
0234--如何编写筹码分布公式

这只是一个简单的示例,说明如何写筹码分布的公式代码。激活十字光标后有效。如果自己有更好的原理、想法,可在代码中自己实现,比如加入历史衰减等等。过去,这类公式需要借助于DLL来写,且计算好结果后,也不容易画出筹码分布,现在,有了
飞狐的循环及DRAWSL()绘图函数,就很容易自己来实现了。以一个简单的按成交量平均分配为例,示例如下:

VARIABLE:PV[50]=0,PC[50]=0;
HH:=HHV(HIGH,0);
LL:=LLV(LOW,0);
FV:=VOL;
FH:=HIGH;
FL:=LOW;
P:=SYSPARAM(1);
DD:=(HH[P]-LL[P])/49;
FOR I=P DOWNTO 1 DO BEGIN
SH:=(FH-LL[P])/DD+1;
SL:=(FL-LL[P])/DD+1;
DJ:=FV/(SH-SL+1);
FOR J=SL TO SH DO PV[J]:=PV[J]+DJ;
END;
S:=0;
FOR I=1 TO 50 DO IF S < PV THEN S:=PV;
BL:=S/(SYSPARAM(3)-SYSPARAM(2))*2;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5),0,PV[1]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD,0,PV[2]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*02,0,PV[03]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*03,0,PV[04]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*04,0,PV[05]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*05,0,PV[06]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*06,0,PV[07]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*07,0,PV[08]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*08,0,PV[09]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*09,0,PV[10]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*10,0,PV[11]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*11,0,PV[12]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*12,0,PV[13]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*13,0,PV[14]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*14,0,PV[15]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*15,0,PV[16]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*16,0,PV[17]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*17,0,PV[18]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*18,0,PV[19]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*19,0,PV[20]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*20,0,PV[21]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*21,0,PV[22]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*22,0,PV[23]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*23,0,PV[24]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*24,0,PV[25]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*25,0,PV[26]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*26,0,PV[27]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*27,0,PV[28]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*28,0,PV[29]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*29,0,PV[30]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*30,0,PV[31]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*31,0,PV[32]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*32,0,PV[33]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*33,0,PV[34]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*34,0,PV[35]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*35,0,PV[36]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*36,0,PV[37]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*37,0,PV[38]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*38,0,PV[39]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*39,0,PV[40]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*40,0,PV[41]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*41,0,PV[42]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*42,0,PV[43]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*43,0,PV[44]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*44,0,PV[45]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*45,0,PV[46]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*46,0,PV[47]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*47,0,PV[48]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*48,0,PV[49]/BL+1,1),COLORGRAY;
DRAWSL(BARPOS=SYSPARAM(3),SYSPARAM(5)+DD*49,0,PV[50]/BL+1,1),COLORGRAY;

注:代码未全部显示,只能在工具箱中复制。
-----------------------------------------------------------------  
0235--公式底部显示“开、高、低、收”

A:=BACKSET(ISLASTBAR,BARSLAST(CROSS(K,D))+1);
B:=A>REF(A,1);

D1:=BARSCOUNT(C);
G:=SYSPARAM(2)=D1;
P:=G>REF(G,1);

VERTLINE(B);
DRAWNUMBER(B,K,K,2);

DRAWTEXT(REF(P,40),0,'开:');
DRAWTEXT(REF(P,60),0,'高:');
DRAWTEXT(REF(P,80),0,'低:');
DRAWTEXT(REF(P,100),0,'收:');

DRAWNUMBER(REF(G,45),0,REFX(O,BARPOS-SYSPARAM(1)),2);
DRAWNUMBER(REF(G,65),0,REFX(H,BARPOS-SYSPARAM(1)),2);
DRAWNUMBER(REF(G,85),0,REFX(L,BARPOS-SYSPARAM(1)),2);
DRAWNUMBER(REF(G,105),0,REFX(C,BARPOS-SYSPARAM(1)),2);

 


标签: