通达信捉大妖主图 只要是大妖股一定有信号 F10财务数据 源码 附图
DRAWGBK(CLOSE>0,RGB(1,1,1),RGB(1,1,1),0,1,0);
DRAWNULL,COLORCCCCCC;
{板块市值业绩}
所属板块:=STRCAT('【所属板块】:',STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)));
风格板块:=STRCAT('【风格板块】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [风格]—',FGBLOCK)));
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.005,0.07,0,风格板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.17,0,当前业绩),COLORMAGENTA;
获利盘%:=100*WINNER(C);
短期压力:=HHV(H,15);
短期支撑:=LLV(L,20);
X11:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X12:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
X13:=FINANCE(23)/FINANCE(10)*3.3;
X14:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X15:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X11+X12+X13+X14+X15;
DRAWTEXT_FIX(Z值<1.2,0.312,0.22,0,' 【●财务重警●】'),COLORLIRED;
DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.312,0.22,0,' 【○财务轻警○】'),COLOR0099FF;
DRAWTEXT_FIX(Z值>2.6,0.312,0.22,0,' 【◎财务无警◎】'),COLORLIGREEN;
DRAWTEXT_FIX(C>0,0.005 ,0.22,0,'【获利盘%】:'),COLORRED;
DRAWTEXT_FIX(C>0,0.105,0.22,0,'【短期压力】:'),COLOR00FF00;
DRAWTEXT_FIX(C>0,0.21,0.22,0,'【短期支撑】:'),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.075,0.22,0,CONST(获利盘%)),COLORRED;
DRAWNUMBER_FIX(C>0,0.175,0.22,0,CONST(短期压力)),COLOR00FF00;
DRAWNUMBER_FIX(C>0,0.28,0.22,0,CONST(短期支撑)),COLORYELLOW;
{涨停统计}
STG:=NAMELIKE('S') OR NAMELIKE('*');
涨停:=((C/REF(C,1)>=1.095 AND C=H) OR (C/REF(C,1)>=1.09 AND C=O AND O=L AND H=L) OR (C/REF(C,1)>=1.048 AND STG=1 AND C=H) OR (C/REF(C,1)>=1.045 AND C=O AND O=L AND H=L AND STG=1)) AND CURRBARSCOUNT<=120;
ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);
GZT1:=STRCAT(' 半年內涨停次数:',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT(' 上市天数:',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT(' 距今:',CON2STR(CONST(BARSLAST(涨停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('【涨停统计】:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,0.265,0,ZTTJ),COLORYELLOW;
DRAWKLINE(H,O,L,C);
N:=2;M:=30;
MA(H,M) * (1 + 13 / 100) * 1.0382,LINETHICK1,COLORYELLOW ;
MA(H,M) * (1 + 13 / 100),LINETHICK1,COLORYELLOW ;
EMA(L,30) * (1 - 15 / 100),COLORGREEN , NODRAW ;
EMA(L,30) * (1 - 15 / 100) * 0.82,NODRAW, COLORYELLOW;
AA:(EMA(C,5) * 7 + EMA(C,10) * 3) / 10,LINETHICK2,COLORWHITE;
A1:=(H + L + O + C) / 4;A2:=EMA(A1,13) - EMA(A1,34);A3:=EMA(A2,5);
A4:=(A2 - A3) * 5;A5:=IF(A4 >= 1000,1000,IF(A4 <= A1,A1,A4));
A6:=FORCAST(FORCAST(A5,32),10);A7:=(C - EMA(C,13)) / EMA(C,13) * (0 - 100);
A8:=EMA(A7 / 10 + EMA(C,13),8);A9:=EMA(C,3);A10:=EMA(SLOPE(C,22) * 20 + C,45);
A11:=IF(PERIOD >8 AND PERIOD < 11,MA(A10,1),IF(PERIOD = 8,MA(A10,4),IF(PERIOD = 7,MA(A10,8),IF(PERIOD = 6,MA(A10,16),IF(PERIOD = 5,MA(A10,32),0)))));A12:=A11 * 0.865;A13:=IF(A9 > A11,A9,A12);
A14:=C * V;A15:=EMA((EMA(A14,3) / EMA(V,3) + EMA(A14,6) / EMA(V,6) + EMA(A14,12) / EMA(V,12) + EMA(A14,24) / EMA(V,24)) / 4,13);
A16:=1.06 * A15;A17:=(C - REF(C,1)) / REF(C,1) * 100 > 8.5;
A18:=EMA(H,10) * (1 + 5 / 100);
捉妖:CROSS(AA,MA(H,30) * (1 + 13 / 100)) * 10,NODRAW;
A19:=(C - O) / REF(C,1) * 100;A20:=REF(H,N) = HHV(H,2 * N + 1);
A21:=FILTER(A20,N);A22:=BACKSET(A21,N + 1);A23:=FILTER(A22,N);
A24:=REF(L,N) = LLV(L,2 * N + 1);A25:=FILTER(A24,N);
A26:=BACKSET(A25,N + 1);A27:=FILTER(A26,N);
A28:=(REF(LLV(L,2 * N),1) + REF(HHV(H,2 * N),1)) / 2;
A29:=(H + L) / 2;A30:=(A23 AND NOT(A27 AND A28 >= A29)) OR ISLASTBAR OR BARSCOUNT(C) = 1;
A31:=A27 AND NOT(A23 AND A28 < A29);A32:=REF(BARSLAST(A30),1) + 1;
A33:=BACKSET(A30 AND COUNT(A31,A32) > 0,LLVBARS(IF(A31,L,10000),A32));
A34:=A33 > REF(A33,1);A35:=BACKSET(A34,2);A36:=A35 > REF(A35,1);
A37:=A36 OR ISLASTBAR OR BARSCOUNT(C) = 1;A38:=REF(BARSLAST(A37),1) + 1;
A39:=BACKSET(A37 AND COUNT(A23 AND NOT(A27 AND A28 >= A29),A38) > 0,HHVBARS(IF(A23 AND NOT(A27 AND A28 >= A29),H,0),A38));
A40:=A39 > REF(A39,1);A41:=BACKSET(A40,2);A42:=A41 > REF(A41,1);
A43:=BACKSET(ISLASTBAR,BARSLAST(A42) + 1);A44:=A43 > REF(A43,1);
A45:=BACKSET(A44,REF(BARSLAST(A42),1) + 2);A46:=A45 > REF(A45,1);
短齐压力:DRAWLINE(A46,H,A44,H,1),COLORGREEN,NODRAW;
{真妖显身}A0:=((L+H+C*2)/4);上F:=EMA(A0,14)*1.1382;
A1KX:=(上F-REF(上F,1)) / REF(上F,1) * 100;GD1:=BARSLAST(CROSS(A1KX,0));
真妖显身:IF(H>=REF(A0,BARSLAST(CROSS(A1KX,0)))*1.3,REF(A0,BARSLAST(CROSS(A1KX,0)))*1.3,DRAWNULL),COLORFFB5FF,LINETHICK9;
DRAWTEXT(ISLASTBAR,真妖显身,' 妖股显身'),COLORFFB5FF;
DRAWTEXT(FILTER(CROSS(AA,MA(H,30) * (1 + 13 / 100)),5),MA(H,30) * (1 + 13 / 100) * 0.88,' 捉大妖'),COLORGREEN;{=====================================}
VAR22:=IF(((YEAR) >= (2039)) AND ((MONTH) > 3),0,1);
VAR33:=(MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4 + ((1.88) * (STD((MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4,9))) * (VAR22);
急拉涨停线:((MA(VAR33,12)) * (1.06)) * (VAR22),LINETHICK2,COLORCYAN ;
VAR55:=(EMA(H,10)) * (1 + 5 / (100));
VAR6:=C * V;
VAR7:=EMA(((EMA(VAR6,3)) / (EMA(V,3)) + (EMA(VAR6,6)) / (EMA(V,6)) + (EMA(VAR6,12)) / (EMA(V,12)) + (EMA(VAR6,24)) / (EMA(V,24))) / 4,13);
VAR8:=(1.06) * (VAR7);VAR9:=(L / ((H + REF(C,1) + O) / 3)) * C;
DRAWTEXT(((CROSS(VAR9,VAR8)) AND (C > (VAR55))) AND (C > (急拉涨停线)),L,'▲'),LINETHICK1,COLORYELLOW;{==========开口捉妖多彩K线========}
NN:=5;MM:=3;VAR0:=((EMA(C,5)) * 7 + (EMA(C,10)) * 3) / 10;
VAR1:=IF((YEAR) >= (2025),0,1);VAR2:=EMA(EMA(L,21) + (6.8) * (STD(L,2)),55);VAR3:=EMA(((C / (VAR2)) * ((1.88) * C + L + O)) / (2.75),3);
VAR4:=(((VAR3) - (VAR2)) / (VAR2)) / 2;VAR5:=(EMA((VAR3) - ((VAR4) * (VAR3)),5)) * (VAR1);黄金轨道:(IF((VAR0) > (VAR5),VAR0,VAR5)) * (VAR1),NODRAW ,COLORRED ;{红线}上轨:IF(((VAR5) < (VAR0)) AND ((VAR5) < (C * (0.15))),(EMA(C,300)) - (3 * (STD(C,300))),VAR5),NODRAW ,COLORYELLOW;{黄线}IF((VAR5) > (VAR0),上轨,DRAWNULL),COLORCYAN ,NODRAW ;{中轴}
VAR10:=(((SMA(MAX(C - (REF(C,1)),0),24,1)) / (SMA(ABS(C - (REF(C,1))),24,1))) * (100)) * (VAR1);VAR13:=((SMA(MAX(C - (REF(C,1)),0),14,1)) / (SMA(ABS(C - (REF(C,1))),14,1))) * (100);
VAR14:=(EMA(C,60) + EMA(C,120) + EMA(C,240) + EMA(C,480)) / 4;
VAR15:=VAR14 + (1.91) * (STD(VAR14,3));VAR16:=(EMA(VAR15,12)) * (1.23);{红色中线}
STICKLINE((((VAR10) > 65) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16)),H,L,0,0),COLORRED;{红色}
STICKLINE((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16)),C,O,3,0),COLORRED;VAR37:=((L + H) / 2);
VAR39:=(EMA((C + L + H) / 3,1));{黄}STICKLINE(((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((MA(C,1)) > (VAR16))) AND ((MA(C,1)) > ((MA(H,30)) * (1 + 15 / (100)))),O,(VAR37 + L) / 2,3,0),COLORYELLOW;{白色}
STICKLINE(((C > ((MA(H,30)) * (1 + 18 / (100)))) AND (C > (VAR5))) AND ((VAR10) > (64.5)),VAR39,VAR37,3,0),COLORWHITE;{================超牛=================}
转强:=100*(C-REF(C,12))/REF(C,12);
超强:=((H+L+C)/3-MA((H+L+C)/3,88))/(0.015*AVEDEV((H+L+C)/3,88));
通道:=1.07*DMA(C,ABS((2*C+H+L)/4-MA(C,26))/MA(C,26));
趋势:=MA(ATAN(通道-REF(通道,1)),3);
QS1:=IF((C>O OR C<O) AND H>=REF(C,1),ATAN(MA(H,5)*1.02-REF(MA(C,5)*1.02,1)),0);
QS2:=IF((C>O OR C<O) AND H<REF(C,1),-ATAN(REF(MA(C,5)*1.02,1)-MA(H,5)*1.02),0);
分界:=MA(REF((QS1+QS2),1),26);
强势:=趋势>分界 AND 趋势>REF(趋势,1);
超级牛股:=强势 AND 超强>200 AND 转强>20 AND C>REF(C,1);
{================走强线 ================};
DRAWTEXT(超级牛股,L*0.95,' 龙'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(收盘价>0,RGB(1,1,1),RGB(1,1,1),0,1,0)
DRAWNULL,COLORCCCCCC
{板块市值业绩}
所属板块赋值:STRCAT('【所属板块】:',STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)))
风格板块赋值:STRCAT('【风格板块】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [风格]—',FGBLOCK)))
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTAL当前流通股本/1000000,2)),'亿')
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(当前流通股本/1000000,2)),'亿')
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(当前流通股本/TOTAL当前流通股本*100,2)),'%')
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((当前流通股本/1000000)*C,2)),'亿')
股本市值赋值:STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值))
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2))
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2))
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2))
当前业绩赋值:STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.02位置书写文字
当满足条件ISLASTBAR 时,在横轴0.005纵轴0.07位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.12位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.17位置书写文字
获利盘%赋值:100*C计算的获利盘比例
短期压力赋值:15日内H最高值
短期支撑赋值:20日内L最低值
X11赋值:(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2
X12赋值:(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4
{盈余公积用资本公积金代替}
X13赋值:FINANCE(23)/FINANCE(10)*3.3
X14赋值:FINANCE(19)/FINANCE(15)*0.6
{缺长期负债或负债总额}
X15赋值:FINANCE(20)/FINANCE(15)*0.999
Z值赋值:X11+X12+X13+X14+X15
当满足条件Z值<1.2时,在横轴0.312纵轴0.22位置书写文字
DRAWTEXT_FIX( BETWEEN(Z值,1.2,2.6),0.312,0.22,0,' 【○财务轻警○】'),COLOR0099FF
当满足条件Z值>2.6时,在横轴0.312纵轴0.22位置书写文字
当满足条件C>0时,在横轴0.005 纵轴0.22位置书写文字
当满足条件C>0时,在横轴0.105纵轴0.22位置书写文字
当满足条件C>0时,在横轴0.21纵轴0.22位置书写文字
DRAWNUMBER_FIX(C>0,0.075,0.22,0,CONST(获利盘%)),画红色
DRAWNUMBER_FIX(C>0,0.175,0.22,0,CONST(短期压力)),COLOR00FF00
DRAWNUMBER_FIX(C>0,0.28,0.22,0,CONST(短期支撑)),画黄色
{涨停统计}
STG赋值:NAMELIKE('S') OR NAMELIKE('*')
涨停赋值:((C/1日前的C>=1.095 AND C=H) OR (C/1日前的C>=1.09 AND C=O AND O=L AND H=L) OR (C/1日前的C>=1.048 AND STG=1 AND C=H) OR (C/1日前的C>=1.045 AND C=O AND O=L AND H=L AND STG=1)) AND CURRBARSCOUNT<=120
ZTCS赋值:COUNT(涨停,BARSSINCE(涨停)+1)
GZT1赋值:STRCAT(' 半年內涨停次数:',CON2STR(ZTCS,0))
GZT2赋值:STRCAT(GZT1,'次')
SSTS1赋值:STRCAT(' 上市天数:',CON2STR(FINANCE(42),0))
SSTS2赋值:STRCAT(SSTS1,'天')
NTZZT1:=STRCAT(' 距今:',CON2STR(CONST(上次涨停距今天数),0))
NTZZT2赋值:STRCAT(NTZZT1,'天有涨停')
ZTTJ1赋值:STRCAT(SSTS2,GZT2)
ZTTJ2赋值:STRCAT(ZTTJ1,NTZZT2)
ZTTJ:=STRCAT('【涨停统计】:',ZTTJ2)
当满足条件CURRBARSCOUNT=1时,在横轴0.005纵轴0.265位置书写文字
DRAWKLINE(H,O,L,C)
N赋值:2
M赋值:30
H的M日简单移动平均 * (1 + 13 / 100) * 1.0382,LINETHICK1,画黄色
H的M日简单移动平均 * (1 + 13 / 100),LINETHICK1,画黄色
L的30日指数移动平均 * (1 - 15 / 100),COLORGREEN , NODRAW
L的30日指数移动平均 * (1 - 15 / 100) * 0.82,NODRAW, 画黄色
输出AA:(C的5日指数移动平均 * 7 + C的10日指数移动平均 * 3) / 10,LINETHICK2,画白色
A1赋值:(H + L + O + C) / 4
A2赋值:A1的13日指数移动平均 - A1的34日指数移动平均
A3赋值:A2的5日指数移动平均
A4赋值:(A2 - A3) * 5
A5赋值:IF(A4 >= 1000,1000,IF(A4 <= A1,A1,A4))
A6赋值:FORCAST(FORCAST(A5,32),10)
A7赋值:(C - C的13日指数移动平均) / C的13日指数移动平均 * (0 - 100)
A8赋值:A7 / 10 + C的13日指数移动平均,8)
A9赋值:C的3日指数移动平均
A10:=EMA(SLOPE(C,22) * 20 + C,45)
A11:=IF(PERIOD >8 AND PERIOD < 11,A10的1日简单移动平均,IF(PERIOD = 8,A10的4日简单移动平均,IF(PERIOD = 7,A10的8日简单移动平均,IF(PERIOD = 6,A10的16日简单移动平均,IF(PERIOD = 5,A10的32日简单移动平均,0)))))
A12:=A11 * 0.865
如果A9 > A11返回A9否则返回A12
A14:=C * V
A15:=EMA((EMA(A14,3) / EMA(V,3) + EMA(A14,6) / EMA(V,6) + EMA(A14,12) / EMA(V,12) + EMA(A14,24) / EMA(V,24)) / 4,13)
A16:=1.06 * A15
A17:=(C - 1日前的C) / 1日前的C * 100 > 8.5
A18:=H的10日指数移动平均 * (1 + 5 / 100)
输出捉妖:CROSS(AA,H的30日简单移动平均 * (1 + 13 / 100)) * 10,NODRAW
A19:=(C - O) / 1日前的C * 100
A20:=N日前的H = 2 * N + 1日内H最高值
A21:=A20的N过滤
A22:=BACKSET(A21,N + 1)
A23:=A22的N过滤
A24:=N日前的L = 2 * N + 1日内L最低值
A25:=A24的N过滤
A26:=BACKSET(A25,N + 1)
A27:=A26的N过滤
A28:=(REF(2 * N日内L最低值,1) + REF(2 * N日内H最高值,1)) / 2
A29:=(H + L) / 2
A30:=(A23 AND NOT(A27 AND A28 >= A29)) OR ISLASTBAR OR C的有效数据周期数 = 1
A31:=A27 AND NOT(A23 AND A28 < A29)
A32:=REF(上次A30距今天数,1) + 1
如果A31返回L否则返回10000
A34:=A33 > 1日前的A33
A35:=BACKSET(A34,2)
A36:=A35 > 1日前的A35
A37:=A36 OR ISLASTBAR OR C的有效数据周期数 = 1
A38:=REF(上次A37距今天数,1) + 1
A39:=BACKSET(A37 AND COUNT(A23 AND NOT(A27 AND A28 >= A29),A38) > 0,HHVBARS(IF(A23 AND NOT(A27 AND A28 >= A29),H,0),A38))
A40:=A39 > 1日前的A39
A41:=BACKSET(A40,2)
A42:=A41 > 1日前的A41
A43:=BACKSET(ISLASTBAR,上次A42距今天数 + 1)
A44:=A43 > 1日前的A43
A45:=BACKSET(A44,REF(上次A42距今天数,1) + 2)
A46:=A45 > 1日前的A45
输出短齐压力:DRAWLINE(A46,H,A44,H,1),COLORGREEN,NODRAW
{真妖显身}A0赋值:((L+H+C*2)/4)
上F赋值:A0的14日指数移动平均*1.1382
A1KX:=(上F-1日前的上F) / 1日前的上F * 100
GD1赋值:上次A1KX上穿0距今天数
输出真妖显身:IF(H>=REF(A0,上次A1KX上穿0距今天数)*1.3,REF(A0,上次A1KX上穿0距今天数)*1.3,DRAWNULL),COLORFFB5FF,LINETHICK9
当满足条件ISLASTBAR时,在真妖显身和' 妖股显身'位置书写文字
DRAWTEXT(FILTER(CROSS(AA,H的30日简单移动平均 * (1 + 13 / 100)),5),H的30日简单移动平均 * (1 + 13 / 100) * 0.88,' 捉大妖'),COLORGREEN
{=====================================}
VAR22赋值:IF(((YEAR) >= (2039)) AND ((MONTH) > 3),0,1)
VAR33赋值:(C的3日简单移动平均 + C的6日简单移动平均 + C的12日简单移动平均 + C的24日简单移动平均) / 4 + ((1.88) * (STD((C的3日简单移动平均 + C的6日简单移动平均 + C的12日简单移动平均 + C的24日简单移动平均) / 4,9))) * (VAR22)
急拉涨停线:((VAR33的12日简单移动平均) * (1.06)) * (VAR22),LINETHICK2,COLORCYAN
VAR55赋值:(H的10日指数移动平均) * (1 + 5 / (100))
VAR6赋值:C * V
VAR7赋值:EMA(((EMA(VAR6,3)) / (EMA(V,3)) + (EMA(VAR6,6)) / (EMA(V,6)) + (EMA(VAR6,12)) / (EMA(V,12)) + (EMA(VAR6,24)) / (EMA(V,24))) / 4,13)
VAR8赋值:(1.06) * (VAR7)
VAR9赋值:(L / ((H + 1日前的C + O) / 3)) * C
DRAWTEXT(((VAR9上穿VAR8) AND (C > (VAR55))) AND (C > (急拉涨停线)),L,'▲'),LINETHICK1,画黄色
{==========开口捉妖多彩K线========}
NN赋值:5
MM赋值:3
VAR0赋值:((C的5日指数移动平均) * 7 + (C的10日指数移动平均) * 3) / 10
VAR1赋值:IF((YEAR) >= (2025),0,1)
VAR2赋值:L的21日指数移动平均 + (6.8) * (L的2估算标准差),55)
VAR3赋值:EMA(((C / (VAR2)) * ((1.88) * C + L + O)) / (2.75),3)
VAR4赋值:(((VAR3) - (VAR2)) / (VAR2)) / 2
VAR5赋值:(EMA((VAR3) - ((VAR4) * (VAR3)),5)) * (VAR1)
输出黄金轨道:(IF((VAR0) > (VAR5),VAR0,VAR5)) * (VAR1),NODRAW ,画红色
输出{红线}上轨:IF(((VAR5) < (VAR0)) AND ((VAR5) < (C * (0.15))),(C的300日指数移动平均) - (3 * (C的300估算标准差)),VAR5),NODRAW ,画黄色
{黄线}IF((VAR5) > (VAR0),上轨,DRAWNULL),COLORCYAN ,NODRAW
{中轴}
VAR10:=(((SMA(MAX(C - (1日前的C),0),24,1)) / (SMA(C - (1日前的C的绝对值),24,1))) * (100)) * (VAR1)
VAR13:=((SMA(MAX(C - (1日前的C),0),14,1)) / (SMA(C - (1日前的C的绝对值),14,1))) * (100)
VAR14:=(C的60日指数移动平均 + C的120日指数移动平均 + C的240日指数移动平均 + C的480日指数移动平均) / 4
VAR15:=VAR14 + (1.91) * (VAR14的3估算标准差)
VAR16:=(VAR15的12日指数移动平均) * (1.23)
{红色中线}
STICKLINE((((VAR10) > 65) AND ((VAR13) >= 65)) AND ((C的1日简单移动平均) > (VAR16)),H,L,0,0),画红色
{红色}
STICKLINE((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((C的1日简单移动平均) > (VAR16)),C,O,3,0),画红色
VAR37:=((L + H) / 2)
VAR39:=(EMA((C + L + H) / 3,1))
{黄}STICKLINE(((((VAR10) >= (64.5)) AND ((VAR13) >= 65)) AND ((C的1日简单移动平均) > (VAR16))) AND ((C的1日简单移动平均) > ((H的30日简单移动平均) * (1 + 15 / (100)))),O,(VAR37 + L) / 2,3,0),画黄色
{白色}
STICKLINE(((C > ((H的30日简单移动平均) * (1 + 18 / (100)))) AND (C > (VAR5))) AND ((VAR10) > (64.5)),VAR39,VAR37,3,0),画白色
{================超牛=================}
转强赋值:100*(C-12日前的C)/12日前的C
超强赋值:((H+L+C)/3-MA((H+L+C)/3,88))/(0.015*AVEDEV((H+L+C)/3,88))
通道赋值:1.07*DMA(C,(2*C+H+L的绝对值/4-MA(C,26))/MA(C,26))
趋势赋值:MA(ATAN(通道-1日前的通道),3)
QS1赋值:IF((C>O OR C=1日前的C,ATAN(H的5日简单移动平均*1.02-REF(C的5日简单移动平均*1.02,1)),0)
QS2赋值:IF((C>O OR C
分界赋值:MA(REF((QS1+QS2),1),26)
强势赋值:趋势>分界 AND 趋势>1日前的趋势
超级牛股赋值:强势 AND 超强>200 AND 转强>20 AND C>1日前的C
{================走强线 ================}
当满足条件超级牛股时,在L*0.95和' 龙'位置书写文字