通达信量粉高量看盘主图源码主图
{板块显示}
SBL:=STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK);
DRAWTEXT_FIX(1,0.06,0,0, SBL),COLORGREEN;
DRAWTEXT_FIX(1,0.83,0,0,'红果培训QQ:707712667')COLORLIGRAY;
AA:=(C-REF(C,1))/REF(C,1)*100;
DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945;
跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW,COLORGREEN;
跌停:=C=DTPRICE(REF(C,1),0.1) OR DS;
一字跌停:=REF(C,1)<C*1.0997 AND H=O AND L=H;
STICKLINE(涨停,O,C,2,0),COLORMAGENTA;
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
均价:AMOUNT/VOL/100 NODRAW;
DRAWTEXT(CURRBARSCOUNT=21, 现价-0.05,'21')COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=89, 现价-0.05,'89')COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=144, 现价-0.05,'144')COLORGREEN;
LDM23:=基准价;
LDM25:=ABS(LOW-LDM23)<=LDM24;
LDM27:=ABS(CLOSE-LDM23)<=LDM24;
LDM29:=LDM25 OR LDM26 OR LDM27 OR LDM28 ;
精准点个数:IF(LDM30>0,LDM30+1,0),NODRAW,COLORMAGENTA;
QB:=MIN(CLOSE,OPEN);
阴顶开盘:=REF(C<O,1) AND 跳空;
顶价:=IF(C>=REF(C,1)*1.03 OR C>O*1.03 OR C<=REF(C,1)*0.97 OR C<O*0.97 ,MAX(C,O),H);
NOTEXT1:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,21),1)+1)+1,CONST(REF(顶价,REF(HHVBARS(VOL,21),1)+1)),DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(ISLASTBAR,NOTEXT1*1,CON2STR(NOTEXT1,2)),COLORMAGENTA;
NOTEXT5:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(VOL,100),1)+1)+1,CONST(REF(顶价,REF(HHVBARS(VOL,100),1)+1)),DRAWNULL),COLORYELLOW DOTLINE;
ZTD:= CONST(REF(BARSLAST(峰高量),1)+1)+1;
{逃顶线}
TD:=CONST(BARSLAST(逃顶高量));
{涨停板防守线}
板底:IF(CURRBARSCOUNT<=CONST(REF(BARSLAST(涨停),1)+1)+1,CONST(REF(L,REF(BARSLAST(涨停),1)+1)),DRAWNULL),COLORLIGREEN DOTLINE ;
阴K:=C<REF(C,1) OR C<O OR (C>O AND 均价<REF(C,1));
阴线实体最高价:=REF(MAX(C,O),阴线天数);
阳胜条件:=阴线天数>0 AND C>=阴线实体最高价 AND V>=阴线成交量 AND C>REF(MIN(C,O),阴线天数+1);
单阳胜:=REF(BARSLASTCOUNT(阴K)>0,1) AND C>REF(MAX(C,O),1);
{黄金基柱}
长阳矮柱:=REF(C<O,1) AND C>REF(C,1)*1.03 AND V<REF(HHV(V,5),1);
高阳柱:=(V>REF(V,1) AND V>REFX(V,1)) AND C>REF(C,1);
{黄金柱}
HJJ2:=C<(REFX(C,3)+REFX(C,2)+REFX(C,1))/3;
价升幅:=(后三日均价/C-1)*100;
HJL1:=V>(REFX(V,1)+REFX(V,2)+REFX(V,3))/3;
后三日均量:=(REFX(V,3)+REFX(V,2)+REFX(V,1));
量升幅:=(后三日均价/V-1)*100;
黄金柱:=(黄金升幅 OR 黄金量) AND 黄金价 AND 黄金基柱;
ZJL2:=C>REF(C,1) AND C>REF(C,2) AND C>O AND C>REF(C,1);
金三:=黄金柱 AND REFX(ZJL3,3);
DRAWICON(黄金柱 OR 金三 OR 跳空黄金柱,L*0.985,23);
价涨量缩:=C>REF(C,1) AND V<=REF(V,1);
{腾空阳眼}
STICKLINE(腾空阳眼,C,O,2,0)COLORRED;
{精准眼}
STICKLINE(精准隐眼,C,O,1.5,0)COLORBLUE;
{黄金阴}
STICKLINE(假阴真阳,C,O,1.5,0)COLORRED;
STICKLINE(黄金阴,C,O,2,0)COLORYELLOW;
{黄金阳黄金眼}
STICKLINE(假阳真阴,C,O,1.8,0)COLORCYAN;
STICKLINE(黄金阳,C,O,1.8,0)COLORYELLOW;
{乾坤眼}
乾坤眼:=REF(C<O,2) AND REF(C<REF(C,1) AND O<REF(O,1),1) AND C>REF(MIN(C,O),2) AND C>REF(MAX(C,O),1)
STICKLINE(乾坤眼,C,O,0.8,0)COLORMAGENTA;
STICKLINE(阳盖阴,C,O,0.8,0)COLORRED;
获利比例:=WINNER(C);
启动阳:= REF(阴K,2) AND REF(阴K,1) AND C>REF(MAX(C,O),2) AND O>REF(C,1)
启动眼:= REF(阴K,2) AND REF(阴K,1) AND C>REF(MAX(C,O),2) AND O>REF(C,1)
DRAWICON(启动眼,H+0.03,1);
DRAWTEXT(启动眼,L,'启')COLORRED;
MB1:=EMA(WINNER(C)*100,5),COLORYELLOW;
MB3:=EMA(MB2,2),COLORBLUE;
N:=5;
VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N)=1,VAR2,VAR2<=LLV(VAR2,N)=1,VAR2,1);
关注:=VAR2=VAR3 AND VAR2<MB4;
DRAWTEXT(关注,L*0.990,'封')COLORYELLOW;
{主力资金信号}
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*均价,0),0);
AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*均价,0),0);
B1万元:=DVOL*DCLOSE/100;
B2万元:=DVOL*DCLOSE/100;
PM:=MA(净流入万元,1);
PMB:=REF(PMA,1)<1 AND PMA;
二日比:=密码/REF(密码,1);
DRAWICON(主力资金进入,L*0.97,9);
三一位:=O-(O-C)/3,NODRAW,COLORWHITE;
三二位:=O-2*(O-C)/3,NODRAW,COLORWHITE;
STICKLINE(C>=REF(C,1)*1.06 OR C<=REF(C,1)*0.94,三二位,三二位,2.5,0),COLORYELLOW;
长阴:=(C<=REF(C,1)*0.97 OR C<=O*0.97) AND H>L ;
长阴短柱:=长阴 AND 短柱;
平底:=ABS(L-REF(MIN(O,C),1))<=0.03 OR ABS(O-REF(MIN(C,L),1))<=0.03;
STICKLINE(平底不破,MIN(O,REF(MIN(C,O),1)),MIN(O,REF(MIN(C,O),1)),10,0),COLORCYAN;
CC:=CONST(IF(上引,H,DRAWNULL));
IF(CURRBARSCOUNT<=CONST(QD)+1,CC,DRAWNULL),COLORRED;
DRAWTEXT(ISLASTBAR AND 上引,H*1.01,'2'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:DCLOSE
该公式包含未来函数:DVOL
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{板块显示}
SBL赋值:STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK)
当满足条件1时,在横轴0.06纵轴0位置书写文字
当满足条件1时,在横轴0.83纵轴0位置书写文字
AA赋值:(C-1日前的C)/1日前的C*100
DS赋值:(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945
输出跌停价:IF(DS,1日前的C*0.95,1日前的C*0.9),NODRAW,COLORGREEN
跌停赋值:C=DTPRICE(1日前的C,0.1) OR DS
一字跌停赋值:1日前的C当满足条件涨停时,在O和C之间画柱状线
当满足条件跌停时,在OPEN和收盘价之间画柱状线
输出均价:AMOUNT/成交量/100 NODRAW
当满足条件CURRBARSCOUNT=21时,在 现价-0.05和'21'位置书写文字
当满足条件CURRBARSCOUNT=89时,在 现价-0.05和'89'位置书写文字
当满足条件CURRBARSCOUNT=144时,在 现价-0.05和'144'位置书写文字
LDM23赋值:基准价
LDM25赋值:最低价-LDM23的绝对值<=LDM24
LDM27赋值:收盘价-LDM23的绝对值<=LDM24
LDM29赋值:LDM25 OR LDM26 OR LDM27 OR LDM28
如果LDM30>0返回LDM30+1否则返回0
QB赋值:收盘价和OPEN的较小值
阴顶开盘赋值:1日前的C
顶价赋值:IF(C>=1日前的C*1.03 OR C>O*1.03 OR C<=1日前的C*0.97 OR C
输出NOTEXT1:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(成交量,21),1)+1)+1,CONST(REF(顶价,REF(HHVBARS(成交量,21),1)+1)),DRAWNULL),COLORMAGENTA,LINETHICK2
DRAWTEXT(ISLASTBAR,NOTEXT1*1,CON2STR(NOTEXT1,2)),COLORMAGENTA
输出NOTEXT5:IF(CURRBARSCOUNT<=CONST(REF(HHVBARS(成交量,100),1)+1)+1,CONST(REF(顶价,REF(HHVBARS(成交量,100),1)+1)),DRAWNULL),画黄色 DOTLINE
ZTD赋值: CONST(REF(上次峰高量距今天数,1)+1)+1
{逃顶线}
TD赋值:CONST(上次逃顶高量距今天数)
输出{涨停板防守线}
板底:IF(CURRBARSCOUNT<=CONST(REF(上次涨停距今天数,1)+1)+1,CONST(REF(L,REF(上次涨停距今天数,1)+1)),DRAWNULL),COLORLIGREEN DOTLINE
阴K赋值:C<1日前的C OR CO AND 均价<1日前的C)
阴线实体最高价赋值:REF(C和O较大值,阴线天数)
阳胜条件赋值:阴线天数>0 AND C>=阴线实体最高价 AND V>=阴线成交量 AND C>REF(C和O的较小值,阴线天数+1)
单阳胜赋值:REF(BARSLASTCOUNT(阴K)>0,1) AND C>REF(C和O较大值,1)
{黄金基柱}
长阳矮柱赋值:1日前的C1日前的C*1.03 AND V[
高阳柱赋值:(V>1日前的V AND V>REFX(V,1)) AND C>1日前的C]
{黄金柱}
HJJ2赋值:C<(REFX(C,3)+REFX(C,2)+REFX(C,1))/3
价升幅赋值:(后三日均价/C-1)*100
HJL1赋值:V>(REFX(V,1)+REFX(V,2)+REFX(V,3))/3
后三日均量赋值:(REFX(V,3)+REFX(V,2)+REFX(V,1))
量升幅赋值:(后三日均价/V-1)*100
黄金柱赋值:(黄金升幅 OR 黄金量) AND 黄金价 AND 黄金基柱
ZJL2赋值:C>1日前的C AND C>2日前的C AND C>O AND C>1日前的C
金三赋值:黄金柱 AND REFX(ZJL3,3)
当满足条件黄金柱 OR 金三 OR 跳空黄金柱时,在L*0.985和23之间画图标
价涨量缩赋值:C>1日前的C AND V<=1日前的V
当满足条件腾空阳眼时,在C和O之间画柱状线
当满足条件精准隐眼时,在C和O之间画柱状线
当满足条件假阴真阳时,在C和O之间画柱状线
当满足条件黄金阴时,在C和O之间画柱状线
当满足条件假阳真阴时,在C和O之间画柱状线
当满足条件黄金阳时,在C和O之间画柱状线
当满足条件乾坤眼时,在C和O之间画柱状线
当满足条件阳盖阴时,在C和O之间画柱状线
获利比例赋值:C计算的获利盘比例
当满足条件启动眼时,在H+0.03和1之间画图标
当满足条件启动眼时,在L和'启'位置书写文字
MB1赋值:EMA(C计算的获利盘比例*100,5),画黄色
MB3赋值:MB2的2日指数移动平均, 画蓝色
N赋值:5
VAR3赋值:DRAWLINE(VAR2>=N日内VAR2最高值=1,VAR2,VAR2<=N日内VAR2最低值=1,VAR2,1)
关注赋值:VAR2=VAR3 AND VAR2当满足条件关注时,在L*0.990和'封'位置书写文字
{主力资金信号}
AAA2:=SUM(IF( 收盘价>1日前的收盘价,成交量*均价,0),0)
AAA4:=SUM(IF( 收盘价=1日前的收盘价,成交量*均价,0),0)
B1万元赋值:D成交量*D收盘价/100
B2万元赋值:D成交量*D收盘价/100
PM赋值:净流入万元的1日简单移动平均
PMB:=1日前的PMA<1 AND PMA
二日比赋值:密码/1日前的密码
当满足条件主力资金进入时,在L*0.97和9之间画图标
三一位赋值:O-(O-C)/3,NODRAW,画白色
三二位赋值:O-2*(O-C)/3,NODRAW,画白色
STICKLINE(C>=1日前的C*1.06 OR C<=1日前的C*0.94,三二位,三二位,2.5,0),画黄色
长阴赋值:(C<=1日前的C*0.97 OR C<=O*0.97) AND H>L
长阴短柱:=长阴 AND 短柱
平底赋值:L-REF(O和C的较小值,1的绝对值)<=0.03 OR ABS(O-REF(C和L的较小值,1))<=0.03
STICKLINE(平底不破,MIN(O,REF(MIN(C,O),1)),MIN(O,REF(MIN(C,O),1)),10,0),COLORCYAN
如果上引返回H否则返回DRAWNULL
IF(CURRBARSCOUNT<=CONST(QD)+1,CC,DRAWNULL),画红色
当满足条件ISLASTBAR AND 上引时,在H*1.01和'2'位置书写文字