获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;DRAWKLINE(H,O,L,C);均线25:=MA(CLOSE,25);均线43:=MA(CLOSE,43);均线50:=MA(CLOSE,50),COLOR0000FF;均线88:=MA(CLOSE,88);N8:=STRCAT(CON2STR(YEAR,0),'年');Y8:=STRCAT(CON2STR(MONTH,0),'月');R8:=STRCAT(CON2STR(DAY,0),'日');K:=BARSLAST(CURRBARSCOUNT=120);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL);低:=IF(CURRBARSCOUNT<=120/30,DD,DRAWNULL),COLORFFFF00;高:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL),COLOR00FFFF;支撑:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;强势:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;突破:=IF(CURRBARSCOUNT<=120/30,DD+KJ/2,DRAWNULL),COLOR0000FF;警示:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.618,DRAWNULL),COLORCYAN;压力:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.809,DRAWNULL),COLORGREEN;
{DRAWTEXT(CURRBARSCOUNT=1,压力,CON2STR(压力,1)),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1,警示,CON2STR(警示,1)),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=1,突破,CON2STR(突破,1)),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=1,强势,CON2STR(强势,1)),COLORFF00FF;DRAWTEXT(CURRBARSCOUNT=1,支撑,CON2STR(支撑,1)),COLOR00FFFF;}
买:=ZIG(3,6);卖:=MA(买,2);STICKLINE(买>卖 AND O>=C,C,O,-1,0),COLORRED;STICKLINE(买>卖 AND O>=C,L,H,0,0),COLORRED;STICKLINE(买 < 卖 AND O<=C,O,C,-1,1),COLORCYAN;STICKLINE(买 < 卖 AND O<=C,O,L,0,1),COLORCYAN;STICKLINE(买 < 卖 AND O<=C,C,H,0,1),COLORCYAN;
{九转}AH:=HHV(H,60);AL:=LLV(L,60);A0:=(AH-AL)/21;A01:=C>REF(C,4);NT:=BARSLASTCOUNT(A01);TJ11:=NT=9;TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),COLORYELLOW;DRAWTEXT(NT=9,H+1.1*A0,'9'),COLORGREEN;DRAWTEXT(NT=13,H+1.1*A0,'13'),COLORGREEN;DRAWTEXT(NT=18,H+1.1*A0,'18'),COLORGREEN;B1:=C<REF(C,4);NT0:=BARSLASTCOUNT(B1);TJ21:=NT0=9 ;TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN;DRAWTEXT(NT0=9,H+1.1*A0,'9'),COLORYELLOW;DRAWTEXT(NT0=13,H+1.1*A0,'13'),COLORYELLOW;DRAWTEXT(NT0=18,H+1.1*A0,'18'),COLORYELLOW;
N11:=2,200,13;UR00:=2,200,6;LR0:=2,200,6;TC01:=IF(H=HHV(H,8*UR00),H,DRAWNULL);TC02:=CONST(BARSLAST(TC01=H))+1;UPPER:=CONST(IF(TC02=1,H,REF(H,TC02-1)));BC1:=IF(L=LLV(L,8*LR0),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;HP:=CURRBARSCOUNT<=TC02 AND H=UPPER;NOD:=(IF(TC02>BC2,TC02,BC2)-IF(TC02>BC2,BC2,TC02));LR1:=FORCAST(C,NOD+1);NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC02),CONST(IF(MIN(TC02,BC2)=1,LR1,REF(LR1,MIN(TC02,BC2)-1))),DRAWNULL),POINTDOT,COLORRED;LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC02,BC2)=1,LR2,REF(LR2,MIN(TC02,BC2)-1)));FP:=NP-LR3*(NOD),POINTDOT,COLORYELLOW;EQU:=(NP+FP)/2,POINTDOT,COLORWHITE;AD:=ABS(NP-FP);DBL0:=BARSLAST(BC1!=DRAWNULL)+1;DBH:=BARSLAST(TC01!=DRAWNULL)+1;BSP:=IF(BC2>TC02,DBL0,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC02));AT3:=CONST(BARSLAST(AT1-LRL=AT2));AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MAX(BC2,TC02));UT3:=CONST(BARSLAST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,ATL,CONST(REF(ATL,MIN(BC2,TC02)-11)));RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,UTL,CONST(REF(UTL,MIN(BC2,TC02)-11)));中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORFF0000;下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF;
SJ1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));SJ2:=FILTER(SJ1,3);SJ3:=BACKSET(SJ2,(3 + 1));SJ4:=FILTER(SJ3,3);SJ5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));SJ6:=FILTER(SJ5,3);SJ7:=BACKSET(SJ6,(3 + 1));SJ8:=FILTER(SJ7,3);SJ9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);SJ10:=((HIGH + LOW) / 2);SJ11:=(((SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));SJ12:=(SJ8 AND NOT((SJ4 AND (SJ9 < SJ10))));SJ13:=(SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10))));SJ14:=(REF(BARSLAST(SJ11),1) + 1);SJ15:=BACKSET((SJ11 AND (COUNT(SJ12,SJ14) > 0)),LLVBARS(IF(SJ12,LOW,10000),SJ14));SJ16:=(SJ15 > REF(SJ15,1));SJ17:=BACKSET(SJ16,2);SJ18:=(SJ17 > REF(SJ17,1));SJ19:=((SJ18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));SJ20:=(REF(BARSLAST(SJ19),1) + 1);SJ21:=BACKSET((SJ19 AND (COUNT(SJ13,SJ20) > 0)),HHVBARS(IF(SJ13,HIGH,0),SJ20));SJ22:=(SJ21 > REF(SJ21,1));SJ23:=BACKSET(SJ22,2);SJ24:=(SJ23 > REF(SJ23,1));SJ25:=BACKSET(BARSTATUS,(BARSLAST(SJ18) + 1));SJ26:=(SJ25 > REF(SJ25,1));SJ27:=BACKSET(BARSTATUS,(BARSLAST(SJ24) + 1));SJ28:=(SJ27 > REF(SJ27,1));底0:REF(LOW,BARSLAST(SJ26)),COLORLIRED;顶0:REF(HIGH,BARSLAST(SJ28)),COLORLIGREEN;DRAWTEXT(CURRBARSCOUNT=3,顶0,STRCAT(('压:'),CON2STR(顶0,2))),COLORLIGREEN;DRAWTEXT(CURRBARSCOUNT=5,底0,STRCAT(('支:'),CON2STR(底0,2))),COLORLIRED;DRAWLINE(SJ28,HIGH,SJ26,顶0,1),COLORLIGREEN,LINETHICK1;DRAWLINE(SJ26,LOW,SJ28,底0,1),COLORLIRED,LINETHICK1;
{庄家成本}AL0:=SUMBARS(V,CAPITAL*1);AL1:=SUM(COST(10),AL0)/AL0;AL2:=SUM(COST(20),AL0)/AL0;AL3:=SUM(COST(30),AL0)/AL0;AL4:=SUM(COST(40),AL0)/AL0;AL5:=SUM(COST(50),AL0)/AL0;庄家成本2:=(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE;庄家成本1:REFDATE(庄家成本2,DATE),COLORLIGRAY,DOTLINE;DRAWTEXT(CURRBARSCOUNT=30,庄家成本1,STRCAT('庄本:',CON2STR(庄家成本1,2))),COLORGRAY;
成妖趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORRED,DOTLINE;STICKLINE(成妖趋势>LOW AND 成妖趋势<HIGH,成妖趋势,MIN(MIN(OPEN,CLOSE),成妖趋势),2,1),COLOR00CCFF;STICKLINE(成妖趋势>MIN(C,O) AND 成妖趋势<MAX(C,O),成妖趋势,MIN(OPEN,CLOSE),2,1),COLOR00CCFF;STICKLINE(成妖趋势>HIGH,OPEN,CLOSE,2,1),COLOR00CCFF;{STICKLINE(成妖趋势>HIGH,HIGH,LOW,0,1),COLOR00CCFF;};
{快逃绿箭头}VAR30:=PEAKBARS(3,15,1)<10;VAR50:=IF(VAR30=1,2,0);顶1:= IF(VAR50=2,2,0);顶A:=IF(顶1>REF(顶1,1),2,0),COLORGREEN;DRAWICON(顶A=2,H*1.02,2);
{买点红箭头}AR1:=EMA(OPEN,7);AR2:=EMA(AR1,21);AR3:=CROSS(AR1,AR2);AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);短买:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,2,0),COLORRED;DRAWICON(短买=2,L*0.98,1);
{顶底}底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,COLORYELLOW;DRAWICON(底,L*0.99,9);顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,COLORYELLOW;DRAWICON(顶,H*1.01,15);
顶点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIBLUE,DOTLINE;低点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIRED,DOTLINE;
STICKLINE(CCI>=200 AND H>=顶点,C+(O-C)/3,C,2,0),COLORGREEN;STICKLINE(CCI<=100 AND L<=低点,C-(C-O)/3,C,2,0),COLORLIMAGENTA;
{小压}H1:=REF(C,9)=HHV(C,2*9+1);H2:=FILTER(H1,9);H3:=BACKSET(H2,9+1);H4:=FILTER(H3,9);小压:=REF(C*0.999,BARSLAST(H4)),COLORWHITE,NODRAW;H5:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;小压2:REF(C*0.999,BARSLAST(H5)),COLORLIGREEN,DOTLINE;STICKLINE(C*0.999,小压2,小压2,1,1), COLORLIGREEN;
{双低三角}AB1:=REF(H,5)=HHV(H,2*5+1);B91:=FILTER(AB1,5);CD1:=BACKSET(B91,5+1);D1:=FILTER(CD1,5);A2:=REF(L,5)=LLV(L,2*5+1);B92:=FILTER(A2,5);CD2:=BACKSET(B92,5+1);D2:=FILTER(CD2,5);E1:=(REF(LLV(L,2*5),1)+REF(HHV(H,2*5),1))/2; E2:=(H+L)/2;H91:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H92:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H91),1)+1; F1:=BACKSET(H91 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);T91:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T91>REF(T91,1);T92:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T92>REF(T92,1);短期支撑:DRAWLINE(U2,L,U1,L,1),COLORRED LINETHICK2;DRAWICON(U1,L*0.99,38);DRAWICON(U2,L*0.99,38);
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);次高:DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLORYELLOW,DOTLINE;极高:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORLIBLUE,DOTLINE;DRAWTEXT(CURRBARSCOUNT=1,次高,CON2STR(次高,1)),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=1,极高,CON2STR(极高,1)),COLORLIBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,DOTLINE;
TTT:=6;A11:=REF(HIGH,6)=HHV(HIGH,2*TTT+1); B11:=FILTER(A11,TTT); C11:=BACKSET(B11,TTT+1); D11:=FILTER(C11,TTT);A22:=REF(LOW,TTT)=LLV(LOW,2*TTT+1); B22:=FILTER(A22,TTT); C22:=BACKSET(B22,TTT+1); D22:=FILTER(C22,TTT);E21:=(REF(LLV(LOW,2*TTT),1)+REF(HHV(HIGH,2*TTT),1))/2;E22:=(HIGH+LOW)/2;H21:=(D11 AND NOT(D22 AND E21>=E22)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;L21:=(D22 AND NOT(D11 AND E21<E22));X21:=REF(BARSLAST(H21),1)+1; F21:=BACKSET(H21 AND COUNT(L21,X21)>0,LLVBARS(IF(L21,LOW,10000),X21));G21:=F21>REF(F21,1);I21:=BACKSET(G21,2);LD1:=I21>REF(I21,1);UU:=BACKSET(BARSTATUS,BARSLAST(LD1)+1);VV:=UU>REF(UU,1);近低:REF(L,BARSLAST(VV)),COLORLIRED,LINETHICK1,DOTLINE;DRAWTEXT(CURRBARSCOUNT=2,近低,STRCAT('',CON2STR(近低,1))),COLORLIRED;
{涨跌停颜色}X_2:=REF(CLOSE,1);X_3:=REF(CLOSE,1)*1.097;X_4:=CLOSE>=X_3 AND CLOSE=HIGH;STICKLINE(X_4,CLOSE-(CLOSE-OPEN)/3,CLOSE,2,0),COLORRED;X_5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);STICKLINE(X_5,CLOSE+(OPEN-CLOSE)/3,CLOSE,2,0),COLORBLUE;
{断量}MV5:=MA(V,5);破5:=CROSS(MV5,V);断量:DRAWLINE(破5 AND CURRBARSCOUNT<9,C,REF(破5,1),REF(C,1),1),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,1))),COLORWHITE;
{顾比}P:=21;擒股指标1:=IF(L=LLV(L,P),L,DRAWNULL);擒股指标2:=CONST(BARSLAST(擒股指标1!=DRAWNULL));擒股指标3:=CONST(IF(擒股指标2=0,H,REF(H,擒股指标2)));擒股指标4:=CONST(REF(BARSLAST(H>擒股指标3),擒股指标2+1)+擒股指标2+1);擒股指标5:=CONST(IF(擒股指标4=0,H,REF(H,擒股指标4)));擒股指标6:=CONST(REF(BARSLAST(H>擒股指标5),擒股指标4+1)+擒股指标4+1);顾比:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,REF(H,擒股指标6))),DRAWNULL),DOTLINE,COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('顾比:'),CON2STR(顾比,1))),COLORYELLOW;下降压力线:DRAWLINE(CURRBARSCOUNT<20 AND HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORGRAY ,LINETHICK1,DOTLINE;
{牛股启动}AA05:MA(C,5),LINETHICK1,COLOR0099CC;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORRED;IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORGREEN;AA10:=MA(C,10),COLOR00FF00;AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;VAR1:=(AA20-AA30)>REF((AA20-AA30),1)AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10<REF(AA10,1),10);DRAWTEXT(加仓,LOW*0.99,'加'),COLORMAGENTA;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'减'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'买'),COLORYELLOW;{DRAWTEXT(清仓 ,HIGH*1.02,'清'),COLORGREEN;}DRAWTEXT(强势狙击,LOW*0.98,'启'),COLORYELLOW;
MID:=MA(C,15)*1.005;VART1:=POW((C-MID),2);VART2:=MA(VART1,15);VART3:=SQRT(VART2);UPPER1:=MID+2*VART3;LOWER1:=MID-2*VART3;揽月线:=REF(UPPER1,1),COLOR00FFFF;DRAWICON(CLOSE>揽月线,LOW*0.98,36);A3:=MA(C,3);A5:=MA(C,5);主力资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;进入启动区:= 65,COLOR00FF00;快速拉伸区:=80,COLORWHITE,LINETHICK1;DRAWTEXT(CROSS(主力资金,快速拉伸区),L*0.99,'爆') ,COLORYELLOW;筹码集中区:= 50,COLOR00FF00;抄底阶段:=20,COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(主力资金,抄底阶段),L*0.99,'抄') ,COLORWHITE;DRAWTEXT(CROSS(快速拉伸区,主力资金),H*1.01,'减') ,COLORGREEN;STICKLINE(CROSS(主力资金,快速拉伸区),C,O,2,0),COLORYELLOW;主力线:=SMA(100*(C-LLV(LOW,45))/(HHV(H,45)-LLV(LOW,45)),5,2);DRAWTEXT(CROSS(主力线,42),L*0.97,'建'),COLORRED;