通达信主力趋势预测主图指标 趋势支撑压力画线 源码附图
波1:=10;
基金持股:=FINVALUE(255)/10000,COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.5,0,VARCAT('基金持股:',VAR2STR(基金持股,2))),COLORYELLOW;
占流通股比:FINVALUE(244)/FINVALUE(239)*100,NODRAW;
GD:=STRCAT('占流通股比 : ',STRCAT(CON2STR(FINVALUE(244)/FINVALUE(239)*100,2),' % '));
DRAWTEXT_FIX(ISLASTBAR,0.39,0.1,0,GD),COLORMAGENTA;
A1:=REF(H,5)=HHV(H,2*6+1);
B1:=FILTER(A1,5);
C1:=BACKSET(B1,5+1);
D1:=FILTER(C1,5+1);
A2:=REF(L,5)=LLV(L,2*10+1);
B2:=FILTER(A2,5+1);
C2:=BACKSET(B2,5+1);
D2:=FILTER(C2,5);
E1:=(REF(LLV(L,2*3),1)+REF(HHV(H,2*3),1))/2;
E2:=(H+L)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1< E2));
H2:= D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
DRAWLINE(LD,L,HD,H,0),COLORRED;
DRAWLINE(HD,H,LD,L,0),COLORGREEN;
J1:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2 ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DOTLINE,COLORWHITE;
C点:=BARSLAST(LD);
DRAWTEXT(LD AND BARSLAST(HD)< BARSLAST(REF(LD,1)) ,L-0.1,'A'),COLORRED;
DRAWTEXT(HD,H+0.1,'B'),COLORGREEN;
高:=5 ;
低:=10;
高选:=1 ;
低选:=1 ;
波2:=1 ;
PURC:=CONST(FINDHIGH(H,0,高*5,高选));
PLZ :=CONST(BARSLAST(PURC=H))+1;
顶X :=CONST(IF(PLZ=1,H,REF(H,PLZ-1)));
QQT :=CONST(FINDLOW(L,0,低*10,低选));
PLL :=CONST(BARSLAST(QQT=L))+1;
低X :=CONST(IF(PLL=1,L,REF(L,PLL-1)));
DRAWKLINE(H,O,L,C);
顶点:=顶X,COLORRED;
底点:=低X,COLORRED;
波动速率:=100*((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))/(PLL-PLZ),NODRAW,COLORMAGENTA;
波动幅度:=((顶X-低X)/(IF(PLL>PLZ,低X,顶X)))*100;
波动价位:=(顶X-低X)*(IF(PLL>PLZ,1,-1));
BPURC :=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2));
BPLZ:=CONST(BARSLAST(BPURC=H))+1;
BQQT :=CONST(FINDLOW (L,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2));
BPLL:=CONST(BARSLAST(BQQT =L))+1;
BLC1 :=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2));
BLC2:=CONST(BARSLAST(BPURC=H))+1;
BLC顶X:=CONST(IF(BPLZ=1,H,REF(H,BPLZ-1)));
BLC3 :=CONST(FINDLOW(L,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2));
B6C4 :=CONST(BARSLAST(BQQT=L))+1;
BLC低X:=CONST(IF(BPLL=1,L,REF(L,BPLL-1)));
BASE:=IF(波动速率< 0,BLC顶X,BLC低X),COLORRED;
BLCX:=IF(波动速率< 0,-1,1);
BLCZ:=(顶点-底点)*(IF(PLL>PLZ,1,-1));
B12 :=BASE+(BLCZ*0.775),COLORRED;
B14 :=BASE+(BLCZ*0.868),COLORRED;
B200:=BASE+(BLCZ*1 ),COLORRED;
XZDD:=IF(PLL>PLZ,BPLL,BPLZ);
STICKLINE(CURRBARSCOUNT=XZDD ,BASE,B200,0,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=XZDD,B12 ,'---------------------------C1'),COLORC0FF7F;
DRAWTEXT(CURRBARSCOUNT=XZDD,B14 ,'---------------------------C2'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=XZDD,B200,'---------------------------C3'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=10,B12 ,CON2STR(B12 ,2)),COLORC0FF7F;
DRAWTEXT(CURRBARSCOUNT=10,B14 ,CON2STR(B14 ,2)),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,B200,CON2STR(B200,2)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=30,0.99*L,VARCAT('买入 ',VAR2STR(GPJYVALUE(2,1,1),2)));
筹码盈利:=STRCAT(STRCAT('筹码盈利:',CON2STR(WINNER(DYNAINFO(7))*100,1)),'%');
DRAWTEXT_FIX(1,0,0.16,0,筹码盈利),COLORYELLOW;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF< -9.9,O,C,1,0),COLORBLUE;
当前净利润:=FINANCE(30)/10000;
DRAWTEXT_FIX(C>1,0.00,0.55,0,STRCAT('当前净利润:',STRCAT(CON2STR(当前净利润,2),' 万元'))),COLORRED;
净利同比增长%:=FINANCE(43);
DRAWTEXT_FIX(C>1,0.00,0.68,0,STRCAT('净利同比增长%:',CON2STR(净利同比增长%,2))),COLORMAGENTA;
STICKLINE(BARSTATUS=2 AND H>=COST(90),COST(92),COST(92),80,0),COLORWHITE;
MA5:=MA (C,5),COLORWHITE;
MA10:=MA (C,10),COLORYELLOW;
MA20:=MA(C,20),COLORGREEN;
MA60:=MA(CLOSE,60),COLORMAGENTA;
MA120:=MA(CLOSE,120),COLORFF0000;
MA250:=MA(CLOSE,255),COLORFF0000;
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
CCVV:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLORFF0099;
DRAWICON(CROSS(C,必杀线),必杀线*1,11);
DY:=C/REF(C,1)< 0.95 AND NOT(L=O);
DRAWLINE(DY,H,REF(DY,1),REF(H,1),1)DOTLINE,COLORWHITE;
YX:=(O-C)/REF(C,1)>0.05 AND H=O AND V/REF(V,1)>1.5;
DRAWLINE(YX,H,REF(YX,1),REF(H,1),1),COLORLIRED,DOTLINE;
去除ST:=IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*ST'),0,1);
去除停牌:=DYNAINFO(4)>0;
去除大盘股:=CAPITAL/1000000< 25;
去除次新股:=FINANCE(42)>120;
排除:=去除ST AND 去除停牌 AND 去除大盘股 AND 去除次新股;
今涨停:ZTPRICE(REF(C,1),0.1),COLORRED,NODRAW;
今跌停:DTPRICE(REF(C,1),0.1),COLOR00A600,NODRAW;
明涨停:ZTPRICE(C,0.1),COLORRED,NODRAW;
明跌停:DTPRICE(C,0.1),COLOR00A600,NODRAW;
现价线:STICKLINE(ISLASTBAR,C,C,2900,-1),COLORWHITE;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)< 1.01) AND (VAR3AA>0),91,0);
TJ:=FILTER((VAR4AA>90),45),COLOR00FFFF;
TJ1:=FILTER((VAR4AA>90),35),COLOR00FFFF;
ZT:=C/REF(C,1)>1.099 AND C=H;
AA:=REF(C,BARSLAST(ZT AND CURRBARSCOUNT< 60));
BB:=CLOSE/REF(CLOSE,1)>1.075 AND HIGH>LOW AND CLOSE>OPEN;
量:=V/CONST(HHV(V,90))*30;
倍量:=(量/REF(量,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND 量/REF(量,1)>=1.91);
起爆:=AA AND BB AND 倍量 AND 排除 AND SUM(CLOSE/REF(CLOSE,1)>1.095,5)=1;
成妖:=C>REF(HHV(C,60),1) AND REF(C,1)/REF(REF(C,1),1)>1.098 AND C/REF(C,1)>1.098 AND NOT(C>=REF(C,1)*1.097 AND C=O AND H=L);
孤鹤选股:=起爆 OR 成妖;
TJ2:=孤鹤选股>0;
SAG:=EMA(HHV(HIGH,1),8);
XA1:=EMA(CLOSE,8);
X30:=((XA1 < REF(XA1,1)) AND (CLOSE < XA1));
XS31:=IF(((SAG < REF(SAG,1)) OR X30),1,0);
全仓出击:=((((COUNT((XS31 = 1),4) = 3) AND (XS31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89),NODRAW;
TJ3:=全仓出击>0;
AA11:=REF(C,30)=HHV(C,2*30+1);
BB11:=FILTER(AA11,30);
CC11:=BACKSET(BB11,30+1);
HD1:=FILTER(CC11,30);
AA2:=REF(C,10)=LLV(C,2*10+1);
BB2:=FILTER(AA2,10);
CC2:=BACKSET(BB2,10+1);
LD1:=FILTER(CC2,10);
起拔:=REF(C,BARSLAST(HD1)),COLORRED;
TJ4:=CROSS(C,起拔);
SG:=TJ AND TJ1 AND TJ2 AND TJ3 AND TJ4;
DRAWICON(SG,L*0.93,25);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');
DRAWTEXT_FIX(ISLASTBAR,0,5,0,STRCAT(Z4,GNBLOCK)),COLORYELLOW;
TYP:=(HIGH+LOW+CLOSE)/3;
多头力度:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))COLORRED;
TYP1:=(HIGH-LOW-CLOSE)/3;
空头力度:=(TYP1-MA(TYP1,14))/(0.015*AVEDEV(TYP1,14))COLORGREEN;
TI1:=KDJ.J#WEEK;
TI2:=KDJ.D#WEEK;
K:=KDJ.K#WEEK;
D:=KDJ.D#WEEK;
J:=KDJ.J#WEEK;
DRAWICON(CROSS(J,D),L-0.28,1);
DRAWTEXT_FIX(ISLASTBAR AND CROSS(多头力度,空头力度),0.11,0.9,0,'短买信号'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND CROSS(MACD.DIF,MACD.DEA) AND MACD.DEA< 0,0.15,0.9,0,'MACD底部金叉'),COLORRED;
MA13:=MA(C,13)COLORYELLOW;
MA21:=MA(C,21)COLORMAGENTA;
MA55:=MA(C,55)COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND CROSS(MA5,MA13),0.35,0.01,0,'MA5金叉MA13'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND CROSS(MA13,MA5),0.35,0.01,0,'MA13死叉MA5'),COLORCYAN;
多头排列:=MA5>MA13 && MA13>MA21 && MA21>MA55;
转多趋势:=MA5>MA13 && MA13>MA21 && MA21< MA55;
空头排列:=MA5< MA13 && MA13< MA21 && MA21< MA55;
反弹多头回调:=MA5>MA13 && MA13< MA21 && MA21< MA55 && MA5>MA55 && C< O && C< H;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,''),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND 多头力度>空头力度,0.01,0.40,0,'短期多头循环'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND 空头力度>多头力度,0.01,0.40,0,'短期空头循环'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND 多头力度>REF(多头力度,1),0.01,0.25,0,'多方坚守'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 多头力度< REF(多头力度,1),0.01,0.25,0,'多方转弱'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 空头力度>REF(空头力度,1),0.01,0.13,0,'空方转强'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND 空头力度< REF(空头力度,1),0.01,0.13,0,'空方转弱'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND CROSS(空头力度,-100),0.07,0.13,0,'空方有爆发倾向'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND 多头力度< REF(多头力度,1) AND 空头力度< REF(空头力度,1),0.01,0.17,0,'当前参与度较低,注意后市变盘的方向!'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 多头排列,0.2,0.01,0,'均线多头排列'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND 多头排列 AND C< MA5 AND C>MA13 AND C< O,0.2,0.05,0,'K线呈下降趋势,调整阶段。'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND 转多趋势,0.6,0.01,0,'均线转多趋势,如爆量收长上影小心'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND 空头排列,0.2,0.01,0,'均线空头排列,如爆量急跌小心'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND C>MA13 AND MA5>MA13 AND MA21< MA55 AND C< MA21,0.5,0.01,0,'此时处于反弹行情,需谨慎操作,注意MA21均线压力!'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR AND MA55>MA21 AND MA55>MA13 AND MA55>MA5 AND C>MA21,0.2,0.01,0,'关注MA55线压力'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND MA55>MA21 AND MA55>MA13 AND MA55>MA5 AND C< MA21,0.8,0.01,0,'关注MA21线压力'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR AND 反弹多头回调,0.5,0.01,0,'如果是反弹波段,有可能要开始回调,注意MA55是否有支撑'),COLORCYAN;
虚拟量:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),0);
XG虚:=虚拟量>=3*REF(V,1);
DRAWTEXT_FIX(ISLASTBAR AND XG虚,0.5,5,0,'今日爆巨量,如果收长上影线要小心!'),COLORCYAN;
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
走强2:=BARSLAST(PL10< REF(PL10,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'★'),COLOR0000FF;
DRAWTEXT(CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1)) ,LOW*0.992,'*'),COLORRED;
DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)) ,HIGH*1.018,'*'),COLORBLUE;
ZJ1953:=ZIG(C,15);
粉丝:=MA(ZJ1953,3);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13< 200 AND VAR14>=150 AND VAR14< 200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18< 90,VAR18,100);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1B>60 AND VAR19< 100;
大资金出货:=VAR1C AND COUNT(VAR1C,30)=1;
DRAWTEXT(大资金出货,H*1.10,'* ');
STICKLINE(大资金出货,OPEN,CLOSE,2.5,0),COLORMAGENTA;
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),COLORBLUE,LINETHICK2;
DRAWTEXT(ISLASTBAR,真妖显身,' 妖股显身'),COLORFFB5FF;
DRAWLINE(CURRBARSCOUNT>10 AND V=HHV(V,100),H,ISLASTBAR, REF(H,BARSLAST(CURRBARSCOUNT>10 AND V=HHV(V,100))),1);
总量:=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;
量王后:=REF(量王,1) AND V>REF(V,1);
LWHG:=BARSLAST(量王后);
高回6:=REF(H,LWHG);
XG12:=C>高回6;
突破:=CROSS(XG12,0.6);
DRAWLINE(量王后,H,REF(量王后,1),REF(H,1),1),COLORWHITE,DOTLINE;
DRAWTEXT_FIX(ISLASTBAR,0.00,0.99,0,STRCAT(Z4,GNBLOCK)),COLORGREEN;
GSD:=C/REF(C,1)>=1.095 AND L<>H;
FH:=GSD AND G1 AND V< REF(V,1);
DRAWTEXT(FH,L*0.98,'B'),COLORYELLOW;
VAR1A:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
DRAWTEXT(FILTER(VAR4AA>0,34),L,'★'),COLOR00FFFF;
DRAWTEXT(FILTER(VAR4AA>0,34),L,'★'),COLOR00FFFF;
LT:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
EXT1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORRED,LINETHICK1;
TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);
DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK1;
EXT2:DRAWLINE(LTT=0,(EXT1-L)*0.618+L,ISLASTBAR,REF((EXT1-L)*0.618+L,LTT),0)DOTLINE,COLORLIMAGENTA;
V1:=IF(C>O OR (C=O AND C>=REF(C,1)),VOL,0);
V2:=IF(C< O OR (C=O AND C< REF(C,1)),VOL,0);
LJ:=SUM(V1,LTT)/SUM(V2,LTT);
XGG:=COUNT(CROSS(C>=EXT1,0.5),LTT+1)=1 AND CROSS(C>=EXT1,0.5) AND LJ>1.5;
DRAWICON(XGG,L,25);
STICKLINE(XGG,C,O,2,0),COLORYELLOW;
STICKLINE(XGG,H,L,0,0),COLORYELLOW;
DRAWTEXT(LTT=0,L*0.98,'←锅底'),COLORYELLOW;
T:=BARSLAST(CROSS(C,REF(H,TT)));
GL:=C/REF(H,TT);
TAK:=BARSLAST(GL=HHV(GL,T+1));
DF:=(C-REF(C,TAK+1))/REF(C,TAK+1)*100;
JL:=L/REF(H,TT);
XGK:=DF< -8 AND JL< 1.075 AND MIN(C,O)*1.005>=REF(H,TT);
XGT:=BARSLAST(COUNT(XGK,T+1)=1 AND XGK);
QFK:=BACKSET(XGT=0,TAK+1);
QFTK:=BARSLAST(CROSS(QFK=1,0.5));
XZF:=REFX(DF,BARSNEXT(XGT=0));
DRAWICON(CROSS(XGT=0,0.5),L*0.99,1);
DRAWTEXT(CROSS(XGT=0,0.5),L*0.980,'←回踩'),COLORYELLOW;
DRAWLINE(T=0,REF(H,TT),QFTK=0,REF(H,QFTK),0),DOTLINE,COLORYELLOW;
DRAWLINE(QFTK=0,REF(H,QFTK),XGT=0,REF(H,TT),0),DOTLINE,COLORYELLOW;
DRAWTEXT(TT=0,REF(H,TT)*1.05,VARCAT(VARCAT('支撑价:',VAR2STR(REF(H,TT),2)),'元'))COLORYELLOW;
DRAWLINE(QFTK=0,REF(H,QFTK)*1.05,QFTK=10,REF(H,QFTK)*1.05,0),COLORWHITE,LINETHICK3;
DRAWTEXT(QFTK=0,REF(H,QFTK)*1.01,VARCAT(VARCAT('信号处跌幅:',VAR2STR(XZF,2)),'%'))COLORYELLOW;
DIF:=12;
DEA:=26;
MID:=9;
VAR1:=CLOSE-LOW;
VAR2:=HIGH-LOW;
VAR3:=CLOSE-HIGH;
VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);
HPTP:=SUM(VAR4,10)/10000, COLORSTICK;
TKXL:=(DIF-DEA)*2;
XVYO:=UPNDAY(TKXL,1);
G:=MA(C,5);
HH:=REF(H,5)=HHV(H,11);
LL:=REF(L,5)=LLV(L,11);
STICKLINE(V/REF(V,1)>2,OPEN,CLOSE,1,0),COLOR00FFFF;
FG01:=BACKSET(HH,6)>BACKSET(HH,5);
FD01:=BACKSET(LL,6)>BACKSET(LL,5);
FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01, IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0));
FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01, IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0));
FG0:=FG02 AND H=HHV(H,BARSLAST(FD02));
FD0:=FD02 AND L=LLV(L,BARSLAST(FG02));
GQ:=L>REF(H,1) AND DAY!=REF(DAY,1);
DQ:=H< REF(L,1) AND DAY!=REF(DAY,1);
FGH:=REF(H,BARSLAST(FG0));
FGL:=REF(L,BARSLAST(FG0));
FGH1:=REF(H,BARSLAST(FG0)+1);
FGL1:=REF(L,BARSLAST(FG0)+1);
FGH2:=REF(H,BARSLAST(FG0)+2);
FGL2:=REF(L,BARSLAST(FG0)+2);
FDH:=REF(H,BARSLAST(FD0));
FDL:=REF(L,BARSLAST(FD0));
FDH1:=REF(H,BARSLAST(FD0)+1);
FDL1:=REF(L,BARSLAST(FD0)+1);
FDH2:=REF(H,BARSLAST(FD0)+2);
FDL2:=REF(L,BARSLAST(FD0)+2);
FGZL:=IF(FGH1< FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1));
FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1));
FG1:=FGH>FDZH AND FG0;
FD1:=FDL< FGZL AND FD0;
FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;
FD:=FD1 AND FDL< FGL AND FDH< FGH AND FDH1< FGH;
BH0:=(H<=REF(H,1) AND L>=REF(L,1)) OR (H>=REF(H,1) AND L<=REF(L,1));
BHG:=COUNT(BH0,BARSLAST(FD0));
BHD:=COUNT(BH0,BARSLAST(FG0));
BGQ:=COUNT(GQ,BARSLAST(FD0));
BDQ:=COUNT(DQ,BARSLAST(FG0));
BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3));
BK:=IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0));
G1X:=(FG AND BARSLAST(FD)>BK);
D1X:=(FD AND BARSLAST(FG)>BK);
G1H:=IF(BARSLAST(D1)>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,BARSLAST(D1)));
D1L:=IF(BARSLAST(G1)>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,BARSLAST(G1)));
G3:=G2 OR (FG0 AND REF(H,BARSLAST(FG0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));
D3:=D2 OR (FD0 AND REF(L,BARSLAST(FD0))< REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));
GPB:=IF(G1X,H,DRAWNULL),CIRCLEDOT,COLORYELLOW;
DPB:=IF(D1X,L,DRAWNULL),CIRCLEDOT,COLORYELLOW;
NN:=G3;
UU:=D3;
趋势向上:DRAWLINE(UU,L,NN,H,0),COLORYELLOW,DOTLINE;
趋势向下:DRAWLINE(NN,H,UU,L,0),COLORWHITE,DOTLINE;
顶线:DRAWLINE(NN,H,REF(NN,1),REF(H,1),1),COLORGREEN;
A201:=SIGNALS_USER(201,0),NODRAW;
DRAWTEXT(A201>0,H*0.99,VARCAT(VARCAT('* ',VAR2STR(A201,0)),'万股')),COLORYELLOW;
DRAWTEXT(A201< 0,H*0.99,VARCAT(VARCAT(' * ',VAR2STR(A201,0)),'万股')),COLORLIBLUE;
MA18:=MA(CLOSE,18);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX< 0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(买=1,5),LOW*0.97,'★'),COLORRED;
M89:=MA(CLOSE,89),COLORMAGENTA,LINETHICK2;
M144:=MA(CLOSE,144),COLORBROWN,LINETHICK2;
M233:=MA(CLOSE,233),COLORYELLOW,LINETHICK2;
M377:=MA(CLOSE,377),COLORCYAN,LINETHICK2;
M450:=MA(CLOSE,450),COLORGREEN,LINETHICK2;
M610:=MA(CLOSE,610),COLORRED,LINETHICK2;
A90:=(MA(COST(90),6)),DOTLINE,COLOR808040;
A70:=(MA(COST(70),6)),DOTLINE,COLOR808040;
M20:=MA(CLOSE,20),COLORWHITE,LINETHICK2;
T5:=REF(HHVBARS(HIGH,60),15)+15;
T60:=REF(HIGH,T5),COLORRED,NODRAW;
STICKLINE(BARSTATUS=2,T60,T60,2000,1),COLORBLUE;
DRAWTEXT(BARSTATUS=2,T60,'小美人'),COLORYELLOW;
HXB2:=DRAWLINE(C>=REF(C,1) AND V>REF(V,1)*2,H,REF(C,1)>=REF(C,2) AND REF(V,1)>REF(V,2)*2,REF (H,1),1);
XZ:=BARSLASTCOUNT(HXB2!=DRAWNULL);
IF(XZ<=10,HXB2,DRAWNULL),LINETHICK1,COLORYELLOW;
N:=6;
QF:=BACKSET(T=2,3);
A:=REFX(L1,BARSNEXT(T=2));
STICKLINE(TT>=0,REF(L,TT),REF(L,TT),4,0),COLORWHITE;
C22:=REF(C,1);
炸板:=IF((H-C22)*100/C22>=(10-0.01*100/C22),1,0);
涨停10:=IF((C-C22)*100/C22>=(10-0.01*100/C22),1,0);
IF(炸板 AND NOT(涨停10),H*1,DRAWNULL),CIRCLEDOT,COLORFF00FF,LINETHICK1;
主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
DRAWTEXT_FIX(ISLASTBAR,0.71,0,0,主营利润率),COLOR00FF80;
封成比:=(DYNAINFO(58)/DYNAINFO(8))*((C/REF(C,1)>1.093 AND C=H));
FCB:=STRCAT('封成比: ',VAR2STR(封成比,2));
DRAWTEXT_FIX(1,0.81,0.05,0,FCB);
封流比:=(DYNAINFO(58)/CAPITAL*100)*((C/REF(C,1)>1.093 AND C=H));
FLB:=STRCAT('封流比: ',VAR2STR(封流比,2));
DRAWTEXT_FIX(1,0.81,0.09,0,FLB);
成流比:=V/CAPITAL*100;
CLB:=STRCAT('成流比: ',VAR2STR(成流比,2));
DRAWTEXT_FIX(1,0.81,0.13,0,CLB);
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:#WEEK
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
波1赋值:10
基金持股赋值:FINVALUE(255)/10000,COLORYELLOW
DRAWTEXT_FIX(ISLASTBAR,0.0,0.5,0,VARCAT('基金持股:',VAR2STR(基金持股,2))),COLORYELLOW
输出占流通股比:FINVALUE(244)/FINVALUE(239)*100,NODRAW
GD赋值:STRCAT('占流通股比 : ',STRCAT(CON2STR(FINVALUE(244)/FINVALUE(239)*100,2),' % '))
当满足条件ISLASTBAR时,在横轴0.39纵轴0.1位置书写文字
A1赋值:5日前的H=2*6+1日内H最高值
B1赋值:A1的5过滤
C1赋值:BACKSET(B1,5+1)
D1赋值:C1的5+1过滤
A2赋值:5日前的L=2*10+1日内L最低值
B2赋值:A2的5+1过滤
C2赋值:BACKSET(B2,5+1)
D2赋值:C2的5过滤
E1赋值:(REF(2*3日内L最低值,1)+REF(2*3日内H最高值,1))/2
E2赋值:(H+L)/2
H1赋值:(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR C的有效数据周期数=1
L1赋值:(D2 AND NOT(D1 AND E1< E2))
H2赋值: D1 AND NOT(D2 AND E1>=E2)
X1赋值:REF(上次H1距今天数,1)+1
如果L1返回L否则返回10000
G1赋值:F1>1日前的F1
I1赋值:BACKSET(G1,2)
LD赋值:I1>1日前的I1
L2赋值:LD OR BARSTATUS=2 OR 收盘价的有效数据周期数=1
X2赋值:REF(上次L2距今天数,1)+1
如果H2返回HIGH否则返回0
G2赋值:F2>1日前的F2
I2赋值:BACKSET(G2,2)
HD赋值:I2>1日前的I2
DRAWLINE(LD,L,HD,H,0),COLORRED
DRAWLINE(HD,H,LD,L,0),COLORGREEN
J1赋值:BACKSET(BARSTATUS=2 ,MIN(上次HD距今天数,BARSLAST(LD))+1)
J2赋值:J1>1日前的J1
如果HD返回H否则返回L
C点赋值:上次LD距今天数
DRAWTEXT(LD AND 上次HD距今天数< BARSLAST(1日前的LD) ,L-0.1,'A'),COLORRED
当满足条件HD时,在H+0.1和'B'位置书写文字
高赋值:5
低赋值:10
高选:=1
低选:=1
波2赋值:1
PURC赋值:CONST(FINDHIGH(H,0,高*5,高选))
PLZ :=CONST(上次PURC=H距今天数)+1
顶X :=CONST(IF(PLZ=1,H,PLZ-1日前的H))
QQT :=CONST(FIND最低价(L,0,低*10,低选))
PLL :=CONST(上次QQT=L距今天数)+1
低X :=CONST(IF(PLL=1,L,PLL-1日前的L))
DRAWKLINE(H,O,L,C)
顶点赋值:顶X,COLORRED
底点赋值:低X,COLORRED
如果PLL>PLZ返回低X否则返回顶X
如果PLL>PLZ返回低X否则返回顶X
如果PLL>PLZ返回1否则返回-1
BPURC :=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2))
BPLZ赋值:CONST(上次BPURC=H距今天数)+1
BQQT :=CONST(FIND最低价 (L,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2))
BPLL赋值:CONST(上次BQQT =L距今天数)+1
BLC1 :=CONST(FINDHIGH(H,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2))
BLC2赋值:CONST(上次BPURC=H距今天数)+1
BLC顶X赋值:CONST(IF(BPLZ=1,H,BPLZ-1日前的H))
BLC3 :=CONST(FIND最低价(L,0,(IF(波1>0,波1,IF(PLZ< PLL,高,低)))*5,波2))
B6C4 :=CONST(上次BQQT=L距今天数)+1
BLC低X:=CONST(IF(BPLL=1,L,BPLL-1日前的L))
如果波动速率< 0返回BLC顶X否则返回BLC低X
如果波动速率< 0返回-1否则返回1
如果PLL>PLZ返回1否则返回-1
B12 :=BASE+(BLCZ*0.775),COLORRED
B14 :=BASE+(BLCZ*0.868),COLORRED
B200:=BASE+(BLCZ*1 ),COLORRED
如果PLL>PLZ返回BPLL否则返回BPLZ
当满足条件CURRBARSCOUNT=XZDD 时,在BASE和B200之间画柱状线
当满足条件CURRBARSCOUNT=XZDD时,在B12 和'---------------------------C1'位置书写文字
当满足条件CURRBARSCOUNT=XZDD时,在B14 和'---------------------------C2'位置书写文字
当满足条件CURRBARSCOUNT=XZDD时,在B200和'---------------------------C3'位置书写文字
DRAWTEXT(CURRBARSCOUNT=10,B12 ,CON2STR(B12 ,2)),COLORC0FF7F
DRAWTEXT(CURRBARSCOUNT=10,B14 ,CON2STR(B14 ,2)),COLORYELLOW
DRAWTEXT(CURRBARSCOUNT=10,B200,CON2STR(B200,2)),COLORGREEN
DRAWTEXT(CURRBARSCOUNT=30,0.99*L,VARCAT('买入 ',VAR2STR(GPJYVALUE(2,1,1),2)))
筹码盈利:=STRCAT(STRCAT('筹码盈利:',CON2STR(DYNAINFO(7计算的获利盘比例)*100,1)),'%')
当满足条件1时,在横轴0纵轴0.16位置书写文字
ZDF赋值:(C-1日前的C)/1日前的C*100
当满足条件ZDF< -9.9时,在O和C之间画柱状线
当前净利润赋值:FINANCE(30)/10000
DRAWTEXT_FIX(C>1,0.00,0.55,0,STRCAT('当前净利润:',STRCAT(CON2STR(当前净利润,2),' 万元'))),COLORRED
净利同比增长%赋值:FINANCE(43)
DRAWTEXT_FIX(C>1,0.00,0.68,0,STRCAT('净利同比增长%:',CON2STR(净利同比增长%,2))),COLORMAGENTA
STICKLINE(BARSTATUS=2 AND H>=获利盘为90%的成本分布,COST(92),COST(92),80,0),COLORWHITE
MA5赋值:MA (C,5),COLORWHITE
MA10:=MA (C,10),COLORYELLOW
MA20:=C的20日简单移动平均,COLORGREEN
MA60赋值:收盘价的60日简单移动平均,COLORMAGENTA
MA120:=收盘价的120日简单移动平均,COLORFF0000
MA250:=收盘价的255日简单移动平均,COLORFF0000
T1赋值:CONST(LLVBARS(最低价,10))
T1HIGH:=CONST(T1日前的HIGH)
CCVV赋值:CONST(CURRBARSCOUNT)
T2赋值:CONST(上次(CURRBARSCOUNT >(CCVV+T1距今天数) AND (HIGH>T1HIGH)))
T2HIGH:=CONST(T2日前的HIGH)
T3赋值:CONST(上次(CURRBARSCOUNT >(CCVV+T2距今天数) AND (HIGH>T2HIGH)))
T3HIGH:=CONST(T3日前的HIGH)
输出必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLORFF0099
DRAWICON(C上穿必杀线,必杀线*1,11)
DY赋值:C/1日前的C< 0.95 AND NOT(L=O)
DRAWLINE(DY,H,1日前的DY,1日前的H,1)DOTLINE,COLORWHITE
YX赋值:(O-C)/1日前的C>0.05 AND H=O AND V/1日前的V>1.5
DRAWLINE(YX,H,1日前的YX,1日前的H,1),COLORLIRED,DOTLINE
去除ST赋值:IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*ST'),0,1)
去除停牌赋值:DYNAINFO(4)>0
去除大盘股赋值:CAPITAL/1000000< 25
去除次新股赋值:FINANCE(42)>120
排除赋值:去除ST AND 去除停牌 AND 去除大盘股 AND 去除次新股
输出今涨停:ZTPRICE(1日前的C,0.1),COLORRED,NODRAW
输出今跌停:DTPRICE(1日前的C,0.1),COLOR00A600,NODRAW
输出明涨停:ZTPRICE(C,0.1),COLORRED,NODRAW
输出明跌停:DTPRICE(C,0.1),COLOR00A600,NODRAW
当满足条件ISLASTBAR时,在C和C之间画柱状线
VAR3AA赋值:IF((收盘价>1日前的收盘价),88,0)
VAR4AA赋值:IF(((收盘价)/(1日前的收盘价)>1.05) AND ((HIGH)/(收盘价)< 1.01) AND (VAR3AA>0),91,0)
TJ赋值:FILTER((VAR4AA>90),45),COLOR00FFFF
TJ1赋值:FILTER((VAR4AA>90),35),COLOR00FFFF
ZT赋值:C/1日前的C>1.099 AND C=H
AA赋值:REF(C,上次ZT AND CURRBARSCOUNT< 60距今天数)
BB赋值:收盘价/1日前的收盘价>1.075 AND HIGH>最低价 AND 收盘价>OPEN
量赋值:V/CONST(90日内V最高值)*30
倍量赋值:(量/1日前的量>=1.91 AND 统计1日满足C>O的天数) OR (L>1日前的H AND 统计1日满足O>C的天数 AND 量/1日前的量>=1.91)
起爆赋值:AA AND BB AND 倍量 AND 排除 AND 5的收盘价/1日前的收盘价>1.095日累和=1
成妖赋值:C>REF(60日内C最高值,1) AND REF(C,1)/REF(REF(C,1),1)>1.098 AND C/REF(C,1)>1.098 AND NOT(C>=REF(C,1)*1.097 AND C=O AND H=L)
孤鹤选股赋值:起爆 OR 成妖
TJ2赋值:孤鹤选股>0
SAG赋值:E1日内HIGH最高值的8日简单移动平均
XA1赋值:收盘价的8日指数移动平均
X30赋值:((XA1 < 1日前的XA1) AND (收盘价 < XA1))
XS31赋值:IF(((SAG < 1日前的SAG) OR X30),1,0)
全仓出击赋值:((((COUNT((XS31 = 1),4) = 3) AND (XS31 = 0)) AND (((收盘价 - 1日前的收盘价) / 1日前的收盘价) > 0.085)) * 89),NODRAW
TJ3:=全仓出击>0
AA11:=30日前的C=2*30+1日内C最高值
BB11:=AA11的30过滤
CC11:=BACKSET(BB11,30+1)
HD1赋值:CC11的30过滤
AA2赋值:10日前的C=2*10+1日内C最低值
BB2赋值:AA2的10过滤
CC2赋值:BACKSET(BB2,10+1)
LD1赋值:CC2的10过滤
起拔赋值:REF(C,上次HD1距今天数),COLORRED
TJ4:=C上穿起拔
SG赋值:TJ AND TJ1 AND TJ2 AND TJ3 AND TJ4
当满足条件SG时,在L*0.93和25之间画图标
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,FGBLOCK)
Z3赋值:STRCAT(Z2,DYBLOCK)
Z4赋值:STRCAT(Z3,' ')
DRAWTEXT_FIX(ISLASTBAR,0,5,0,STRCAT(Z4,GNBLOCK)),COLORYELLOW
TYP赋值:(HIGH+最低价+收盘价)/3
多头力度赋值:(TYP-TYP的14日简单移动平均)/(0.015*AVEDEV(TYP,14))COLORRED
TYP1:=(HIGH-最低价-收盘价)/3
空头力度赋值:(TYP1-TYP1的14日简单移动平均)/(0.015*AVEDEV(TYP1,14))COLORGREEN
TI1赋值:KDJ.J#WEEK
TI2赋值:KDJ.D#WEEK
K赋值:KDJ.K#WEEK
D赋值:KDJ.D#WEEK
J赋值:KDJ.J#WEEK
DRAWICON(J上穿D,L-0.28,1)
DRAWTEXT_FIX(ISLASTBAR AND 多头力度上穿空头力度,0.11,0.9,0,'短买信号'),COLORRED
DRAWTEXT_FIX(ISLASTBAR AND MACD.DIF上穿MACD.DEA AND MACD.DEA< 0,0.15,0.9,0,'MACD底部金叉'),COLORRED
MA13:=C的13日简单移动平均COLORYELLOW
MA21:=C的21日简单移动平均COLORMAGENTA
MA55:=C的55日简单移动平均COLORGREEN
DRAWTEXT_FIX(ISLASTBAR AND MA5上穿MA13,0.35,0.01,0,'MA5金叉MA13'),COLORRED
DRAWTEXT_FIX(ISLASTBAR AND MA13上穿MA5,0.35,0.01,0,'MA13死叉MA5'),COLORCYAN
多头排列赋值:MA5>MA13 && MA13>MA21 && MA21>MA55
转多趋势赋值:MA5>MA13 && MA13>MA21 && MA21< MA55
空头排列赋值:MA5< MA13 && MA13< MA21 && MA21< MA55
反弹多头回调赋值:MA5>MA13 && MA13< MA21 && MA21< MA55 && MA5>MA55 && C< O && C< H
当满足条件ISLASTBAR时,在横轴0.01纵轴0.01位置书写文字
当满足条件ISLASTBAR AND 多头力度>空头力度时,在横轴0.01纵轴0.40位置书写文字
当满足条件ISLASTBAR AND 空头力度>多头力度时,在横轴0.01纵轴0.40位置书写文字
DRAWTEXT_FIX(ISLASTBAR AND 多头力度>1日前的多头力度,0.01,0.25,0,'多方坚守'),COLORYELLOW
DRAWTEXT_FIX(ISLASTBAR AND 多头力度< 1日前的多头力度,0.01,0.25,0,'多方转弱'),COLORYELLOW
DRAWTEXT_FIX(ISLASTBAR AND 空头力度>1日前的空头力度,0.01,0.13,0,'空方转强'),COLORCYAN
DRAWTEXT_FIX(ISLASTBAR AND 空头力度< 1日前的空头力度,0.01,0.13,0,'空方转弱'),COLORGREEN
DRAWTEXT_FIX(ISLASTBAR AND 空头力度上穿-100,0.07,0.13,0,'空方有爆发倾向'),COLORCYAN
DRAWTEXT_FIX(ISLASTBAR AND 多头力度< 1日前的多头力度 AND 空头力度< 1日前的空头力度,0.01,0.17,0,'当前参与度较低,注意后市变盘的方向!'),COLORYELLOW
当满足条件ISLASTBAR AND 多头排列时,在横轴0.2纵轴0.01位置书写文字
当满足条件ISLASTBAR AND 多头排列 AND C< MA5 AND C>MA13 AND C< O时,在横轴0.2纵轴0.05位置书写文字
当满足条件ISLASTBAR AND 转多趋势时,在横轴0.6纵轴0.01位置书写文字
当满足条件ISLASTBAR AND 空头排列时,在横轴0.2纵轴0.01位置书写文字
当满足条件ISLASTBAR AND C>MA13 AND MA5>MA13 AND MA21< MA55 AND C< MA21时,在横轴0.5纵轴0.01位置书写文字
当满足条件ISLASTBAR AND MA55>MA21 AND MA55>MA13 AND MA55>MA5 AND C>MA21时,在横轴0.2纵轴0.01位置书写文字
当满足条件ISLASTBAR AND MA55>MA21 AND MA55>MA13 AND MA55>MA5 AND C< MA21时,在横轴0.8纵轴0.01位置书写文字
当满足条件ISLASTBAR AND 反弹多头回调时,在横轴0.5纵轴0.01位置书写文字
虚拟量赋值:IF(DYNAINFO(7)=收盘价 AND DYNAINFO(10)=AMOUNT,MAX(成交量,DYNAINFO(17)*REF(成交量的5日简单移动平均,1)),0)
XG虚赋值:虚拟量>=3*1日前的V
当满足条件ISLASTBAR AND XG虚时,在横轴0.5纵轴5位置书写文字
EN1赋值:ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)
PL10:=ZIG(3,10)
走强2赋值:上次PL10< 1日前的PL10距今天数
ZTJZ5:=IF(PL10>1日前的PL10,统计走强2日满足EN1的天数,0)
DRAWTEXT(EN1 AND PL10>1日前的PL10 AND ZTJZ5=2,L*0.98,'★'),COLOR0000FF
DRAWTEXT(CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1)) ,最低价*0.992,'*'),COLORRED
DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)) ,HIGH*1.018,'*'), 画蓝色
ZJ1953:=ZIG(C,15)
粉丝赋值:ZJ1953的3日简单移动平均
VAR12赋值:(HIGH+最低价+收盘价)/3
VAR13赋值:(VAR12-VAR12的14日简单移动平均)/(0.015*AVEDEV(VAR12,14))
VAR14赋值:(VAR12-VAR12的70日简单移动平均)/(0.015*AVEDEV(VAR12,70))
如果VAR13>=150 AND VAR13< 200 AND VAR14>=150 AND VAR14< 200返回10否则返回0
如果VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200返回-10否则返回VAR15
VAR17赋值:(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100
VAR18赋值:100-VAR17的绝对值
如果VAR18< 90返回VAR18否则返回100
VAR1B赋值:IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60
VAR1C赋值:VAR1B>60 AND VAR19< 100
大资金出货赋值:VAR1C AND 统计30日满足VAR1C的天数=1
当满足条件大资金出货时,在H*1.10和'* '位置书写文字
当满足条件大资金出货时,在OPEN和收盘价之间画柱状线
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), 画蓝色,LINETHICK2
当满足条件ISLASTBAR时,在真妖显身和' 妖股显身'位置书写文字
DRAWLINE(CURRBARSCOUNT>10 AND V=100日内V最高值,H,ISLASTBAR, REF(H,上次CURRBARSCOUNT>10 AND V=100日内V最高值距今天数),1)
总量赋值:AMOUNT,成交量STICK
量比:=V/REF(V的5日简单移动平均,1),COLORBROWN,NODRAW
几倍赋值:1.9
倍量量王:= 总量 >=1日前的总量*几倍 AND (IF(C< O,C>1日前的C,1)),COLORYELLOW,NODRAW
天量赋值:总量=120日内总量最高值, COLORRED
量王:=天量&&倍量量王&&量比>2&&(C的有效数据周期数+1)>120,COLORGREEN
当满足条件量王时,在C和O之间画柱状线
量王后:=1日前的量王 AND V>1日前的V
LWHG赋值:上次量王后距今天数
高回6:=LWHG日前的H
XG12:=C>高回6
突破赋值:XG12上穿0.6
DRAWLINE(量王后,H,1日前的量王后,1日前的H,1),COLORWHITE,DOTLINE
DRAWTEXT_FIX(ISLASTBAR,0.00,0.99,0,STRCAT(Z4,GNBLOCK)),COLORGREEN
GSD赋值:C/1日前的C>=1.095 AND L<>H
FH赋值:GSD AND G1 AND V< 1日前的V
当满足条件FH时,在L*0.98和'B'位置书写文字
VAR1A赋值:DAMOUNT/成交量/100的成交量/CAPITAL日简单移动平均
DRAWTEXT(VAR4AA>0的34过滤,L,'★'),COLOR00FFFF
DRAWTEXT(VAR4AA>0的34过滤,L,'★'),COLOR00FFFF
LT赋值:LLVBARS(L,60)
LTT赋值:上次CURRBARSCOUNT=CONST(LT距今天数+1)
HT赋值:FINDHIGHBARS(H,LT+1,60,1)
EX输出T1:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,HT日前的H,0),COLORRED,LINETHICK1
TT赋值:上次CURRBARSCOUNT=CONST(HT距今天数+1)
DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK1
EX输出T2:DRAWLINE(LTT=0,(EXT1-L)*0.618+L,ISLASTBAR,REF((EXT1-L)*0.618+L,LTT),0)DOTLINE,COLORLIMAGENTA
V1赋值:IF(C>O OR (C=O AND C>=1日前的C),成交量,0)
V2赋值:IF(C< O OR (C=O AND C< 1日前的C),成交量,0)
LJ赋值:LTT的V1日累和/LTT的V2日累和
XGG赋值:统计LTT+1日满足C>=EXT1上穿0.5的天数=1 AND C>=EXT1上穿0.5 AND LJ>1.5
当满足条件XGG时,在L和25之间画图标
当满足条件XGG时,在C和O之间画柱状线
当满足条件XGG时,在H和L之间画柱状线
当满足条件LTT=0时,在L*0.98和'←锅底'位置书写文字
T赋值:上次CROSS(C,TT日前的H距今天数)
GL赋值:C/TT日前的H
TAK赋值:上次GL=T+1日内GL最高值距今天数
DF:=(C-TAK+1日前的C)/TAK+1日前的C*100
JL:=L/TT日前的H
XGK赋值:DF< -8 AND JL< 1.075 AND C和O的较小值*1.005>=TT日前的H
XGT赋值:上次统计T+1日满足XGK的天数=1 AND XGK距今天数
QFK赋值:BACKSET(XGT=0,TAK+1)
QFTK赋值:上次QFK=1上穿0.5距今天数
XZF赋值:REFX(DF,BARSNEXT(XGT=0))
DRAWICON(XGT=0上穿0.5,L*0.99,1)
DRAWTEXT(XGT=0上穿0.5,L*0.980,'←回踩'),COLORYELLOW
DRAWLINE(T=0,TT日前的H,QFTK=0,QFTK日前的H,0),DOTLINE,COLORYELLOW
DRAWLINE(QFTK=0,QFTK日前的H,XGT=0,TT日前的H,0),DOTLINE,COLORYELLOW
DRAWTEXT(TT=0,TT日前的H*1.05,VARCAT(VARCAT('支撑价:',VAR2STR(TT日前的H,2)),'元'))COLORYELLOW
DRAWLINE(QFTK=0,QFTK日前的H*1.05,QFTK=10,QFTK日前的H*1.05,0),COLORWHITE,LINETHICK3
DRAWTEXT(QFTK=0,QFTK日前的H*1.01,VARCAT(VARCAT('信号处跌幅:',VAR2STR(XZF,2)),'%'))COLORYELLOW
DIF:=12
DEA赋值:26
MID赋值:9
VAR1赋值:收盘价-最低价
VAR2赋值:HIGH-最低价
VAR3赋值:收盘价-HIGH
VAR4赋值:IF(HIGH>最低价,(VAR1/VAR2+VAR3/VAR2)*成交量,0)
HPTP:=10的VAR4日累和/10000, COLORSTICK
TKXL:=(DIF-DEA)*2
XVYO赋值:UPNDAY(TKXL,1)
G赋值:C的5日简单移动平均
HH赋值:5日前的H=11日内H最高值
LL赋值:5日前的L=11日内L最低值
STICKLINE(V/1日前的V>2,OPEN,收盘价,1,0),COLOR00FFFF
FG01:=BACKSET(HH,6)>BACKSET(HH,5)
FD01:=BACKSET(LL,6)>BACKSET(LL,5)
FG02:=IF(上次FG01距今天数=BARSLAST(FD01) AND G>D,FG01, IF(BARSLAST(FD01)>上次FG01距今天数,FG01,0))
FD02:=IF(上次FG01距今天数=BARSLAST(FD01) AND D>G,FD01, IF(上次FG01距今天数>BARSLAST(FD01),FD01,0))
FG0:=FG02 AND H=HHV(H,上次FD02距今天数)
FD0:=FD02 AND L=LLV(L,上次FG02距今天数)
GQ:=L>1日前的H AND DAY!=1日前的DAY
DQ:=H< 1日前的L AND DAY!=1日前的DAY
FGH:=REF(H,上次FG0距今天数)
FGL赋值:REF(L,上次FG0距今天数)
FGH1赋值:REF(H,上次FG0距今天数+1)
FGL1赋值:REF(L,上次FG0距今天数+1)
FGH2赋值:REF(H,上次FG0距今天数+2)
FGL2赋值:REF(L,上次FG0距今天数+2)
FDH:=REF(H,上次FD0距今天数)
FDL:=REF(L,上次FD0距今天数)
FDH1赋值:REF(H,上次FD0距今天数+1)
FDL1赋值:REF(L,上次FD0距今天数+1)
FDH2赋值:REF(H,上次FD0距今天数+2)
FDL2赋值:REF(L,上次FD0距今天数+2)
FGZL:=IF(FGH1< FGL,FGL,IF(FGL<=FGL1,FGL2,FGL1))
FDZH:=IF(FDL1>FDH,FDH,IF(FDH>=FDH1,FDH2,FDH1))
FG1赋值:FGH>FDZH AND FG0
FD1赋值:FDL< FGZL AND FD0
FG赋值:FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL
FD赋值:FD1 AND FDL< FGL AND FDH< FGH AND FDH1< FGH
BH0赋值:(H<=1日前的H AND L>=1日前的L) OR (H>=1日前的H AND L<=1日前的L)
BHG赋值:COUNT(BH0,上次FD0距今天数)
BHD赋值:COUNT(BH0,上次FG0距今天数)
BGQ:=COUNT(GQ,上次FD0距今天数)
BDQ:=COUNT(DQ,上次FG0距今天数)
BK0:=IF(BHG>0,BHG+2,IF(BHD,BHD+2,3))
BK赋值:IF(BGQ,BK0-BGQ,IF(BDQ,BK0-BDQ,BK0))
G1X:=(FG AND 上次FD距今天数>BK)
D1X:=(FD AND 上次FG距今天数>BK)
G1H:=IF(上次D1距今天数>BARSLAST(G1),REF(H,BARSLAST(G1)),REF(H,上次D1距今天数))
D1L:=IF(上次G1距今天数>BARSLAST(D1),REF(L,BARSLAST(D1)),REF(L,上次G1距今天数))
G3:=G2 OR (FG0 AND REF(H,上次FG0距今天数)>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2))
D3:=D2 OR (FD0 AND REF(L,上次FD0距今天数)< REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2))
如果G1X返回H否则返回DRAWNULL
如果D1X返回L否则返回DRAWNULL
NN赋值:G3
UU赋值:D3
输出趋势向上:DRAWLINE(UU,L,NN,H,0),COLORYELLOW,DOTLINE
输出趋势向下:DRAWLINE(NN,H,UU,L,0),COLORWHITE,DOTLINE
输出顶线:DRAWLINE(NN,H,1日前的NN,1日前的H,1),COLORGREEN
A201:=SIGNALS_USER(201,0),NODRAW
DRAWTEXT(A201>0,H*0.99,VARCAT(VARCAT('* ',VAR2STR(A201,0)),'万股')),COLORYELLOW
DRAWTEXT(A201< 0,H*0.99,VARCAT(VARCAT(' * ',VAR2STR(A201,0)),'万股')),COLORLIBLUE
MA18:=收盘价的18日简单移动平均
MTM:=C-1日前的C
DX:=100*MTM的6日指数移动平均,6)/EMA(EMA(MTM的绝对值,6),6)
买赋值:2日内DX最低值=7日内DX最低值 AND 统计2日满足DX< 0的天数 AND CROSS(DX,DX的2日简单移动平均)
DRAWTEXT(买=1的5过滤,最低价*0.97,'★'),COLORRED
M89赋值:收盘价的89日简单移动平均,COLORMAGENTA,LINETHICK2
M144赋值:收盘价的144日简单移动平均,COLORBROWN,LINETHICK2
M233赋值:收盘价的233日简单移动平均,COLORYELLOW,LINETHICK2
M377赋值:收盘价的377日简单移动平均,COLORCYAN,LINETHICK2
M450赋值:收盘价的450日简单移动平均,COLORGREEN,LINETHICK2
M610赋值:收盘价的610日简单移动平均,COLORRED,LINETHICK2
A90赋值:(MA(获利盘为90%的成本分布,6)),DOTLINE,COLOR808040
A70赋值:(MA(获利盘为70%的成本分布,6)),DOTLINE,COLOR808040
M20赋值:收盘价的20日简单移动平均,COLORWHITE,LINETHICK2
T5:=REF(HHVBARS(HIGH,60),15)+15
T60:=T5日前的HIGH,COLORRED,NODRAW
当满足条件BARSTATUS=2时,在T60和T60之间画柱状线
当满足条件BARSTATUS=2时,在T60和'小美人'位置书写文字
HXB2赋值:DRAWLINE(C>=1日前的C AND V>1日前的V*2,H,1日前的C>=2日前的C AND 1日前的V>2日前的V*2,REF (H,1),1)
XZ赋值:BARSLASTCOUNT(HXB2!=DRAWNULL)
如果XZ<=10返回HXB2否则返回DRAWNULL
N赋值:6
QF赋值:BACKSET(T=2,3)
A赋值:REFX(L1,BARSNEXT(T=2))
STICKLINE(TT>=0,TT日前的L,TT日前的L,4,0),COLORWHITE
C22:=1日前的C
炸板赋值:IF((H-C22)*100/C22>=(10-0.01*100/C22),1,0)
涨停10赋值:IF((C-C22)*100/C22>=(10-0.01*100/C22),1,0)
IF(炸板 AND NOT(涨停10),H*1,DRAWNULL),CIRCLEDOT,COLORFF00FF,LINETHICK1
主营利润率赋值:STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2))
当满足条件ISLASTBAR时,在横轴0.71纵轴0位置书写文字
封成比赋值:(DYNAINFO(58)/DYNAINFO(8))*((C/1日前的C>1.093 AND C=H))
FCB:=STRCAT('输出封成比: ',VAR2STR(封成比,2))
当满足条件1时,在横轴0.81纵轴0.05位置书写文字
封流比赋值:(DYNAINFO(58)/CAPITAL*100)*((C/1日前的C>1.093 AND C=H))
FLB:=STRCAT('输出封流比: ',VAR2STR(封流比,2))
当满足条件1时,在横轴0.81纵轴0.09位置书写文字
成流比赋值:V/CAPITAL*100
CLB:=STRCAT('输出成流比: ',VAR2STR(成流比,2))
当满足条件1时,在横轴0.81纵轴0.13位置书写文字