通达信主力趋势预测主图指标 趋势支撑压力画线 源码附图




波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
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图