通达信寻龙诀小蛮腰主图自用修改版 主图源码
流通股亿:FINANCE(7)/100000000,NODRAW,COLORLIBLUE;
流通Z亿:FINVALUE(266)/100000000,NODRAW,COLORLIBLUE;{亿};
{墨大寻龙诀}
上分界:=EMA(COST(98),10){,PRECISION2,LINEDOT},COLORGREEN,DOTLINE;
下分界:=EMA(COST(85),10){,PRECISION2,LINEDOT},COLORRED,DOTLINE;
调整分界:=下分界+(上分界-下分界)*(流通Z亿/流通股亿),COLORWHITE,NODRAW;
DRAWBAND(下分界,RGB(80,00,20),调整分界,RGB(0,0,220));
{红粉佳人小蛮腰}
VAR1:=HHV(HHV(LOW,14),240);
VAR2:=CLOSE*VOL;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
VAR4:=EMA(CLOSE,9);
VAR5:=1.06*VAR3,LINETHICK1,COLORWHITE;
VAR6:=DMA((H + L + C * 2) / 4,0.9);
VAR7:=EMA(VAR6,5),LINETHICK1;
DRAWBAND(VAR5,RGB(80,80,80),VAR7,RGB(255,20,147));
{寻龙诀变色}
UPSD:=调整分界>REF(调整分界,1) AND 下分界>REF(下分界,1);
TJRED:IF(UPSD,调整分界,下分界);
DRAWBAND(TJRED,RGB(180,180,0),下分界,RGB(220,220,0));
下分界,COLORBLACK,LINETHICK1;
{牛线与锅底}
LT:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
牛线:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORGRAY,DOTLINE;
压力:=REF(HHV(HIGH,60),BARSLASTCOUNT(CLOSE>REF(CLOSE,3))),COLORMAGENTA,LINETHICK1;
顶线:CONST(HHV(L,177)),COLORGRAY,DOTLINE;
{龙骨线预警}
VAR31:=HHV(HHV(LOW,14),240);
龙骨线:EMA(EMA(VAR31,14)+2*STD(VAR31,14),8),COLORGREEN,LINETHICK2;
Z:=EMA(EMA(C,1),5),COLOR00FFFF,LINETHICK3;
BB:=EMA(HHV(Z,5),1),COLORMAGENTA,LINETHICK3;
J:=EMA(HHV(BB,21),1),COLOR0089FF,LINETHICK2;
W:=EMA(HHV(J,21),2),COLORDB89FF,COLOR00FF00,LINETHICK2;
T:=EMA(HHV(W,21),3),COLOR8916FF,LINETHICK2;
S:=EMA(HHV(T,21),4),COLORFFCC62,LINETHICK2;
JJ:=EMA(HHV(S,21),5),COLORFF9D52,LINETHICK2;
龙骨线M:EMA(HHV(JJ,21),6),COLORGREEN,LINETHICK1{,CROSSDOT};
DRAWKLINE(H,O,L,C);
{强弱K线标记}
初强:=(CROSS(C,VAR7) AND CROSS(C,VAR5)) OR CROSS(C,VAR5);
强:=CROSS(VAR7,VAR5);
STICKLINE(初强,O,C,3,0),COLORMAGENTA;
STICKLINE(强,O,C,3,0),COLORRED;
{量王}
总量:=AMOUNT,VOLSTICK;
量比:=V/REF(MA(V,5),1),COLORBROWN,NODRAW;
几倍:=1.9;
倍量量王:= 总量 >=REF(总量,1)*几倍 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
天量:=总量=HHV(总量,120), COLORRED;
量王:=天量&&倍量量王&&量比>2&&(BARSCOUNT(C)+1)>120,COLORGREEN;
STICKLINE(量王,C,O,0.1,0),COLORGREEN;
DRAWTEXT(量王,L*0.95,'量王'),COLORGREEN;
{启动板8 C2}
DIF41:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA41:=EMA(DIF41,9);
ZTB1:=C>INTPART(REF(C,1)*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H;
启动版1:=DIF41>-0.2 AND DIF41<0.35 AND ZTB1 AND REF(ZTB1,1)<1 AND COUNT(DIF41>=-0.01,5)=5;
LS:=C/REF(C,1)>1.03 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
YZB:=C/REF(C,1)>1.0991 AND O=H AND C=H;
XG9:=FILTER(LS,28) AND NOT(YZB) ;
启动版8:=启动版1 AND XG9;
DRAWTEXT(启动版1,H*1.02,'启动'),COLORYELLOW;
DRAWTEXT(启动版8,H*1.1,'启动8'),COLORYELLOW;
{打板}
ZTTJ:=(FINANCE(3)=4 OR (DATE>1200822 && FINANCE(3)=3));
ZTJ:=IF(ZTTJ,ZTPRICE(REF(CLOSE,1),0.2),ZTPRICE(REF(CLOSE,1),0.1));
涨停:=(CLOSE>=ZTJ) AND NOT(INBLOCK('科创板'));
打板:=FILTER(C>=HHV(HIGH,200),200) AND COUNT(涨停,5)<3 AND COUNT(CLOSE/OPEN<=1-6/100,5)=0;
DRAWTEXT(打板,L*0.98,'打板'),COLORWHITE;
{金9}
N:=CURRBARSCOUNT;
S9:=C>REF(C,4);
TJ9:=N>=1 AND COUNT(S9,9)=9 AND REF(S9,9)=0;
DRAWNUMBER(TJ9,H*1.001,9),COLORYELLOW;
TJ9DAY:=BARSLAST(TJ9);
BK9:=BARSLAST(CURRBARSCOUNT=CONST(TJ9DAY+1));
J9:REF(H,BK9),COLORYELLOW,LINETHICK1;
SS:=DRAWNUMBER(N>=1 AND COUNT(S9,9)=9 AND REF(S9,9)=0,MACD,9),COLORYELLOW;
DRAWTEXT(SS=1,H*1.04,'金9'),COLORYELLOW;
{9底}
D9:=REF(SS,4)=1 OR REF(SS,12)=1;
DRAWTEXT(D9,L*0.97,'9底'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:FINANCE
该公式包含未来函数:DHIGH
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出流通股亿:FINANCE(7)/100000000,NODRAW,COLORLIBLUE
输出流通Z亿:FINVALUE(266)/100000000,NODRAW,COLORLIBLUE
{亿}
{墨大寻龙诀}上分界赋值:EMA(获利盘为98%的成本分布,10){,PRECISION2,LINEDOT},画绿色,DOTLINE
下分界赋值:EMA(获利盘为85%的成本分布,10){,PRECISION2,LINEDOT},画红色,DOTLINE
调整分界赋值:下分界+(上分界-下分界)*(流通Z亿/流通股亿),COLORWHITE,NODRAW
DRAWBAND(下分界,RGB(80,00,20),调整分界,RGB(0,0,220))
{红粉佳人小蛮腰}VAR1赋值:14日内LOW最高值,240)
VAR2赋值:CLOSE*成交量
VAR3赋值:EMA((EMA(VAR2,3)/EMA(成交量,3)+EMA(VAR2,6)/EMA(成交量,6)+EMA(VAR2,12)/EMA(成交量,12)+EMA(VAR2,24)/EMA(成交量,24))/4,13)
VAR4赋值:CLOSE的9日指数移动平均
VAR5赋值:1.06*VAR3,LINETHICK1,COLORWHITE
VAR6赋值:DMA((H + L + C * 2) / 4,0.9)
VAR7赋值:VAR6的5日指数移动平均,LINETHICK1
DRAWBAND(VAR5,RGB(80,80,80),VAR7,RGB(255,20,147))
{寻龙诀变色}UPSD赋值:调整分界>1日前的调整分界 AND 下分界>1日前的下分界
如果UPSD返回调整分界否则返回下分界
DRAWBAND(TJRED,RGB(180,180,0),下分界,RGB(220,220,0))
下分界,COLORBLACK,LINETHICK1
{牛线与锅底}LT赋值:LLVBARS(L,60)
LTT赋值:上次CURRBARSCOUNT=CONST(LT距今天数+1)
HT赋值:FIND最高价BARS(H,LT+1,60,1)
输出牛线:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,HT日前的H,0),COLORGRAY,DOTLINE
压力赋值:REF(60日内最高价最高值,BARSLASTCOUNT(CLOSE>REF(CLOSE,3))),COLORMAGENTA,LINETHICK1
输出顶线:CONST(177日内L最高值),COLORGRAY,DOTLINE
{龙骨线预警}VAR31:=14日内LOW最高值,240)
输出龙骨线:VAR31的14日指数移动平均+2*VAR31的14估算标准差,8),画绿色,LINETHICK2
Z赋值:C的1日指数移动平均,5),COLOR00FFFF,LINETHICK3
BB赋值:E5日内Z最高值的1日简单移动平均,COLORMAGENTA,LINETHICK3
J赋值:E21日内BB最高值的1日简单移动平均,COLOR0089FF,LINETHICK2
W赋值:E21日内J最高值的2日简单移动平均,COLORDB89FF,COLOR00FF00,LINETHICK2
T赋值:E21日内W最高值的3日简单移动平均,COLOR8916FF,LINETHICK2
S赋值:E21日内T最高值的4日简单移动平均,COLORFFCC62,LINETHICK2
JJ赋值:E21日内S最高值的5日简单移动平均,COLORFF9D52,LINETHICK2
龙骨线M:E21日内JJ最高值的6日简单移动平均,画绿色,LINETHICK1{,CROSSDOT}
DRAWKLINE(H,O,L,C)
{强弱K线标记}初强赋值:(C上穿VAR7 AND C上穿VAR5) OR C上穿VAR5
强赋值:VAR7上穿VAR5
当满足条件初强时,在O和C之间画柱状线
当满足条件强时,在O和C之间画柱状线
{量王}总量赋值:AMOUNT,成交量STICK
量比赋值:V/REF(V的5日简单移动平均,1),COLORBROWN,NODRAW
几倍赋值:1.9
倍量量王赋值: 总量 >=1日前的总量*几倍 AND (IF(C1日前的C,1)),COLORYELLOW,NODRAW
天量赋值:总量=120日内总量最高值, 画红色
量王赋值:天量&&倍量量王&&量比>2&&(C的有效数据周期数+1)>120,画绿色
当满足条件量王时,在C和O之间画柱状线
当满足条件量王时,在L*0.95和'量王'位置书写文字
{启动板8 C2}DIF41赋值:CLOSE的12日指数移动平均-CLOSE的26日指数移动平均
DEA41赋值:DIF41的9日指数移动平均
ZTB1:=C>INTPART(1日前的C*(1+10/100)/0.01+0.5)*0.01-0.006 AND C=H
启动版1赋值:DIF41>-0.2 AND DIF41<0.35 AND ZTB1 AND 1日前的ZTB1<1 AND 统计5日满足DIF41>=-0.01的天数=5
LS赋值:C/1日前的C>1.03 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12))
YZB:=C/1日前的C>1.0991 AND O=H AND C=H
XG9赋值:LS的28过滤 AND NOT(YZB)
启动版8赋值:启动版1 AND XG9
当满足条件启动版1时,在H*1.02和'启动'位置书写文字
当满足条件启动版8时,在H*1.1和'启动8'位置书写文字
{打板}ZTTJ赋值:(FINANCE(3)=4 OR (DATE>1200822 && FINANCE(3)=3))
ZTJ赋值:IF(ZTTJ,ZTPRICE(1日前的CLOSE,0.2),ZTPRICE(1日前的CLOSE,0.1))
涨停赋值:(CLOSE>=ZTJ) AND NOT(INBLOCK('科创板'))
打板赋值:FILTER(C>=200日内最高价最高值,200) AND 统计5日满足涨停的天数<3 AND 统计5日满足CLOSE/开盘价<=1-6/100的天数=0
当满足条件打板时,在L*0.98和'打板'位置书写文字
{金9}N赋值:CURRBARSCOUNT
S9:=C>4日前的C
TJ9:=N>=1 AND 统计9日满足S9的天数=9 AND 9日前的S9=0
DRAWNUMBER(TJ9,H*1.001,9),COLORYELLOW
TJ9DAY:=上次TJ9距今天数
BK9赋值:上次CURRBARSCOUNT=CONST(TJ9DAY+1距今天数)
J9:BK9日前的H,COLORYELLOW,LINETHICK1
SS赋值:DRAWNUMBER(N>=1 AND 统计9日满足S9的天数=9 AND 9日前的S9=0,MACD,9),COLORYELLOW
当满足条件SS=1时,在H*1.04和'金9'位置书写文字
{9底}D9赋值:4日前的SS=1 OR 12日前的SS=1
当满足条件D9时,在L*0.97和'9底'位置书写文字