通达信指标公式大全
通达信公式大全
通达信公式大全抄底高手是指在股市低迷时能够准确地抓住低点进行投资的投资者。
其使用的三个指标分别是M 15 35 30、N 12 32 27和D 18 50 42.其中,VAR1表示收盘价与48日均线的差值除以48日均线再加上M的值是否小于0;VAR2表示收盘价与70日均线的差值除以70日均线再加上N的值是否小于0;VAR3表示VAR1和VAR2是否同时成立;VAR4表示VAR3成立的次数是否为1,且日期大于,且收盘价大于开盘价或者小于开盘价且开盘价与昨日收盘价的差值除以昨日收盘价是否大于D的值,且昨日开盘价大于昨日收盘价或者小于昨日收盘价。
OPEN,4)>REF(CLOSE,4) ORREF(OPEN,4)<REF(CLOSE,4)) ANDREF(OPEN,5)>REF(CLOSE,5) ORREF(OPEN,5)<REF(CLOSE,5));VAR6:=DMA(EMA(CLOSE,8),SUM(VOL,9)/CAPITAL);VAR7:=(CLOSE-VAR6)/VAR6*100;VAR8:=REF(VAR7,1)+DREF(VAR7,1) ANDREF(VAR7,1)0 ANDHIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND(REF(HIGH,3)>REF(LOW,3)) AND(REF(HIGH,4)>REF(LOW,4)) AND(REF(HIGH,5)>REF(LOW,5));VAR9:=VAR5 OR VAR8;短线黑马是指近期表现突出的个股,通常是指股价涨幅较大且有较高的交易量。
该策略使用了多种指标来筛选短线黑马。
首先,通过比较前几日的开盘价和收盘价,筛选出涨跌幅较大的个股。
然后,使用DMA指标和MA指标来计算股价的趋势和交易量的变化,进一步筛选出表现优异的个股。
通达信指标大全
通达信指标公式大全通达信指标公式大全分类:指标公式源码VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);VARB:=REF(LOW,1);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);快枪:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,COLORRED;{绪强-权证五分线}(主未来)PER=0 50 1,PE=0 50 3,N=0 50 9,M1=0 50 3,M2=0 50 4,M3=0 50 4VAR2:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR3:=((REF(VAR2,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR4:=((REF(VAR3,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR5:=((REF(VAR4,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR6:=((REF(VAR5,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR7:=((REF(VAR6,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR8:=((REF(VAR7,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR9:=((REF(VAR8,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VARA:=((REF(VAR9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARB:=((REF(VARA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); STICKLINE((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) OR VARD),CLOSE,REF(CLOSE,1),3,0),COLORRED;VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR10:=((REF(VARF,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); STICKLINE((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),CLOSE,REF(CLOSE,1),3,1),COLORFF9900; VAR1A:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORYELLOW;AA:=(REF((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) OR VARD),1) AND VARE);STICKLINE(AA,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORGREEN;YC_AA:=(O+C)/2;趋势线:DMA(YC_AA,VOL/SUM(VOL,8)),NODRAW,;强势线:DMA(YC_AA,VOL/SUM(VOL,36)),NODRAW,COLORYELLOW;强牛线:DMA(YC_AA,VOL/SUM(VOL,70)),NODRAW,COLORRED;IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORRED;ZIG(3,PER),COLOR33FFFF;QQ:=ZIG(3,PE),COLOR00FFFF;Z1:=ZIG(1,M3);Z2:=ZIG(4,M3);K1:=BACKSET(QQ>REF(QQ,1),2);强QQ:IF(K1,QQ,DRAWNULL),COLORRED,LINETHICK2;K2:=BACKSET(QQ<REF(QQ,1),2);弱QQ:IF(K2,QQ,DRAWNULL),COLOR33FF33,LINETHICK2;{DRAWTEXT(CROSS(Z1,REF(Z1,1)),L,'●'),COLORYELLOW;DRAWTEXT(CROSS(REF(Z1,1),Z1),L,'●'),COLOR BLUE;}DRAWTEXT(CROSS(Z2,REF(Z2,1)),L,'●买'),COLORRED;DRAWTEXT(CROSS(REF(Z2,1),Z2),L,'●卖'),COLORGREEN;MB: MA(CLOSE,20);上极限: MB+2*STD(CLOSE,20);下极限: MB-2*STD(CLOSE,20);{MACD公式}副\权证DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);MACD:=EMA(DIF,9),COLOR33CCFF;DEF:2*(DIF-MACD),COLORFFFF00,LINETHICK0;STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,3,1),COLOR6058FF;STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,3,0),COLOR6058FF;STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,3,1),COLORFF99FF;STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,3,0),COLORFFFF00;IF(DIF<1000,0,DRAWNULL),COLORBROWN;多头趋势:=IF(DIF>=0 AND MACD>=0 OR (DIF<0 AND MACD>=0),1,0);空头趋势:=DIF<0 AND MACD<0 OR (DIF>=0 AND MACD<0);缩头:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);缩脚:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0);支撑:=IF(CROSS(MA(C,20),C) OR CROSS(MA(C,60),C),1,0);做多:=IF(CROSS(MACD,DIF) AND DIF>0 AND MACD>0,1,0);放空:=IF(CROSS(DIF,MACD) AND DIF<0 AND MACD<0,1,0);K1:=BACKSET(DIF>REF(DIF,1),2);强DIF:IF(K1,DIF,DRAWNULL),COLORRED,LINETHICK2;K2:=BACKSET(DIF<REF(DIF,1),2);弱DIF:IF(K2,DIF,DRAWNULL),COLOR33FF33,LINETHICK2;IF(MACD<1000,MACD,DRAWNULL),COLOR33CCFF;DRAWICON(FILTER(缩头,3) AND 缩头,DEF+0.01,4);DRAWICON(FILTER(缩脚,3) AND 缩脚,DEF,9);DRAWICON(FILTER(阻力,16) AND DEF>=0,DEF+0.01,2);DRAWICON(FILTER(支撑,16) AND DEF<0,DEF,2);{理财}副\权证VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21) ;VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21); VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21); VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);VARB:=REF(LOW,1);VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);VARE:=LLV(LOW,30);VARF:=HHV(VARD,30);VAR10:=IF(MA(CLOSE,58),1,0);VAR11:=EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;VAR12:=IF(VAR11>40,10,VAR11);STICKLINE(VAR12>8,0,VAR12,3,1),COLORMAGENTA;VAR13:=HHV(HIGH,30);VAR14:=LLV(LOW,30);D: EMA((CLOSE-VAR14)/(VAR13-VAR14)*100,5), , COLORRED LINETHICK2;K: EMA((CLOSE-VAR14)/(VAR13-VAR14)*100,20), , LINETHICK2 COLORFF9933;K1:=BACKSET(K>REF(K,1),2);强K:IF(K1,K,DRAWNULL),COLOR33FFFF,LINETHICK2;底: 5, ,POINTDOT LINETHICK2 COLORMAGENTA;DRAWTEXT(CROSS(底,D),D+10,'机会'),COLORWHITE;强弱分界: 50 ,POINTDOT ;DRAWTEXT(FILTER(D>90,13),D-10,'风险'), COLORWHITE;DRAWTEXT(CROSS(K,D) AND D>55,D-10,'死叉'), COLORWHITE ;DRAWTEXT(CROSS(D,K) AND D<34,D+10,'金叉'), COLORYELLOW;0, POINTDOT LINETHICK2 COLORMAGENTA;【雪飞短线】(副){p1:3,16,8}{p2:2,12,5}{p3:2,10,4}Var1:=(CLOSE-LLV(LOW,P1))/(HHV(HIGH,P1)-LLV(LOW,P1))*100;Var2:=EMA(Var1,P2);Var3:=EMA(Var2,4);Var4:=HHV(Var3,0);Var5:=LLV(Var3,0);Var6:=EMA(Var2,P1);Var7:=3*Var2-2*Var6;Var8:=EMA(Var7,5);Var9:=EMA(Var7,10);VarA:=LLV(LOW,50);VarB:=HHV(HIGH,50);VarC:=EMA(CLOSE,3);VarD:=(VarC-VarA)/(VarB-VarA)*100;VarE:=EMA(VarD,3);VarF:=EMA(VarE,16);TX: Var4+4,coloryellow;MK: Var3,colorf00ff0;Var10:=EMA(Var6,P3);MJ: EMA(Var8,2),color00ff00;RR: EMA(VarF,20), CIRCLEDOT,colorwhite;DX: Var5-3,colorf0f000;双向成交量预测EV:=VOL,;实际V:EV/10000,LINETHICK0;VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;预测:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;{IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR3),COLORGREEN;} 预测V:STICKLINE(IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,4,1),COLORGREEN;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;主动买万:主动买盘/10000,COLORRED,NODRAW;主动卖盘:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;主动卖万:主动卖盘/10000,COLORGREEN,NODRAW;换手率%:VOL/CAPITAL*100,POINTDOT,COLORYELLOW;流通盘(亿):CAPITAL/1000000,POINTDOT;流通市值(亿):(CAPITAL/100*C)/10000,POINTDOT,COLOR33CCFF;成交额(千万):AMOUNT/10000000,POINTDOT;STICKLINE(主动买盘>0,0,VOL,2,1),COLORWHITE;STICKLINE(主动买盘>0,0,主动买盘,2,0),COLORRED;STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLORGREEN;VOL 地量探针_成交量:VOL,VOLSTICK;__MVOL5:MA(_成交量,5),COLORWHITE;__MVOL10:MA(_成交量,10),COLORYELLOW;__地量探针:IF(VOL/CAPITAL>0.01,0,EXP(ABS(LOG(VOL/CAPITAL*100)))*3*V),COLORGREEN;预测量:STICKLINE(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,VOL,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),2,1),COLORWHITE; 低靡量:STICKLINE(HSL>=1 AND HSL<2,VOL/2,0,3,0),COLORWHITE;温和量:STICKLINE(HSL>=2 AND HSL<3,VOL/2,0,3,0),COLORYELLOW;活跃量:STICKLINE(HSL>=3 AND HSL<5,VOL/2,0,3,0),COLORMAGENTA;带量: STICKLINE(HSL>=5 AND HSL<8,VOL/2,0,3,0),COLORDB5D24;放量: STICKLINE(HSL>=8 AND HSL<15,VOL/2,0,3,0),COLOR0000D3;巨量: STICKLINE(HSL>=15 AND HSL<=25,VOL/2,0,3,0),COLOR004CFE;_低靡:2,NODRAW,COLORWHITE;_温和:3,COLORYELLOW;_活跃:5,COLORMAGENTA;_带_量:8,COLORDB5D24;_放_量:15,COLOR0000D3;{_巨_量:0,COLOR004CFE;}{V1:=REF(MA(VOL,5),1);}{预测量:=IF(DYNAINFO(7)=CLOSE,DYNAINFO(17)*V1,VOL);}{STICKLINE(预测量,0,预测量,3.5,1),COLORWHITE;};机构之星(幅)AA:=LLV(LOW,36);BB:=HHV(HIGH,30);DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);股海神偷:DD,Color00FFFF,LINETHICK1;股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);跟踪:10,Color0000FF;神偷出现:IF((COUNT((股海神偷>REF(股海神偷,1)),1)=1) AND (REF(股海神偷,1)<REF(REF(股海神偷,1),1)) AND (股海神偷<跟踪),50,0),Color00FF00;QQ:=CROSS(神偷出现,跟踪);{目标出现:IF(CROSS(股海,90) AND (股海神偷<40),40,0),ColorFFFF00;}目标出现:IF(CROSS(股海,5) AND (QQ<10),40,0),ColorFFFF00;Var1:=EMA(EMA(CLOSE,13),13);控盘:= (Var1-REF(Var1,1))/REF(Var1,1)*5000;a10:=CROSS(控盘,0);开始控盘:if(a10,8,0),colorFFFFFF;STICKLINE(控盘<0,控盘,0,4,0),colorwhite;无庄控盘:0,colorwhite;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,4,1),colorred;有庄控盘: 0,colorred;Var2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,4,0),color00ff00;主力出货: 0,color00ff00;STICKLINE(Var2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,4,0),colorff00ff;高度控盘: 0,colorff00ff;风险:80,ColorFF00FF;狼狗:87.5,Color00FF00;神针买卖 (主图)支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 ANDCLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,4); DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)AND VARF>REF(VARF,1)ANDC>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,5);日周月KDJ金死叉(副)DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9),COLORFF00FF,LINETHICK2;CD:=2*(DIFF-DEA),COLORSTICK,LINETHICK2;STICKLINE(((CD<REF(CD,1)) AND (CD > 0)),0,20,2,0),LINETHICK2,COLOR00FF66; STICKLINE(((CD>REF(CD,1)) AND (CD < 0)),0,20,2,0),LINETHICK2,COLORFF00FF;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),COLORWHITE;D:SMA(K,3,1),COLORYELLOW;J:3*K-2*D,COLORRED;周K:="KDJ.K#WEEK"(9,3,3);周D:="KDJ.D#WEEK"(9,3,3);月K:="KDJ.K#MONTH"(9,3,3);月D:="KDJ.D#MONTH"(9,3,3);DRAWICON(K<20 AND CROSS(K,D),D,1);周金:DRAWTEXT(CROSS(REF(周K,1),REF(周D,1)) ,D,'▲'),COLORRED;周叉:DRAWTEXT(CROSS(REF(周D,1),REF(周K,1)) ,D*1.5,'▼'),COLORGREEN;月金:DRAWTEXT(CROSS(REF(月K,1),REF(月D,1)) ,D,'▲'),CO LORWHITE;月叉:DRAWTEXT(CROSS(REF(月D,1),REF(月K,1)) ,D*1.5,'▼'),COLORYELLOW;起涨:IF(DIFF<0,30,0),COLORYELLOW,LINETHICK2;大涨:IF(DIFF<0,0,DIFF),COLORWHITE,LINETHICK2;下跌:IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;总趋:IF(DIFF>DEA,DEA,DEA)*60,COLORFF00FF,LINETHICK2;AA:=CROSS(DIFF,DEA);DRAWICON(AA,-0.02,5);股经宝典(副)未来D:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,20);J:= EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,5) ;BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR5:=HHV(HIGH,34);VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,16);VAR7:=SMA((SMA(VAR2,3,1)+3),3,1),LINETHICK3;VAR8:=EMA(VAR6,7);VAR9:=SMA(VAR1,3,1);VAR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR13:=(VAR10+VAR11+VAR12)/3;VAR14:=IF(VAR13<=-20,10,0);VAR15:=HHV(VAR14,10);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;{150;0;}兜底:IF(CROSS(MA(C,3),MA(C,7)) AND VAR15,40,0),LINETHICK3,COLORRED ;铁底:IF(CROSS(VAR7,VAR8),0,0),LINETHICK7,COLOR00FF00;底线:55;顶线:80,POINTDOT,LINETHICK2;K:EMA(D,3),COLOR00FF00,LINETHICK2;M:EMA(J,7),COLORWHITE,LINETHICK2;J,COLORRED,LINETHICK4;IF(MN<-4 ,20,0),COLOR00FF00,LINETHICK3;底背离: IF((VAR26<10),110,150), , COLORYELLOW,LINETHICK3;顶背离: IF((VAR26>90),40,0), COLORFFFFFF,LINETHICK3;DRAWICON(CROSS(ZIG(J,M) ,REF(ZIG(J ,M),1)) ,LOW*0.98,1);金牌RSI(副){参数:N1,1,100,5;N2,1,100,10;}LC := REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,Color9900FF,LINETHICK1; RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,Coloryellow,LINETHICK1; 强弱分界线:50,Colorffffcc;0,Colorffff33;20,Color00ff00;80,Color00ff00;100,Colorffff33;v1:=llv(low,10);v2:=hhv(h,25);价位线:=ema((c-v1)/(v2-v1)*4,4);DRAWTEXT(CROSS(价位线,0.3),12,'买'),Colorffffcc;DRAWTEXT(CROSS(3.5,价位线),98,'卖'),Colorffffcc;Var2q:=REF(LOW,1);Var3q:=SMA(ABS(LOW-Var2q),3,1)/SMA(MAX(LOW-Var2q,0),3,1)*100;Var4q:=EMA(IF(CLOSE*1.3,Var3q*10,Var3q/10),3);Var6q:=HHV(Var4q,30);Var7q:=IF(MA(CLOSE,58),1,0);Var8q:=EMA(IF(LOW<=Var5q,(Var4q+Var6q*2)/2,0),3)/618*Var7q;Var9q:=IF(Var8q>100,100,Var8q);AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);资金监控(副)R:=V/1000000;R1:=IF(C>REF(C,1),R,IF(C<REF(C,1),(-1)*R,0));R3:=SUM(R1,8);A:R3*OPEN,POINTDOT,COLORFFCC00;B:R3*C,POINTDOT,COLORFFCC00;AB:STICKLINE(B>=REF(B,1),REF(B,1),B,5,0),COLORRED;BA:STICKLINE(B<REF(B,1),REF(B,1),B,5,0),COLORGREEN;快线:MA(B,5),COLORYELLOW,LINETHICK2;慢线:MA(B,30);资金监控: 2*(EMA(CLOSE,10) - EMA(CLOSE,24)-EMA(EMA(CLOSE,10) - EMA(CLOSE,24),9)), COLORSTICK;猎枪(副)猎枪:sma(SMA((C-LLV(L,80))/(HHV(H,80)-LLV(L,80))*100,10,1),10,1),linethick2;收兵:SMA(猎枪,10,1),linethick2,color808000;W1:=SMA((HHV(H,80)-C)/(HHV(H,80)-LLV(L,80))*100,10,1);瞄准:SMA(W1,10,1),POINTDOT,COLOR00DD00,LINETHICK2;天空:stickline(c,85,85,5,1);大地:stickline(c,9,9,5,1);w2:=(CROSS(收兵,猎枪) and 收兵>20);w3:=(CROSS(猎枪,收兵) and 收兵<20);DRAWTEXT(CROSS(收兵,猎枪) and 收兵>20,58,'杀'),COLORFF00FF;DRAWTEXT(CROSS(收兵,猎枪) and 收兵<50 and 收兵>20,猎枪,' 留意!'),COLORFF00FF;if(w2,60,85),color00dd00;if(w3,40,9),colorff00ff;DRAWTEXT(CROSS(猎枪,收兵) and 收兵<20,48,'猎'),COLORff00ff;DRAWTEXT(CROSS(瞄准,80),82,'●'),COLORRED;DRAWTEXT(CROSS(瞄准,80),76,'瞄准'),COLORRED;DRAWTEXT(CROSS(瞄准,85),84,'●'),COLORWHITE;DRAWTEXT(CROSS(瞄准,85),78,'猎物出现'),COLORWHITE;var1:=4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1); var2:=8;底部出击: IF(CROSS(var1,var2),50,9),COLORRED;a1:=cross(猎枪,85) and 猎枪>=85;再来一枪:if(a1,60,85),coloryellow;回升浪(副){P1:1,250,5;P2:1,250,20;P3:1,250,30;N:1,10,3;}MA5:=MA(C,5),COLORWHITE;MA1:=MA(C,P1),COLORFF00FF;MA2:=MA(C,P2),COLOR00FF00;MA3:=MA(C,P3),COLORYELLOW;ZH12:=ABS(MA1-MA2)/MA2*100<=N;ZH13:=ABS(MA1-MA3)/MA3*100<=N;QSXS1:=MA1>=REF(MA1,1);QSXS2:=MA2>=REF(MA2,1);QSXS3:=MA3>=REF(MA3,1);GJHS:=C>MA1 AND QSXS1 AND NOT(REF(QSXS1,1));买1:(GJHS AND ZH12 AND QSXS2)*38,COLOR00FF00,linethick2;买2:(GJHS AND ZH13 AND QSXS3)*25,COLORRED,linethick2;优选:(买1 AND COUNT((MA1>MA2),5)=5) OR (买2 ANDCOUNT((MA1>MA3),5)=5),COLORWHITE,POINTDOT;DRAWICON(优选>0,0.30,1);回升优选:优选*18,COLORyellow,linethick2;{以下设置逃顶指标}varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,varC),0.3,2);{2K}RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;短K:SMA(RSV,3,1),COLORWHITE;短D:SMA(短K,3,1),COLORYELLOW;STICKLINE(短K>短D,短K,短D,6,0),COLORYELLOW;STICKLINE(短K<=短D,短K,短D,6,0),COLORGREEN;VAR1:=HHV(HIGH,13)-LLV(LOW,13);VAR2:=HHV(HIGH,13)-CLOSE;VAR3:=CLOSE-LLV(LOW,13);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;趋势线:EMA(VAR13,5), COLORYELLOW;出击:if(cross(VAR12,VAR13) and VAR12>VAR13 and VAR12<18,20,0) ,STICK,COLORRED;卖出:if(cross(VAR13,VAR12) and VAR12<VAR13 and VAR12>60,VAR13,88),pointdot,COLORBLUE;短趋势:EMA(SMA(MAX(C-REF(C,1),0),3,1)/SMA(ABS(C-REF(C,1)),3,1)*100,5),colorFF00FF,linethick1; 优选(主)公式原码如下:MA3:MA(C,3);MA10:=MA(C,10);MA20:=MA(C,20);MA30:MA(C,30);MA60:MA(C,60),COLORRED,LINETHICK2;BM1:=(C+O)/2;BM2:=COUNT(MA30>REF(MA30,1),5)=5 OR COUNT(MA60>REF(MA60,1),5)=5;BM3:=COUNT(MA3/MA30>REF(MA3/MA30,1),5)=5;BM4:=(BM1*2-REF(BM1,3));BM5:=C/MA(C,5);BM6:=REF(BM1/MA(BM1,5),1);BM7:=COUNT(BM6>BM5,3)=3;BM8:=C>O;买:=(CROSS(BM4,MA3) OR CROSS(BM4,MA30)) AND BM2 AND BM8 AND C>MA(C,60);优选:=买AND (BM7 OR REF(BM7,1) OR REF(BM7,2)),COLORYELLOW,LINETHICK2;{以下设置主图显示}STICKLINE(买,O,C,4,1),COLOR00FF00,LINETHICK2;DRAWTEXT(买,LLV(L,2)*0.98,'▲'),COLORYELLOW;DRAWTEXT(优选,LLV(L,2)*0.96, '优选'),COLORRED;DRAWICON(优选,LLV(L,2)*0.96, 1);STICKLINE(优选,O,C,4,1),COLORYELLOW,LINETHICK2;{以下设置逃顶}BM9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;BM10:=3*SMA(BM9,3,1)-2*(SMA(SMA(BM9,3,1),3,1));DRAWICON(CROSS(90,BM10),H*1.03,2);{短线参考[副、未来]}LL:=REF(CLOSE,1);MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;趋势1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV( LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW;可能回落1:IF(CROSS(87,趋势1),50,100),COLORFF00FF;可能回落2: IF(CROSS(80,MM),50,100),COLORYELLOW ;VAR1:=IF(MA(CLOSE,88),1,0);趋势:WINNER(AMOUNT/VOL/100)*100*VAR1,COLORFFCC66,LINETHICK2 ;VAR11:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;VAR22:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR33:=SMA(VAR22,13,8);多方能量: SMA(VAR33,13,8),COLORRED,LINETHICK2;空方能量: SMA(VAR11,21,8),COLOR00DD00,LINETHICK2;风险区:90,POINTDOT,COLORFFCCCC;0,POINTDOT,COLORFF00FF;VARW17:=3;VARW18:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SM A(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));介入:IF(CROSS(VARW18,VARW17),52,0),COLORWHITE,STICK,LINETHICK2;红军过雪山(副未来)STICKLINE(18,90,0,5,0),COLORE0D4B8;STICKLINE(18,50,38,5,0),COLORF0CCA8;STICKLINE(78,38,26,5,0),COLORE8D4A8;STICKLINE(18,22,12,5,0),COLORF0D4B0;STICKLINE(18,50,62,5,0),COLORE8C490;雪山:EMA(WINNER(C)*100,7),COLORWHITE;L1:=EMA(雪山,21);草地:ABS((COST(50)-CLOSE)/CLOSE*100),COLOR00FF00,LINETHICK1;STICKLINE(雪山>草地,草地,雪山,5,0),COLORWHITE;STICKLINE(雪山<REF(雪山,1),草地,雪山,5,0),COLORDEDDDD;STICKLINE(草地>雪山,草地,雪山,5,0),COLOR00BB00;STICKLINE(雪山>L1,L1,雪山,5,0),COLORRED;{鳄鱼线}主趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;七:MA(C,7),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORRED,LINETHICK2; 平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLOR00FFFF,LINETHICK3; 跌:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORGREEN,LINETHICK2; C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;乖离线:=((C-REF(COST(90),1))/20+250)*1.20;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWTEXT(突破盘整,L-0.10,1);VAR1:=(H+L)/2;上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT;下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;MACD超前99庄(副未来)Z99:EMA(WINNER(C)*70,99)*0.12,COLORRED,LINETHICK2;SQX:=(Z99-MA(Z99,13))*100;DIFF:EMA(MA(SQX,13),1),COLOR00FFFF;DEA:EMA(DIFF,13),COLORFF33FF;MACD: (DIFF-DEA)*2,COLORSTICK;低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),COLORYELLOW,POINTDOT; STICKLINE(低位金叉,0,15,8,0),COLORYELLOW;DRAWICON(低位金叉,0.3,1);JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;STICKLINE(二次金叉,30,15,8,0),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:IF(REF(Z99,A1+1)>Z99 AND DIFF>REF(DIFF,A1+1) ANDCROSS(DIFF,DEA),0.1,0),COLORRED,POINTDOT;STICKLINE(底背离,45,30,8,0),COLORRED; DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:REF(Z99,A2+1)<Z99 AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORGREEN; DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN;A3:=CROSS(DIFF,DEA) AND DEA<0;零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT;STICKLINE(零下二次金叉,45,60,8,0),COLORWHITE;HHVV(副未来)前放量上涨:=V=HHV(VOL,30) AND (C/REF(C,1)-1)>=0.03 AND WINNER(C)*100>95 ;前期条件:=BARSLAST(前放量上涨);地量止跌:=C>=REF(O,2) AND REF(V,2)=LLV(V,25);重整旗鼓:STICKLINE(地量止跌AND 前期条件,0,10,8,0),COLORRED;双保险操盘(副)主力:(((CLOSE - MA(LLV(LOW,40),40)) / MA(LLV(LOW,40),40)) * 100),colorF0F000;AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000;BB:=MA(AA,10);CC:=(((CLOSE - LLV(LOW,26)) / (HHV(HIGH,26) - LLV(LOW,26))) * 100);DD:=EMA(SMA(20*(DMA(C,2.5*MAX(IF(v/capital=0,V/700000000,v/capital),1.1*(MAX(H,REF(C,1))/MIN(L,REF(C,1))-1)))/REF(DMA(C,2.5*MAX(IF(v/capital=0,V/800000000,v/capital),1.1*(MAX(H,REF(C,1))/MIN(L,REF(C,1))-1))),1)-1),2,1),2);趋势:SMA(BB,3,1)/10,linethick1,colorred;判势:SMA(CC,32,1)-20,color00ff00,linethick1;理想论坛:DRAWTEXT(CROSS(趋势,判势),趋势+10,'买↑入'),LINETHICK2,colorwhite;建仓:DRAWTEXT(CROSS(判势,趋势),判势,'建↑仓'),LINETHICK2,coloryellow;加码:DRAWTEXT(CROSS(主力,判势),判势-10,'加▲码'),LINETHICK2,colorred;持仓区:if(DD>=0.005,100,107),coloryellow;空仓区:if(DD<=-0.005,100,107),colorff0000;变盘:if(BETWEEN(DD,0.005,-0.005),100,108),COLORff00ff ,linethick2;***专用(副) 挺不错的VAR1:=REF(CLOSE,2);***专用:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66;VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;极品逃亡:IF(***专用< REF(***专用,1) AND ***专用>79,***专用,0);DRAWTEXT(极品逃亡,70 ,'★<-极品逃亡'),COLORYELLOW,LINETHICK1;DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)ANDC<REF(O,1)AND C/O>=1.01,L-L*0.02,'★<--极品绝底初现'),LINETHICK1;DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),L,'★<--极品绝底'),COLORBLUE, LINETHICK1; Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);特殊***专用:3*Q3-2*Q4,COLORWHITE,LINETHICK2;Q8:=HHVBARS(HIGH, 50);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;跨越:=EMA(Q3, 3),COLORRED;DRAWTEXT(CROSS(特殊***专用, 8) AND Q10<-13,20,'*大底来'),COLORYELLOW,LINETHICK5; DRAWTEXT(CROSS(特殊***专用, 93) AND Q10<-13,40,'*大底'),LINETHICK5;DRAWTEXT(CROSS(跨越, 特殊***专用) AND REF(特殊***专用,1)>80,REF(特殊***专用,3), '*顶'),COLORRED,LINETHICK5;VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:SMA(VAR12,3,1),COLORGREEN,LINETHICK2;。
通达信技术指标公式大全
通达信技术指标公式大全本文档汇总了通达信软件中常用的技术指标公式,供参考使用。
1. 移动平均线指标公式- 简称:MA简称:MA- 公式:MA(CLOSE, N)公式:MA(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的移动平均线。
说明:计算收盘价CLOSE在N周期内的移动平均线。
2. 相对强弱指标公式- 简称:RSI简称:RSI- 公式:RSI(CLOSE, N)公式:RSI(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的相对强弱指标。
说明:计算收盘价CLOSE在N周期内的相对强弱指标。
3. 随机指标公式- 简称:KDJ简称:KDJ- 公式:KDJ(N, M, RSV)公式:KDJ(N, M, RSV)- 说明:计算随机指标K、D、J。
说明:计算随机指标K、D、J。
4. 线性回归指标公式- 简称:LINEARREG简称:LINEARREG- 公式:LINEARREG(CLOSE, N)公式:LINEARREG(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的线性回归。
说明:计算收盘价CLOSE在N周期内的线性回归。
5. 移动平均收敛/发散指标公式- 简称:MACD简称:MACD- 公式:MACD(EMA12, EMA26, MACD9)公式:MACD(EMA12, EMA26, MACD9)- 说明:计算移动平均线的收敛/发散指标。
说明:计算移动平均线的收敛/发散指标。
6. 布林带指标公式- 简称:BOLL简称:BOLL- 公式:BOLL(CLOSE, N)公式:BOLL(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的布林带指标。
说明:计算收盘价CLOSE在N周期内的布林带指标。
7. 高低价指标公式- 简称:H_L简称:H_L- 公式:H_L(HIGH, LOW)公式:H_L(HIGH, LOW)- 说明:根据最高价HIGH和最低价LOW计算高低价指标。
通达信选股公式大全--简单就是美
125个简单实用的选股指标公式1,30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2,今天的量是5天平均的2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3,两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4,股价是25天以来新低.xg:c<ref(llv(c,25),1);5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7,要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8,个股分时图上都有一条黄线,叫做均价线a/capital*100;9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)<ref(o,1) and c>o;10,股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12,行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13,kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14,股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15,选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16,一阳上穿10,20,30日线,量能是前一天3倍。
通达信画线指标公式
通达信画线指标公式
通达信是一种常用的股票交易软件,它支持自定义指标和画线指标。
以下是一些通达信中常用的画线指标公式示例:
移动平均线(MA): MA(CLOSE, N):计算收盘价CLOSE的N日简单移动平均线。
指数移动平均线(EMA): EMA(CLOSE, N):计算收盘价CLOSE 的N日指数移动平均线。
BOLL指标: BOLL(CLOSE, N, P):计算收盘价CLOSE的N日布林带指标,P为标准差倍数。
MACD指标: DIF: EMA(CLOSE, SHORT) - EMA(CLOSE, LONG) DEA: EMA(DIF, MID) MACD: (DIF - DEA) * 2
KDJ指标: RSV: (CLOSE - LLV(LOW, N)) / (HHV(HIGH, N) - LLV(LOW, N)) * 100 K: SMA(RSV, M1, 1) D: SMA(K, M2, 1) J: 3 * K - 2 * D
这些公式只是通达信中常用的画线指标公式示例,实际上通达信支持更多的指标公式和定制化功能。
如果你有特定的指标需求,可以根据自己的需求进行进一步的研究和开发。
需要注意的是,通达信软件使用一种特定的编程语言来编写自定义指标公式,称为通达信公式语言(TDX Formula)。
如果你想要进一步学习和开发通达信指标,可以查阅相关的编程手册和文档。
通达信底顶指标公式
通达信底顶指标公式以下是通达信底顶指标的公式和解释:1.底部形态指标公式(1)最近一个底部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(2)价格打破最近一个底部形态的高点DHLBREAK=LLV(LOW,20)<DHL(3)最近一个底部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(4)价格低于最近一个底部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(5)价格向上的力量:DIRDIR=SMA(CLOSE,7,1)-SMA(CLOSE,70,1)(6)价格向上的力量大于0DIRUP=DIR>0(7)底部形态确认CONDITION1=NOTDIRUPANDDHLBREAKANDSMA(VOLUME,20)>2*MA(VOLUME, 100)2.顶部形态指标公式(1)最近一个顶部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(2)价格低于最近一个顶部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(3)最近一个顶部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(4)价格打破最近一个顶部形态的高点DHLBREAK=LLV(LOW,20)<DHL(5)价格向下的力量:DIRDIR=SMA(CLOSE,70,1)-SMA(CLOSE,7,1)(6)价格向下的力量小于0DIRDOWN=DIR<0(7)顶部形态确认CONDITION2=NOTDIRDOWNANDDLLBREAKANDSMA(VOLUME,20)>2*MA(VOLUM E,100)通过计算这些指标,我们可以完成对底部和顶部形态的判断。
具体解释如下:底部形态指标的解释:条件1(底部形态确认)需要满足以下三个条件:(a)价格向上的力量(DIR)小于0,即价格下跌;(b)价格打破最近一个底部形态的高点(DHLBREAK);(c)成交量的移动平均值(VOLUME)的20日均线(MA)大于成交量的移动平均值的100日均线的两倍。
通达信指标公式源码大全
通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。
LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。
Color=FF00FF。
LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。
LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。
LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/VAR3;VAR5:=(Close-LLV(Low,528))/(HHV(High,528)-LLV(Low,528))*100;VAR6:=(Close-LLV(Close,530))/(HHV(Close,530)-LLV(Close,530))*100;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。
(完整word版)20个极品通达信指标公式源码
公式1(未来函数)代码N1:=5;N2:=10;N3:=20;N4:=30;P:=2;M:=20;N:=250;M1:=55;W:=21;P3:=500;N9:=90; HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;IF(C〉HRY33 AND HRY33 〉=REF(HRY33 ,1),HRY33 ,DRAWNULL),LINETHICK2,COLORRED;MA1:EMA(CLOSE,N1);MA2:EMA(CLOSE,N2);MA3:EMA(CLOSE,N3),COLOR00FFFF;MA4:EMA(CLOSE,N4),LINETHICK2;TJ1:=CROSS(MA1,MA2) AND C〉O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(MA1,MA4)AND C〉O AND C〉REF(C,1) AND C/REF(C,1)〉=1.018OR CROSS(MA2,MA3)AND C〉O AND C>REF(C,1) AND C/REF(C,1)>=1。
018OR CROSS(MA1,MA3)AND C〉O AND C〉REF(C,1)AND C/REF(C,1)>=1。
018;TJ2:=(MAX(MA1,MAX(MA2,MA3))—MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1 AND TJ2;RSV:=(CLOSE—LLV(LOW,9))/(HHV(HIGH,9)—LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12)- EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF—DEA);做多:=IF(K〉D AND MACD>0 AND V>1,2,0),COLORRED;做空:=IF(K<D AND MACD〈0 AND V〉1,—2,0),COLOR00FF00;强洗:=IF(MACD〉0 AND K〈D AND V〉1,1,0),COLOR0099FF;弱升:=IF(MACD<0 AND K〉D AND V>1,-1,0),COLORFFFF00; STICKLINE(做多AND C>=O,C,O,3,1),COLORRED;STICKLINE(做多AND C<O,C,O,3,0),COLOR990099; STICKLINE(做多AND C〈O,C,O,1,0),COLORCC00CC; STICKLINE(做多AND C〈O,C,O,0.3,0),COLORFF00FF; STICKLINE(做多AND C>=O,C,O,3,1),COLOR0000FF;{STICKLINE(做多AND C〉=O,C,O,1.5,0),COLOR0000DD;STICKLINE(做多AND C>=O,C,O,0。
通达信 指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2 .382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKL INE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR000 0F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),CO LOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0) ,COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+ T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3 )+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF; VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。
通达信经典量柱主图指标公式
通达信经典量柱主图指标公式黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3;{STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;};。
技术指标公式(通达信)
技术指标公式(通达信)1.技术指标公式-股王源码V AR2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;V AR3:=SMA(V AR2,5,1);V AR4:=REF(V AR3,1);V AR5:=SMA(V AR3,10,1);V AR6:=(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52))*100;V AR7:=MA(V AR6,5);V AR8:=LLV(LOW,5)=LLV(LOW,120);V AR9:=REF(CLOSE,1);V ARA:=SMA(MAX(CLOSE-V AR9,0),6,1)/SMA(ABS(CLOSE-V AR9),6,1)*100;V ARB:=SMA(MAX(CLOSE-V AR9,0),12,1)/SMA(ABS(CLOSE-V AR9),12,1)*100; V ARC:=(CLOSE+LOW+HIGH)/3;V ARD:=SUM((V ARC-REF(LOW,1)-(HIGH-V ARC))*VOL/100000/(HIGH-LOW),0) ;V ARE:=EMA(V ARD,1);V ARF:=V ARE;V AR10:=MA(V ARE,12);V AR11:=MA(V ARE,26);V AR12:=(V ARF-V AR10)*60;V AR13:=IF(V AR12>0.05,V AR12,0);V AR14:=IF(V AR13>50,50,V AR13);V AR15:=CAPITAL/EMA(VOL,5)/30*1.1;V AR16:=V AR15;V AR17:=EMA(COST(85),10);V AR18:=EMA(COST(1),10);V AR19:=EMA(CLOSE,10);V AR1A:=(V AR19-V AR18)*100/(V AR17-V AR18);V AR1B:=REF(V AR1A,1);V AR1C:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;V AR1D:=(INDEXC-REF(INDEXC,12))/REF(INDEXC,12)*100;V AR1E:=EMA(V AR1C-V AR1D,4);V AR1F:=EMA(V AR1D-V AR1C,4);STICKLINE(V AR1E>0,0,-5,6,0);STICKLINE(V AR8,-5,-10,6,0);V AR20:=MA(V AR1C,4);V AR21:=MA(V AR1C,8);V AR22:=REF(V AR20,1);V AR23:=MA((V AR1A-REF(V AR1A,12))/REF(V AR1A,12)*100,4);V AR24:=IF(V AR23<=-20,-20,V AR23);V AR25:=IF(V AR24>=20,20,V AR24);V AR26:=V AR25;V AR27:=REF(V AR26,1);V AR28:=REF(V AR26,5);V AR29:=IF(CROSS(V AR14,V AR16),1,0);V AR2A:=IF(V AR14<V AR16,-10,10);V AR2B:=IF(V AR1E>V AR1F,5,-5);V AR2C:=IF(V AR3>V AR5,5,-5);V AR2D:=IF(V AR20>V AR21,6,-6);V AR2E:=IF(V AR20>0 AND V AR20>V AR21,8,-8);V AR2F:=IF(V AR26<0,-10,10);V AR30:=IF(V AR20>V AR22,10,-10);V AR31:=IF(V AR26>V AR27,5,0);V AR32:=IF(V AR26<V AR27,-5,0);V AR33:=IF(CLOSE>OPEN,3,-3);走势: (V AR2A+V AR2B+V AR2C+V AR2D+V AR2E+V AR2F+V AR30+V AR31+V AR32+V A R33);V AR34:=REF(CLOSE,2)*0.865;V AR35:=REF(CLOSE,13)*0.772;V AR36:=MIN(V AR34,V AR35);V AR37:=100*VOL/CAPITAL;V AR38:=MA(CLOSE,13);V AR39:=CLOSE>0.899*REF(CLOSE,1) AND CLOSE<0.901*REF(CLOSE,1);V AR3A:=EMA(WINNER(CLOSE)*100,5);V AR3B:=EMA(WINNER(CLOSE)*100,30)-CAPITAL/EMA(VOL,30)/5;V AR3C:=CAPITAL/EMA(VOL,5)/5;V AR3D:=V AR3A;V AR3E:=IF(V AR3D>0,0-V AR3D,0-V AR3D);V AR3F:=REF(V AR3D,1);主力趋势: (V AR3B+50);V AR40:=V AR3B+50;V AR41:=REF(V AR40,1);V AR42:=MA(CLOSE,5);V AR43:=MA(CLOSE,10);V AR44:=MA(CLOSE,30);V AR45:=MA(CLOSE,12);V AR46:=MA(CLOSE,26);V AR47:=REF(V AR45,1);V AR48:=REF(V AR46,1);V AR49:=(V AR45-V AR46)/V AR45*100;V AR4A:=ABS(V AR45-V AR47)/V AR45*100;V AR4B:=REF(V AR46,1);V AR4C:=REF(V AR4A,1);V AR4D:=REF(V AR42,1);V AR4F:=COUNT(CLOSE>REF(CLOSE,1),5)/5*100;V AR50:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;V AR51:=SMA(V AR50,5,1);V AR52:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;V AR53:=SMA(V AR52,2,1);V AR54:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30)*8;V AR55:=REF(V AR51,1);V AR56:=REF(V AR53,1);V AR57:=REF(V AR54,1);V AR58:=MA(V AR53,5);V AR59:=MA(V AR53,12);V AR5A:=MA(V AR53,26);V AR5B:=REF(V AR4F,1);V AR5C:=(V AR54-V AR57)/V AR54*100;V AR5D:=SMA(V AR50,5,1);V AR5E:=REF(V AR5D,1);V AR5F:=SMA(V AR52,2,1);V AR60:=REF(V AR5F,1);V AR61:=IF(CLOSE>OPEN,1,0);V AR62:=IF(V AR42>V AR4D,1,0);V AR63:=IF(V AR43>V AR4E,1,0);V AR64:=IF(V AR4A>V AR4C,1,0);V AR65:=IF(V AR53>V AR56,5,0);V AR66:=IF(V AR55>V AR51,5,0);V AR67:=IF(V AR54>V AR57,2,0);V AR68:=IF(V AR49>2.25,10,0);V AR69:=IF(V AR53>60,6,0);V AR6A:=IF(V AR53>80,8,0);V AR6B:=IF(V AR53>V AR51,10,0);V AR6C:=IF(V AR53>V AR51,V AR59-V AR5A,0);V AR6D:=IF(V AR53>V AR51 AND V AR51<20,5,0);V AR6E:=IF(CLOSE>V AR45 AND V AR45>V AR46,5,0);V AR6F:=IF(V AR45>V AR46,5,0);V AR70:=IF(V AR46>V AR4B,5,0);V AR71:=IF(V AR51<18,V AR58-V AR51,0);V AR72:=IF(V AR51>V AR53 AND V AR51>50,8,0);V AR73:=(V AR61+V AR62+V AR63+V AR64+V AR65+V AR66+V AR67+V AR68+V AR 69+V AR6A+V AR6B+V AR6C+V AR6D+V AR6E+V AR6F+V AR70+V AR71-V AR72); V AR74:=REF(V AR73,1);多头: MA(V AR73,5);V AR75:=MA(V AR73,8);V AR76:=MA(V AR73,12);V AR77:=MA(V AR73,26);V AR79:=REF(V AR76,1);V AR7A:=REF(V AR76,2);V AR7B:=IF(CROSS(V AR3,V AR5) AND V AR4<35 AND V AR7>50 AND V AR1A<25 AND V AR1A>V AR1B AND V AR41<V AR40 AND (V ARA>V ARB AND V ARB>V AR3 OR V ARA>V AR3 AND V AR8),100,0);V AR7C:=IF((CLOSE-V AR36)/CLOSE<0.1 AND V AR41<V AR40 AND SUM(V AR37,5)/5<1.8,100,0);V AR7D:=IF(CROSS(V AR3,V AR5) AND V AR8 AND V AR3<25 AND V AR1A<20 OR CROSS(V AR3,V AR5) AND V AR8 AND V AR3<40 AND V AR1A<10,100,0);信号: IF(V AR7B=100 OR V AR7C=100 OR V AR7D=100,20,-50);STICKLINE(走势<0,0,走势,1,0);STICKLINE(走势>0,走势,0,1,0);2 技术指标公式-大盘神针V AR1:=INDEXA/100000000;V AR2:=INDEXADV;V AR3:=INDEXDEC;V AR4:=V AR2/(V AR2+V AR3);V AR5:=V AR3/(V AR2+V AR3);V AR6:=EMA(V AR4,3);V AR7:=EMA(VAR5,3);V AR8:=EMA(V AR6,5);V AR9:=EMA(V AR7,5);进场资金: EMA(V AR8,10)/150 ,CIRCLEDOT,COLORRED;资金: EMA(V AR9,10)/150, CIRCLEDOT,COLORGREEN;大盘神针:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE, 3)),7,1)*100<20ANDSMA(MAX(CLOSE-REF(CLOSE,3),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,3)),1 3,1)*100<25AND MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5)>-19 AND (LOW>LLV(LOW,5) AND (CLOSE-HHV(CLOSE,8))/HHV(CLOSE,8)<-0.05 ANDMA(AMOUNT,125)/MA(VOL,125)/(MA(AMOUNT,5)/MA(VOL,5))>1.12))*0.75; 买:=BARSLAST(大盘神针)<15 AND CROSS(MACD.DIF,MACD.DEA);底:=BARSLAST(LLV(L,4)=LLV(L,120))<5 ;均线买:=CROSS(MA(C,5),MA(C,20));介入:=(底AND 均线买AND (进场资金>资金) OR 买);STICKLINE(介入,资金-0.5,资金+0.1,2,0),COLORRED;DRAWTEXT(介入,资金-0.15,'介入'),COLORWHITE;STICKLINE(大盘神针,资金-0.2,资金+0.6,2,0),COLORFFFF00;DRAWTEXT(大盘神针,资金+0.5,'神针'),COLORFFFF00;安全区:STICKLINE(底,资金-0.1,资金,3,0),COLORRED;3 技术指标公式-KDJ短线short(2,100,12)long(2,100,26)mid(2,100,9)V AR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;V AR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;V AR6:=(V AR3+V AR4+V AR5)/3;V AR7:=EMA(V AR6,5);V AR8:=IF(V AR6<=-20,10,0);V AR9:=HHV(V AR8,10);STICKLINE(V AR8=10,20,10,5,0),COLOR6666FF;V ARA:=IF(V AR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(V AR7,5)*2,COLORWHITE;D:EMA(K,5), COLORYELLOW;J:K*3-D*2, COLORFF00FF;MACD: EMA(EMA(V AR3,5),5)*3, COLORSTICK;V ARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10; DRAWTEXT(V AR8=10 AND FILTER(V AR8=10,5),-10{15},'近底部'),LINETHICK1,COLORYELLOW;STICKLINE(V AR8=10 AND FILTER(V AR8=10,5),-1.6{20},-10,5,0),COLORYELLOW;DRAWTEXT(V ARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE((V ARA=20),0,10,5,0),COLORWHITE;V ARC:=(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));V ARD:=(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));STICKLINE((V ARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((V ARC=1),(-14),'买'),COLORFF00FF;STICKLINE((V ARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((V ARD=1),18,'卖'),COLORYELLOW;V ARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1 00,20,1),15,1);V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100 ,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100, 20,1),15,1);V AR11:=V ARF<REF(V AR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;4 技术指标公式-短炒公式V AR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/ MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;持币区域:V AR1,COLORFEDCBA;持股区域:IF(V AR1>0,V AR1,0),COLORRED;短顶:STICKLINE(V AR1>9 AND FILTER(V AR1<REF(V AR1,1),5),V AR1+2,0,3,0),COLORGREEN;大顶:STICKLINE(V AR1>20 AND FILTER(V AR1<REF(V AR1,1),5),V AR1+5,0,7,0),COLOR00FF00;V AR2:=HHV(V AR1>20,10);危险: STICKLINE(V AR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),V A R1+10,0,4,0);注意止损:STICKLINE(V AR2 AND FILTER(V AR1< REF(V AR1,1),6)AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),V AR1+6,0,3,0);短底:STICKLINE(V AR1<-9 AND V AR1> REF(V AR1,1),V AR1-2,0,3,0),COLORRED;大底:STICKLINE(V AR1<-20 AND FILTER(V AR1> REF(V AR1,1),5),V AR1-5,0,7,0),COLORYELLOW;买入准备:V AR1<-9 AND V AR1>REF(V AR1,1),COLORWHITE;DRAWTEXT(V AR1>9 AND FILTER(V AR1<REF(V AR1,1),5),V AR1+2,'短顶'),COLOR00FF00;DRAWTEXT(V AR1>20 AND FILTER(V AR1<REF(V AR1,1),5),V AR1+5,'大顶'),COLORFFFF00;DRAWTEXT(V AR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),V A R1+10,'危险'),COLOR00FFFF;DRAWTEXT(V AR2 AND FILTER(V AR1< REF(V AR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),V AR1+6,'注意止损'),COLORFF00FF; DRAWTEXT(FILTER(V AR1<-9 AND V AR1>REF(V AR1,1),18),V AR1-2,'短底'),,COLOR0000FF;DRAWTEXT(V AR1<-20 AND FILTER(V AR1> REF(V AR1,1),5),V AR1-5,'大底'),; DRAWTEXT(FILTER(V AR1<-9 AND V AR1>REF(V AR1,1),18),1,'买入准备');5 技术公式—macdDIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4; DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4; DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;。
通达信主图显示财务指标公式
通达信主图显示财务指标公式总股本:=STRCAT(STRCAT(’总股本:',CON2STR(TOTALCAPITAL/1000000,3)),’亿股’);流通盘:=STRCAT(STRCAT(’流通盘:',CON2STR(CAPITAL/1000000,3)),'亿股');每股收益:=STRCAT(STRCAT(’每股收益:’,CON2STR(FINANCE(29)/FINANCE(1),2)),’元');每股未分配:=STRCAT(STRCAT(’每股未分配:’,CON2STR(FINANCE(32),2)),’元’);每股公积金:=STRCAT(STRCAT('每股公积金:’,CON2STR(FINANCE(18),2)),’元');每股净资产:=STRCAT(STRCAT(’每股净资产:’,CON2STR(FINANCE(34),2)),'元');总市值:=STRCAT(STRCAT(’总市值:',CON2STR(FINANCE(1)*C/100000000,3)),’亿元');市值:=STRCAT(STRCAT(’流通值:’,CON2STR((CAPITAL/1000000)*C,3)),’亿元’);SHI:INTPART(DATE+19000000),NODRAW;上市日期:=STRCAT(' 上市日:’,CON2STR(SHI,0));收入同比增长:=STRCAT(STRCAT('收入同比增长:',CON2STR(FINANCE(44),2)),'%’);市盈率:=STRCAT('市盈率:’,CON2STR(DYNAINFO(39),2));主营毛利润率:=STRCAT(STRCAT(’主营毛利润率:’,CON2STR((FINANCE(20)—FINANCE(21))/FINANCE(20)*100,2)),’%');主营净利润率:=STRCAT(STRCAT(’主营净利润率:’,CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%’);主营利润率:=STRCAT(’主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2));净利同比增长:=STRCAT(STRCAT('净利同比增长:',CON2STR(FINANCE(43),2)),'%’);{DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA;DRAWNUMBER_FIX(ISLASTBAR,0。
通达信公式教程大全(公式+指标+实例)
通达信公式教程大全(公式+指标+实例)本文介绍了通达信中常用的公式和指标,并给出了相应的实例说明。
希望能帮助读者更好地使用通达信软件。
一、公式1. 移动平均线 (Moving Average, MA)移动平均线是分析股票价格走势的常用工具之一,用于平滑价格曲线,使趋势更加明显。
通达信中的移动平均线公式为:MA(n) = (C + C1 + C2 + ... + C(n-1) + C(n)) / n其中,MA(n) 表示第 n 日的移动平均线值,C 表示当日的收盘价。
2. 相对强弱指数 (Relative Strength Index, RSI)相对强弱指数是用来测量股票价格走势强度的指标,其数值介于0和100之间。
通达信中的相对强弱指数公式为:RSI(n) = 100 - [100 / (1 + RS)]RS = GainAverage(n) / LossAverage(n)其中,RSI(n) 表示第n 日的相对强弱指数,RS表示相对强度,GainAverage(n) 表示涨幅平均值,LossAverage(n) 表示跌幅平均值。
3. 布林带指标 (Bollinger Bands, BOLL)布林带指标用于判断股票价格的波动情况,由上、中、下三条线组成。
通达信中的布林带指标公式为:UP(n) = MA(n) + 2 * Std(n)DN(n) = MA(n) - 2 * Std(n)其中,UP(n) 表示上轨线,DN(n) 表示下轨线,Std(n) 表示标准差。
二、指标1. 成交量 (Volume)成交量指标用于衡量股票交易的活跃度。
通达信中可以通过画柱状图的方式显示成交量。
2. 相对强弱指数 (Relative Strength Index, RSI)相对强弱指数在公式部分已经进行了介绍,这里重点说明其在通达信中的显示形式。
通达信以0和100作为区间,通过画线的方式显示相对强弱指数。
3. 动量指标 (Momentum)动量指标用来测量股票价格的变动速度,可以判断价格的超买超卖情况。
通达信系统指标公式
通达信系统指标公式并非闲人编辑整理2016年4月目录目录 (2)第一章技术指标公式 (1)第一节大势型 (1)第二节超买超卖型 (3)第三节趋势型 (9)第四节能量型 (14)第五节成交量型 (16)第六节均线型 (19)第七节图表型 (22)第八节路径型 (23)第九节停损型 (25)第十节策略型 (25)第十一节神系 (28)第十二节龙系 (30)第十三节鬼系 (32)第十四节其他系 (32)第十五节特色型 (37)第二章条件选股公式 (44)第一节指标条件选股 (44)第二节基本面选股 (49)第三节即时盘中选股 (50)第四节走势特征选股 (51)第五节形态特征选股 (57)第三章专家系统公式 (62)第四章五彩K线公式 (66)通达信系统指标公式第一章技术指标公式第一节大势型ABI 绝对广量指标ABI:100*ABS(ADVANCE-DECLINE)/(ADVANCE+DECLINE);MAABI:EMA(ABI,M);ADL 腾落指标ADL:SUM(ADVANCE-DECLINE,0);MAADL:MA(ADL,M);ADR 涨跌比率ADR:SUM(ADVANCE,N)/SUM(DECLINE,N);MAADR:MA(ADR,M);ARMS 阿姆氏指标ARMS:EMA(ADVANCE/DECLINE,N);MAARMS:MA(ARMS,M);BTI 广量冲力指标BTI:EMA(100*ADVANCE/(ADVANCE+DECLINE),N); MABTI:MA(BTI,M);MCL 麦克连指标DIF:=ADVANCE-DECLINE;EMA1:=EMA(DIF,N1);EMA2:=EMA(DIF,N2);MCL:EMA1-EMA2;MAMCL1:EMA1;MAMCL2:EMA2;MSI 麦氏综合指标(加密)OBOS 超买超卖指标OBOS:EMA(ADVANCE-DECLINE,N);MAOBOS:MA(OBOS,M);STIX 指数平滑广量TBR:100*ADVANCE/(ADVANCE+DECLINE);MATBR:EMA(TBR,M);第二节超买超卖型CCI 商品路径指标TYP:=(HIGH+LOW+CLOSE)/3;CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));KDJ 随机指标KDJRSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;MFI 资金流量指标TYP := (HIGH + LOW + CLOSE)/3;V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),N); MFI:100-(100/(1+V1));MTM 动量线MTM:CLOSE-REF(CLOSE,N);MTMMA:MA(MTM,M);OSC 变动速率线OSC:100*(CLOSE-MA(CLOSE,N));MAOSC:EXPMEMA(OSC,M);RSI 相对强弱指标LC:=REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; RSI3:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;MARSI 相对强弱平均线DIF:=CLOSE-REF(CLOSE,1);VU:=IF(DIF>=0,DIF,0);VD:=IF(DIF<0,-DIF,0);MAU1:=MEMA(VU,M1);MAD1:=MEMA(VD,M1);MAU2:=MEMA(VU,M2);MAD2:=MEMA(VD,M2);RSI10:MA(100*MAU1/(MAU1+MAD1),M1);RSI6:MA(100*MAU2/(MAU2+MAD2),M2);KD 随机指标KDRSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);SKDJ 慢速随机指标LOWV:=LLV(LOW,N);HIGHV:=HHV(HIGH,N);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);K:EMA(RSV,M);D:MA(K,M);UDL 引力线UDL:(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4; MAUDL:MA(UDL,M);WR 威廉指标WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)); WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));LWR 慢速威廉指标RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100; LWR1:SMA(RSV,M1,1);LWR2:SMA(LWR1,M2,1);BIAS-QL 乖离率-传统版BIAS :(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;BIASMA :MA(BIAS,M);BIAS 乖离率BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;BIAS2 :(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;BIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;BIAS36 三六乖离BIAS36:MA(CLOSE,3)-MA(CLOSE,6);BIAS612:MA(CLOSE,6)-MA(CLOSE,12);MABIAS:MA(BIAS36,M);ACCER 幅度涨速ACCER:SLOPE(CLOSE,N)/CLOSE;CYD 承接因子CYDS:WINNER(CLOSE)/(VOL/CAPITAL);CYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);CYF 市场能量CYF:100-100/(1+EMA(HSL,N));FSL 分水岭SWL:(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;SWS:DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))); ADTM 动态买卖气指标DTM:=IF(OPEN<=REF(OPEN,1),0,MAX((HIGH-OPEN),(OPEN-REF(OPEN,1)))); DBM:=IF(OPEN>=REF(OPEN,1),0,MAX((OPEN-LOW),(OPEN-REF(OPEN,1))));STM:=SUM(DTM,N);SBM:=SUM(DBM,N);ADTM:IF(STM>SBM,(STM-SBM)/STM,IF(STM=SBM,0,(STM-SBM)/SBM)); MAADTM:MA(ADTM,M);ATR 真实波幅MTR:MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:MA(MTR,N);DKX多空线MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;MADKX:MA(DKX,M);TAPI 加权指数成交值(需下载日线)TAPI:AMOUNT/INDEXC;MATAIP:MA(TAPI,M);第三节趋势型ASI 振动升降指标(加密)CHO 佳庆指标MID:=SUM(VOL*(2*CLOSE-HIGH-LOW)/(HIGH+LOW),0);CHO:MA(MID,N1)-MA(MID,N2);MACHO:MA(CHO,M);DMA 平均差DIF:MA(CLOSE,N1)-MA(CLOSE,N2);DIFMA:MA(DIF,M);DMI 趋向指标MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N); HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);PDI: DMP*100/MTR;MDI: DMM*100/MTR;ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);ADXR:EXPMEMA(ADX,MM);DPO 区间震荡线DPO:CLOSE-REF(MA(CLOSE,N),N/2+1);MADPO:MA(DPO,M);EMV 简易波动指标VOLUME:=MA(VOL,N)/VOL;MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW); EMV:MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,N),N); MAEMV:MA(EMV,M);MACD 平滑异同平均DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF,MID);MACD:(DIF-DEA)*2,COLORSTICK;VMACD 量平滑异同平均DIF:EMA(VOL,SHORT)-EMA(VOL,LONG);DEA:EMA(DIF,MID);MACD:DIF-DEA,COLORSTICK;QACD 快速异同平均DIF:EMA(CLOSE,N1)-EMA(CLOSE,N2);MACD:EMA(DIF,M);DDIF:DIF-MACD;TRIX 三重指数平均线MTR:=EMA(EMA(EMA(CLOSE,N),N),N);TRIX:(MTR-REF(MTR,1))/REF(MTR,1)*100;MATRIX:MA(TRIX,M) ;UOS 终极指标TH:=MAX(HIGH,REF(CLOSE,1));TL:=MIN(LOW,REF(CLOSE,1));ACC1:=SUM(CLOSE-TL,N1)/SUM(TH-TL,N1);ACC2:=SUM(CLOSE-TL,N2)/SUM(TH-TL,N2);ACC3:=SUM(CLOSE-TL,N3)/SUM(TH-TL,N3);UOS:(ACC1*N2*N3+ACC2*N1*N3+ACC3*N1*N2)*100/(N1*N2+N1*N3+N2*N3); MAUOS:EXPMEMA(UOS,M);VPT 量价曲线VPT:SUM(VOL*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),N); MAVPT:MA(VPT,M);WVAD 威廉变异离散量WVAD:SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,N)/10000; MAWVAD:MA(WVAD,M);PAV 筹码引力(加密)DBQR 对比强弱ZS:(INDEXC-REF(INDEXC,N))/REF(INDEXC,N);GG:(CLOSE-REF(CLOSE,N))/REF(CLOSE,N);MADBQR1:MA(GG,M1);MADBQR2:MA(GG,M2);MADBQR3:MA(GG,M3);JS 加速线JS:100*(CLOSE-REF(CLOSE,N))/(N*REF(CLOSE,N)); MAJS1:MA(JS,M1);MAJS2:MA(JS,M2);MAJS3:MA(JS,M3);PAVE 强筹码引力(加密)CYE 市场趋势MAL:=MA(CLOSE,5);MAS:=MA(MA(CLOSE,20),5);CYEL:(MAL-REF(MAL,1))/REF(MAL,1)*100;CYES:(MAS-REF(MAS,1))/REF(MAS,1)*100;QR 强弱个股: (CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100;大盘: (INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100;强弱值:EMA(个股-大盘,2),COLORSTICK;GDX 鬼道线AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N); JAX:DMA(CLOSE,AA);压力线:(1+M/100)*JAX;支撑线:(1-M/100)*JAX;JLHB 绝路航标VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80; B:SMA(VAR1,N,1);VAR2:SMA(B,M,1);绝路航标:IF(CROSS(B,VAR2) AND B<40,50,0);第四节能量型BRAR 情绪指标BR:SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100; AR:SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100;CR 带状能量线MID:=REF(HIGH+LOW,1)/2;CR:SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100;MA1:REF(MA(CR,M1),M1/2.5+1);MA2:REF(MA(CR,M2),M2/2.5+1);MA3:REF(MA(CR,M3),M3/2.5+1);MA4:REF(MA(CR,M4),M4/2.5+1);MASS 梅斯线MASS:SUM(MA(HIGH-LOW,N1)/MA(MA(HIGH-LOW,N1),N1),N2);MAMASS:MA(MASS,M);PSY 心理线PSY:COUNT(CLOSE>REF(CLOSE,1),N)/N*100;PSYMA:MA(PSY,M);VR 成交量变异率TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N);VR:100*(TH*2+TQ)/(TL*2+TQ);MAVR:MA(VR,M);WAD 威廉多空力度线MIDA:=CLOSE-MIN(REF(CLOSE,1),LOW);MIDB:=IF(CLOSE<REF(CLOSE,1),CLOSE-MAX(REF(CLOSE,1),HIGH),0); WAD:SUM(IF(CLOSE>REF(CLOSE,1),MIDA,MIDB),0);MAWAD:MA(WAD,M);PCNT 幅度比PCNT:(CLOSE-REF(CLOSE,1))/CLOSE*100;MAPCNT:EXPMEMA(PCNT,M);CYR 市场强弱DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N); CYR:(DIVE/REF(DIVE,1)-1)*100; MACYR:MA(CYR,M);NVI 负成交量(加密)PVI 正成交量(加密)第五节成交量型AMO 成交金额AMO:AMOUNT,VOLSTICK;MAAMO1:MA(AMO,M1);MAAMO2:MA(AMO,M2);MAAMO3:MA(AMO,M3);OBV 累积能量线VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:MA(OBV,M);VOL 成交量VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);VOL-TDX 成交量(盘中虚拟)TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM, 1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);CCL 持仓量(适用于期货)持仓量:VOLINSTK;MACCL:MA(持仓量,M);SHORTVOL 抛空量(适用于港股)抛空量:HKSHORTVOL,VOLSTICK;MACCL:MA(抛空量,M);VRSI 相对强弱量LC:=REF(VOL,1);RSI1:SMA(MAX(VOL-LC,0),N1,1)/SMA(ABS(VOL-LC),N1,1)*100; RSI2:SMA(MAX(VOL-LC,0),N2,1)/SMA(ABS(VOL-LC),N2,1)*100; RSI3:SMA(MAX(VOL-LC,0),N3,1)/SMA(ABS(VOL-LC),N3,1)*100;HSL 换手线HSL:100*VOL/(FINANCE(7)/100);MAHSL:MA(HSL,N);HSCOL 换手柱HSCOL:100*VOL/(FINANCE(7)/100),VOLSTICK;MAHSL:MA(HSCOL,N);DBQRV 对比强弱量ZS:(INDEXV-REF(INDEXV,N))/REF(INDEXV,N);GG:(VOL-REF(VOL,N))/REF(VOL,N);DBLB 对比量比GG:=VOL/SUM(REF(VOL,1),N);ZS:=INDEXV/SUM(REF(INDEXV,1),N); DBLB:GG/ZS;MADBLB:MA(DBLB,M);第六节均线型MA 均线MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA2 均线MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);MA8:MA(CLOSE,M8);MA9:MA(CLOSE,M9);MA10:MA(CLOSE,M10);ACD 升降线LC:=REF(CLOSE,1);DIF:=CLOSE-IF(CLOSE>LC,MIN(LOW,LC),MAX(HIGH,LC));ACD:SUM(IF(CLOSE=LC,0,DIF),0);MAACD:EXPMEMA(ACD,M);BBI 多空指标BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;EXPMA 指数平均线EXP1:EMA(CLOSE,M1);EXP2:EMA(CLOSE,M2);EXPMA-S 指数平均线-副图EXP1:EMA(CLOSE,M1);EXP2:EMA(CLOSE,M2);HMA 高价平均线HMA1:MA(HIGH,M1);HMA2:MA(HIGH,M2);HMA3:MA(HIGH,M3);HMA4:MA(HIGH,M4);HMA5:MA(HIGH,M5);LMA 低价平均线LMA1:MA(LOW,M1);LMA2:MA(LOW,M2);LMA3:MA(LOW,M3);LMA4:MA(LOW,M4);LMA5:MA(LOW,M5);VMA 变异平均线VV:=(HIGH+OPEN+LOW+CLOSE)/4; VMA1:MA(VV,M1);VMA2:MA(VV,M2);VMA3:MA(VV,M3);VMA4:MA(VV,M4);VMA5:MA(VV,M5);AMA 成本价均线AMOV:=VOL*(OPEN+CLOSE)/2; AMV1:SUM(AMOV,M1)/SUM(VOL,M1); AMV2:SUM(AMOV,M2)/SUM(VOL,M2);AMV3:SUM(AMOV,M3)/SUM(VOL,M3);AMV4:SUM(AMOV,M4)/SUM(VOL,M4);MCST 市场成本BBIBOLL 多空布林线CV:=CLOSE;BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4; UPR:BBIBOLL+M*STD(BBIBOLL,N);DWN:BBIBOLL-M*STD(BBIBOLL,N);第七节图表型ZXNH 直线拟合(加密)ZX 重心线AV:0.01*AMOUNT/VOL;PUCU 逆时钟曲线PU:MA(CLOSE,N);CU:MA(VOL,N);第八节路径型BOLL-M 布林线-主图叠加BOLL 布林线BOLL:MA(CLOSE,N);UB:BOLL+2*STD(CLOSE,N);LB:BOLL-2*STD(CLOSE,N);PXB 瀑布线PBX1:(EMA(CLOSE,M1)+MA(CLOSE,M1*2)+MA(CLOSE,M1*4))/3; PBX2:(EMA(CLOSE,M2)+MA(CLOSE,M2*2)+MA(CLOSE,M2*4))/3; PBX3:(EMA(CLOSE,M3)+MA(CLOSE,M3*2)+MA(CLOSE,M3*4))/3; PBX4:(EMA(CLOSE,M4)+MA(CLOSE,M4*2)+MA(CLOSE,M4*4))/3; PBX5:(EMA(CLOSE,M5)+MA(CLOSE,M5*2)+MA(CLOSE,M5*4))/3; PBX6:(EMA(CLOSE,M6)+MA(CLOSE,M6*2)+MA(CLOSE,M6*4))/3;EXE 轨道线UPPER:(1+M1/100)*MA(CLOSE,N);LOWER:(1-M2/100)*MA(CLOSE,N);ENE:(UPPER+LOWER)/2;MIKE 麦克支撑压力HLC:=REF(MA((HIGH+LOW+CLOSE)/3,N),1);HV:=EMA(HHV(HIGH,N),3);LV:=EMA(LLV(LOW,N),3);STOR:EMA(2*HV-LV,3);MIDR:EMA(HLC+HV-LV,3);WEKR:EMA(HLC*2-LV,3);WEKS:EMA(HLC*2-HV,3);MIDS:EMA(HLC-HV+LV,3);STOS:EMA(2*LV-HV,3);SSRP 筹码峰(加密)XS 薛斯通道(加密)XS2 薛斯通道ⅡAA:=MA((2*CLOSE+HIGH+LOW)/4,5);通道1:AA*N/100;通道2:AA*(200-N)/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC);通道3:(1+M/100)*DD;通道4:(1-M/100)*DD;第九节停损型SAR 抛物线指标(加密)TDXWAVE 通达信趋势浪(加密)VTY 价格变异率(加密)第十节策略型MA策略 MA交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} {变量赋值}MA1:=MA(CLOSE,SHORT);MA2:=MA(CLOSE,LONG);{交易条件}平空开多:=CROSS(MA1,MA2);平多开空:=CROSS(MA2,MA1);{交易系统}BUYSHORT_BUY(平空开多,LOW);SELL_SELLSHORT(平多开空,HIGH);{交易信号过滤}AUTOFILTER;MACD策略 MACD交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,MID);MACD:=2*(DIFF-DEA);平空开多:=CROSS(MACD,0);平多开空:=CROSS(0,MACD);BUYSHORT_BUY(平空开多,LOW);SELL_SELLSHORT(平多开空,HIGH);AUTOFILTER;KDJ策略 KDJ交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M1,1);J:=3*K-2*D;平空开多:=CROSS(J,0);平多开空:=CROSS(100,J);BUYSHORT_BUY(平空开多,LOW);SELL_SELLSHORT(平多开空,HIGH);AUTOFILTER;肯特纳肯特纳通道交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} MA1:=REF(MA((HIGH+LOW+CLOSE)/3,AVGLENGTH),1);UPPERBAND:=MA1+REF(MA(TR,ATRLENGTH),1);LOWERBAND:=MA1-REF(MA(TR,ATRLENGTH),1);开多条件:=MA1>REF(MA1,1) AND HIGH>=UPPERBAND;平多条件:=LOW<=MA1;开空条件:=MA1<REF(MA1,1) AND LOW<=LOWERBAND;平空条件:=HIGH>=MA1;GL1:=NOT(开多条件=1 AND 平多条件=1);GL2:=NOT(开空条件=1 AND 平空条件=1);SELL(平多条件,HIGH);BUYSHORT(平空条件,LOW);BUY(开多条件 AND GL1,LOW);SELLSHORT(开空条件 AND GL2,HIGH);AUTOFILTER;唐奇安唐奇安通道交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用}周期高点:=REF(HHV(H,X1),1);周期低点:=REF(LLV(L,X2),1);平空开多:=HIGH>=周期高点;平多开空:=LOW<=周期低点;BUYSHORT_BUY(平空开多,LOW);SELL_SELLSHORT(平多开空,HIGH);AUTOFILTER;日内突破日内突破交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} {变量赋值}NBAR:=BARSLAST(DATE<>REF(DATE,1))+1;HHN:REF(HHV(H,N),1);LLN:REF(LLV(L,N),1);MID:(HHN+LLN)/2;T1:=TIME>900 AND TIME <1455;{根据品种的交易时间和选择的周期做相应调整}T2:=TIME>=1455;{根据品种的交易时间和选择的周期做相应调整}{交易条件}开多条件:=H>HHN AND (HHN-MID)/MID<M/1000 AND NBAR>=30 AND T1;开空条件:=L<LLN AND (MID-LLN)/MID<M/1000 AND NBAR>=30 AND T1;{交易系统}BUY(开多条件,LOW);SELLSHORT(开空条件,HIGH);SELL(T2,HIGH);BUYSHORT(T2,LOW);AUTOFILTER;HANS123 日内HANS交易策略{该模型为示范模型,仅用于说明算法语法,用户需根据自己交易经验修改后再实际应用} {变量赋值}N:=BARSLAST(DATE<>REF(DATE,1))+1;HHH:=VALUEWHEN(TIME<=900+NMIN1,HHV(H,N));LLL:=VALUEWHEN(TIME<=900+NMIN1,LLV(L,N));上轨:HHH+M*MINDIFF;下轨:LLL-M*MINDIFF;{交易条件}开多条件:=C>上轨;开空条件:=C<下轨;交易时间:=TIME>900+NMIN1 AND TIME<1450;平仓时间:=TIME>=1500-NMIN2;{交易系统}BUY(开多条件 AND 交易时间,LOW);SELLSHORT(开空条件 AND 交易时间,HIGH);SELL(平仓时间,HIGH);BUYSHORT(平仓时间,LOW);AUTOFILTER;第十一节神系SG-XDT 心电图(需下载日线)QR:CLOSE/INDEXC*1000;MQR1:MA(QR,5);MQR2:MA(QR,10);SG-NDB 脑电波HH:=IF(C/REF(C,1)>1.093 AND L>REF(H,1),2*C-REF(C,1)-H,2*C-H-L); V1:=BARSCOUNT(C);V2:=2*REF(C,V1)-REF(H,V1)-REF(L,V1);DK:SUM(HH,0)+V2;MDK5:MA(DK,P1);MDK10:MA(DK,P2);SG-SMX 生命线(需下载日线)H1:=HHV(HIGH,N);L1:=LLV(LOW,N);H2:=HHV(INDEXH,N);L2:=LLV(INDEXL,N);ZY:=CLOSE/INDEXC*2000;ZY1:EMA(ZY,3);ZY2:EMA(ZY,17);ZY3:EMA(ZY,34);SG-LB 量比(需下载日线)ZY2:=VOL/INDEXV*1000;量比:ZY2;MA5:MA(ZY2,5);MA10:MA(ZY2,10);SG-PF 强势股评分(需下载日线)ZY1:=CLOSE/INDEXC*1000;A1:=IF(ZY1>HHV(ZY1,3),10,0);A2:=IF(ZY1>HHV(ZY1,5),15,0);A3:=IF(ZY1>HHV(ZY1,10),20,0);A4:=IF(ZY1>HHV(ZY1,2),10,0);A5:=COUNT(ZY1>REF(ZY1,1) ,9)*5;强势股评分:A1+A2+A3+A4+A5;第十二节龙系RAD 威力雷达SM:=(OPEN+HIGH+CLOSE+LOW)/4;SMID:=MA(SM,D);IM:=(INDEXO+INDEXH+INDEXL+INDEXC)/4;IMID:=MA(IM,D);SI1:=(SMID-REF(SMID,1))/SMID;II:=(IMID-REF(IMID,1))/IMID;RADER1:SUM((SI1-II)*2,S)*1000;RADERMA:SMA(RADER1,M,1);LON 龙系长线LC := REF(CLOSE,1);VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100); RC := (CLOSE-LC)*VID;LONG := SUM(RC,0);DIFF := SMA(LONG,10,1);DEA := SMA(LONG,20,1);LON : DIFF-DEA;LONMA : MA(LON,10);LONT : LON, COLORSTICK;SHT 龙系短线VAR1:=MA((VOL-REF(VOL,1))/REF(VOL,1),5);VAR2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MY: VAR2*(1+VAR1);SHT: MY, COLORSTICK;SHTMA: MA(SHT,N);ZLJC 主力进出VAR1:=(CLOSE+LOW+HIGH)/3;VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0);VAR3:=EMA(VAR2,1);JCS:VAR3;JCM:MA(VAR3,12);JCL:MA(VAR3,26);ZLMM 主力买卖LC :=REF(CLOSE,1);RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;MMS:MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3); MMM:EMA(MMS,8);MML:MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5); SLZT 神龙在天白龙: MA(CLOSE,125);黄龙: 白龙+2*STD(CLOSE,170);紫龙: 白龙-2*STD(CLOSE,145);青龙: SAR(125,1,7), LINESTICK;VAR2:=HHV(HIGH,70);VAR3:=HHV(HIGH,20);红龙: VAR2*0.83;蓝龙: VAR3*0.91;ADVOL 龙系离散量A:=SUM(((CLOSE-LOW)-(HIGH-CLOSE))*VOL/10000/(HIGH-LOW),0);ADVOL:A;MA1:MA(A,30);MA2:MA(MA1,100);第十三节鬼系CYC 成本均线JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));CYC1:IF(JJJT,0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));CYC2:IF(JJJT,0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2));CYC3:IF(JJJT,0.01*EMA(AMOUNT,P3)/EMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3));CYC∞:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));CYS 市场盈亏CYC13:=0.01*EMA(AMOUNT,13)/EMA(VOL,13);CYS:(CLOSE-CYC13)/CYC13*100;CYQKL 博弈K线长度KL:100*(WINNER(CLOSE)-WINNER(OPEN));CYW 主力控盘VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(HIGH>LOW,(VAR1/VAR2+VAR3/VAR2)*VOL,0);CYW: SUM(VAR4,10)/10000, COLORSTICK;第十四节其他系XT 箱体【箱顶】:PEAK(CLOSE,N,1)*0.98;【箱底】:TROUGH(CLOSE,N,1)*1.02;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;JAX 济安线AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N);济安线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA;CC:=(CLOSE/济安线);MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);MAAA:=((MA1-济安线)/济安线)/3;TMP:=MA1-MAAA*MA1;J:IF(TMP<=济安线,济安线,DRAWNULL),LINETHICK3,COLORCYAN;A:TMP,LINETHICK2,COLORYELLOW;X:IF(TMP<=济安线,TMP,DRAWNULL),LINETHICK2,COLORGREEN;CJDX 超级短线VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);J: (VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;D: MA(J,3);K: MA(J,1);ZJTJ 庄家抬轿VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;A10:=CROSS(控盘,0);无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW; STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;ZBCD 准备抄底VAR1:=AMOUNT/VOL/7;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,N)/VAR1/7;VAR4:=DMA(VAR2,VOL/VAR3);抄底:(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;DRAWICON(CROSS(-7.0,抄底),抄底,1);BDZX 波段之星VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,21);VAR4:=STD(VAR2,21);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;AA:100;BB:0;CC:80;买进: IF(CROSS(AK,AD1),58,20);卖出: IF(CROSS(AD1,AK),58,20);LHXJ 猎狐先觉VAR1:=(CLOSE*2+HIGH+LOW)/4;VAR2:=EMA(VAR1,13)-EMA(VAR1,34);VAR3:=EMA(VAR2,5);主力弃盘: (-2)*(VAR2-VAR3)*3.8;主力控盘: 2*(VAR2-VAR3)*3.8;LYJH 猎鹰歼狐VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(VAR1,2,1);VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(VAR2,5,1)-8;LH: M;LH1: M1;JFZN 飓风智能中线VAR2:=SUM(IF(CLOSE>OPEN,VOL,0),N)/SUM(VOL,N)*100;VAR3:=100-SUM(IF(CLOSE>OPEN,VOL,0),N)/SUM(VOL,N)*100;多头力量: VAR2;空头力量: VAR3;多空平衡: 50;CYHT 财运亨通VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;高抛: 80;VAR2:=LLV(LOW,34);VAR3:=HHV(HIGH,34);SK: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);SD: EMA(SK,3);低吸: 20;强弱分界: 50;VAR4:=IF(CROSS(SK,SD),40,22);VAR5:=IF(CROSS(SD,SK),60,78);卖出: VAR5;买进: VAR4;SCR 筹码集中度A:=P1+(100-P1)/2;B:=(100-P1)/2;CC:=COST(A);DD:=COST(B);SCR:(CC-DD)/(CC+DD)*100/2;ASR 浮筹比例ASR:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100;BSQJ 买卖区间买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050; STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050; DRAWKLINE(H,O,L,C);指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);界:=MA(CLOSE,27);B买:IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;DRAWICON(CROSS(买线,卖线),L,1);DRAWICON(CROSS(卖线,买线),H,2);ZJL 折价率用于排序折价率:IF(FINANCE(34)>0.001,(FINANCE(34)-CLOSE)*100.0/FINANCE(34),0);CDP-STD 逆势操作CH:=REF(H,1);CL:=REF(L,1);CC:=REF(C,1);CDP:(CH+CL+CC)/3;AH:CDP+CH-CL;NH:CDP+CDP-CL;NL:CDP+CDP-CH;AL:CDP-CH+CL;TBP-STD 趋势平衡点APX:=(H+L+C)/3;TR0:=MAX(H-L,MAX(ABS(H-REF(C,1)),ABS(L-REF(C,1))));MF0:=C-REF(C,2);MF1:=REF(MF0,1);MF2:=REF(MF0,2);DIRECT1:=BARSLAST(MF0>MF1 AND MF0>MF2);DIRECT2:=BARSLAST(MF0<MF1 AND MF0<MF2);DIRECT0:=IF(DIRECT1<DIRECT2,100,-100);TBP:REF(REF(C,1)+IF(DIRECT0>50,MIN(MF0,MF1),MAX(MF0,MF1)),1);多头获利:REF(IF(DIRECT0>50,APX*2-L,DRAWNULL),1),NODRAW;多头停损:REF(IF(DIRECT0>50,APX-TR0,DRAWNULL),1),NODRAW;空头回补:REF(IF(DIRECT0<-50,APX*2-H,DRAWNULL),1),NODRAW;空头停损:REF(IF(DIRECT0<-50,APX+TR0,DRAWNULL),1),NODRAW;SC 三叉(加密)NDB 脑电波(加密)JYJL 交易参考均量单位时间总量: SUM(VOL,N)*100,NODRAW;单位时间内均量: 单位时间总量/(N/M);JSJG 参考结算价(适用于金融期货)FIRST:=IF(PERIOD=0,HOUR=14 AND MINUTE=16,DRAWNULL);TOTAL:=IF(PERIOD=0,60,0);MAMIN:=BARSLAST(FIRST)+1;COUNTFLAG:=(PERIOD=0 AND ( (HOUR=14 AND MINUTE>=16) OR HOUR=15 ));逼近结算价格:IF(COUNTFLAG,SUM(C*V,MAMIN)/SUM(V,MAMIN),DRAWNULL); LASTP:=C;LASTM:=MAMIN;LASTV:=MA(V,MAMIN);参考结算价格:IF(COUNTFLAG,(SUM(C*V,MAMIN)+LASTP*LASTV*(TOTAL-LASTM))/(LASTV*TOTAL),DRAWNULL);VOLATILITY 波动率SQRT(250)*STD(C/REF(C,1)-1,N);第十五节特色型CPBS 操盘BS点BU:=CROSS(HIGH,SAR(3,1,20));SEL:=CROSS(SAR(3,1,20),LOW);DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;CYX 撑压线Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0; A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR 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 ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);NOTEXT1:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED;NOTEXT2:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;WAVE 波浪分析ZIG(3,因子);SKSD 时空隧道STICKLINE(CURRBARSCOUNT<=N,H,L,-1,0),COLORBLACK;DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(CON2STR(N,0),'周期前K线选中主图后按ALT+T键调节回退的周期')),COLORLIMAGENTA;NOTEXT1:IF(CURRBARSCOUNT>=N+1,MA(C,M),DRAWNULL),COLORWHITE;NOTEXT2:IF(CURRBARSCOUNT<=N,MA(C,M),DRAWNULL),COLORBLACK;XLPL 吸拉派落(加密)GSTQ 股市天气(加密)AROON 阿隆指标上轨:(N-HHVBARS(H,N))/N*100,COLORRED;下轨:(N-LLVBARS(H,N))/N*100,COLORGREEN;CFJT 财富阶梯突破:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66;TJCJL 太极成交量总手:VOL,NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,'说明: 红色柱为吸货量,绿色为出货量,黄色为天量,蓝色为地量'),COLORGRAY;ZZ:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);V5:=MA(V,5);V12:=MA(V,12);V34:=MA(V,34);C6:=MA(C,6);STICKLINE(VOL,0,VOL,1,0),COLORLIGRAY;STICKLINE(CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,0,VOL,1,0),COLORRED; STICKLINE(CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,0,VOL,1,0),COLORGREEN;STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05,0,VOL,1,0),COLORYELLOW; STICKLINE(VOL<MA(VOL,5)/2 AND V<V12/2,0,VOL,1,0),COLORBLUE;STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C,C6) AND V>V5*1.2 AND V>V12*1.2 AND ZZ>2 AND C>H*0.975,VOL*0.5,0,1,0),COLORRED;STICKLINE(VOL>MA(VOL,5)*2 AND V>V34*3 AND C<REF(C,1)*1.05 AND CROSS(C6,C) AND V>V5*1.2 AND V>V12*1.2,VOL*0.5,0,1,0),COLORRED;ZJFZ 追击反转VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(VAR3*10,3);VAR5:=LLV(LOW,13);VAR6:=HHV(VAR4,13);VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;VAR8:=IF(VAR7>500,500,VAR7);STICKLINE(VAR8>-120,0,VAR8,3,1),COLORGRAY;STICKLINE(VAR8>1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLORRED;STICKLINE(VAR8>0.1 AND VAR8<1 AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2),0,VAR8,3,0),COLOR00FFFF;ZSDB 指数对比A:=REF(INDEXC,1);指数涨幅:IF(A>0,(INDEXC-A)*100/A,0),NODRAW;HYDB:DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);HYDB 行业对比A:=REF(HY_INDEXC,1);行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK),COLOR00C0C0;HYDB:DRAWKLINE(HY_INDEXH,HY_INDEXO,HY_INDEXL,HY_INDEXC);FKX 反K线DRAWKLINE(-LOW, -OPEN, -HIGH, -CLOSE);ZJLX 资金流向超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;资金流向:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW; STICKLINE(资金流向>0,0,资金流向,2,0),COLORRED; STICKLINE(资金流向<0,0,资金流向,2,0),COLORCYAN;近5日流向:SUM(资金流向,5),NODRAW;近10日流向:SUM(资金流向,10),NODRAW;ZJQDL 资金驱动力超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;净流入:(超B+大B+中B+小B)-(超S+大S+中S+小S);大宗净流入:(超B+大B)-(超S+大S);ZJBY 资金博弈超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净流入:(超B+大B+中B+小B)+(超S+大S+中S+小S),NODRAW;超大单:(超B)+(超S);大单:(大B)+(大S);中单:(中B)+(中S);小单:(小B)+(小S);DDX 大单动向大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;NOTEXT1:MA(大单动向,N)*3;STICKLINE(大单动向>0,0,大单动向,2,0),COLORRED;STICKLINE(大单动向<0,0,大单动向,2,0),COLORCYAN;DDY 涨跌动因涨跌动因:IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0),NODRAW; NOTEXT1:MA(涨跌动因,N)*3;STICKLINE(涨跌动因>0,0,涨跌动因,2,0),COLORRED;STICKLINE(涨跌动因<0,0,涨跌动因,2,0),COLORCYAN;DDZ 大单差分大单差分:IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0),NODRAW;DDZ1:=大单差分*7;DDZ2:=大单差分*3;DRAWBAND(DDZ1,RGB(255,32,32),DDZ2,RGB(0,224,224));DDF 大单频率大单频率:IF(TRADENUM>0,LARGETRDINNUM*100/TRADENUM,0),NODRAW;NOTEXT1:MA(大单频率,N)*2;STICKLINE(1,0,大单频率,2,0);SUPL 主力集散线主力集散线:SUM((LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),0),LINETHICK2; MA1:MA(主力集散线,N),COLORBROWN;SUPV 主力净买量主力净买量:(LARGEINTRDVOL-LARGEOUTTRDVOL);。
通达信公式大全
{MACD、KDJ、RSI底背离}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离};老鼠仓AA1:=AMOUNT/VOL;BB1:=L< AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100> 1.2;DD1:=L< MA(C,5)*0.921;EE1:=VOL< MA(V,5)*1.5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1;抄底高手{M 15 35 30N 12 32 27D 18 50 42}V AR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;V AR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;V AR3:=V AR1 AND V AR2;V AR4:=V AR1 AND V AR2 AND COUNT(V AR3,2)=1 AND DA TE>940101 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));V AR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);V AR6:=(CLOSE-V AR5)/V AR5*100;V AR7:=REF(VAR6,1)+D<0 AND V AR6>REF(V AR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND V AR6-REF(V AR6,1)>1.8 AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND (REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));V AR4 OR V AR7;短线黑马{K 100 140 100}V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,33)/33);V AR3:=(CLOSE-V AR1)/V AR1*100<-11/K*100;V AR4:=(V AR1-VAR2)/V AR2*100<-22.3/K*100;V AR5:=V AR3 AND V AR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));V AR6:=DMA(CLOSE,VOL/MA(VOL,3)/3);V AR7:=DMA(CLOSE,VOL/MA(VOL,33)/33);V AR8:=(CLOSE-V AR6)/V AR6*100<-5;V AR9:=(V AR6-VAR7)/V AR7*100<-18;V ARA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;V ARB:=SMA(V ARA,30,1);V ARC:=SMA(V ARB,50,1);V ARD:=V AR8 AND VAR9 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));V ARE:=V ARD AND COUNT(V ARD,2)=1 ;V AR5 OR V ARE;逆势操作V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);V AR3:=(CLOSE-V AR1)/V AR1*100<-8;V AR4:=(V AR1-V AR2)/V AR2*100<-21;V AR5:=V AR3 AND V AR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));V AR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;V AR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;V AR8:=SMA(V AR7,50,1);V AR9:=SMA(V AR8,40,1);V ARA:=V AR6 AND V AR9<23 AND COUNT(V AR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96 ;(V AR5 OR V ARA) ;成交量变异率VR买入WVR := SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),N)/SUM((IF(CLOSE<OPEN,V OL,0)+IF(CLOSE=OPEN,VOL/2,0)),26)*100;VOL变异率VR买入:CROSS(LL,WVR);{N 5 100 26 5}{LL 0 80 70 5};MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA120:=SMA(C,120,1);ZH520:=ABS(MA5-MA20)/MA20*100<=10;ZH530:=ABS(MA5-MA30)/MA30*100<=10;QSXS1:=MA5>REF(MA5,1);QSXS2:=MA20>REF(MA20,1);QSXS3:=MA30>REF(MA30,1);DTPL:=MA20>MA30 AND MA30>MA120;L YT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));L YKK:=GJHS AND (ZH520 OR ZH530) AND L YT;买:L YKK AND NOT(REF(LYKK,1));虚拟成交量>昨日VOL的2倍的股VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 昨日VOL:=REF(VOL,1)*2.0;ABS(VVOL)-昨日VOL>=0;{大于昨日的2.0倍};成交量是昨日的1.8倍VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 昨日VOL:=REF(VOL,1)*1.8;ABS(VVOL)-昨日VOL>=0;{大于昨日的1.8倍};PDI上穿三线选股公式源码:TR0:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),1 4);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=DMP*100/TR0,colorred;MDI:=DMM*100/TR0;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);ADXR:=(ADX+REF(ADX,6))/2;CROSS(PDI,MDI) AND CROSS(PDI,ADX) AND CROSS(PDI,ADXR)今日量比昨放大1倍后三日股价不跌回当日收盘价的选股公式选股公式:{成交量比前一天放大1倍,后3天,股价没有跌破放量那天的收盘价}var1:=v>ref(v,1)*2;ref(var1,3) and count(c>ref(c,3),3)=3;倍量柱加三天量减价升喇叭形的真黄金柱公式倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩AND 连阳;根据王子老师“凹口起柱”理论编写的凹口指标王子老师的平台起柱、过顶起柱、凹口起柱理论真是了不得,十分佩服,这里我冒昧的加一个,那就是顶部起柱。
通达信指标公式大全
SZ3天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13)),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(C<O AND REF(C,1)>REF(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2))COLORRED,POINTDOT;SZ2短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2 AND V/REF(V,1)>=0.8;D:=H=HHV(H,3);A ANDB AND D;SZ仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORW HITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0),5,1)/SMA(ABS(LC-REF(LC,1)),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;{STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF(仙人,1),1,0),COLORCYAN;}攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+ 9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF( MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空>=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多,空);卖:=CROSS(空,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;MA18:MA(C,18),COLOR0096FF;MA30:MA(C,30),COLOR00FF99;MA60:MA(C,60),COLORFF00FF;MA120:MA(C,120),COLORWHITE;{MA250:MA(C,250),COLORCY AN;}D1:=((MEMA(CLOSE,3) - MEMA(CLOSE,6)) * 5);S:=MA(C,9);Z:=((EMA(D1,7) + EMA(CLOSE,5))-S)*100;P:=EMA(Z,2);D2:=IF(Z>P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3 OR L<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE);DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,7);DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,8);LC:=REF(C,1);LD:=IF(C<LC*0.89,1,0);LE:=COUNT(LD=1,20);LF:=COUNT(LD=1,6);LG:=MA6/4.5;RSI1:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLOR YELLOW;EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;MJ0:=IF(AA AND LE<1,1,0);V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);V AR3:=(CLOSE-V AR1)/V AR1*100<-10;V AR4:=(V AR1-VAR2)/V AR2*100<-16;V AR5:=V AR3 AND V AR4;V AR6:=V AR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA; DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;DRAWICON(V AR6,L*0.96,11);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);支撑位:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW,COLORLIRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELL OW;DRAWICON(CROSS(J,0) AND RSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2);DRAWTEXT(CROSS(J,5)AND RSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);SZ15多方炮A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);多方炮:A8 AND J<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));VARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);VARFY:= - ((((V ARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));V AR3C:=EMA(能量线,1);V AR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW *0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH *1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK:=EMA(((( CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - VAR3) / (V AR4 - V AR3)) * 100),3);V AR6:=((AK + V AR5) / 2);V AR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * V AR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线 1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW; V AR1:LLV(A7,21);V AR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>V AR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-V AR1)/(V AR2-V AR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;V AR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}V AR4:=EMA(EMA(EMA(V AR3,4),4),4);{可将3该为4,信号少点}E:=(V AR4-REF(VAR4,1))/REF(V AR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>V AR1 AND 上线1>一号支撑线AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS( EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3 )+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BAR SLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2: =HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST( Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_ 2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);SHOOT:REF(TJ,1)=0 AND TJ>=1;SZ18背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;DRAWICON(周金AND 日金,-0.1,7);DRAWICON(周金AND 月金,-0.15,11);DRAWICON(日金AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIFF),-0.15,0),COLORGREEN;DRAWICON(周死AND 日死,-0.1,8);DRAWICON(周死AND 月死,-0.15,12);DRAWICON(日死AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1,NODRAW;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.225,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.275,'三全项'),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,' 反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOW<REF(LOW,1) AND LOW<REF(LOW,5) AND MACD>REF(MACD,1) AND 0>MACD AND 0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21); V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=V ARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;SZ16水池STICKLINE(C>0,90,95,10,0),COLOR408000;STICKLINE(C>0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;风险值:ZHENGYI,COLORCY AN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10综合预警V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21);V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);EMA(IF(LOW<=VARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10>0;SZ11笑脸M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位+2),MIN(REF(DIF,定位+3),MIN(REF(DIF,定位+4),MIN(REF(DIF,定位+5),MIN(REF(DIF,定位+6),REF(DIF,定位+7)))))));今股价低值:=MIN(REF(L,1),MIN(REF(L,2),MIN(REF(L,3),MIN(REF(L,4),MIN(REF(L,5),MIN(REF(L, 6),REF(L,7)))))));DIF现低:=MIN(REF(DIF,1),MIN(REF(DIF,2),MIN(REF(DIF,3),MIN(REF(DIF,4),MIN(REF(DIF,5),M IN(REF(DIF,6),REF(DIF,7)))))));底部背离:=IF(CROSS(DIF,DEA) AND 今股价低值<前股价低值AND DIF现低>DIF前低,100,0);信号1:=IF(底部背离=100 OR REF(底部背离,1)=100 OR REF(底部背离,2)=100 OR REF(底部背离,3)=100 OR REF(底部背离,4)=100 OR REF(底部背离,5)=100OR REF(底部背离,6)=100 OR REF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1) AND REF(M13,1)<=REF(M13,2) AND REF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZD AND ZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100 OR REF(TJ,2)=100 OR REF(TJ,3)=100 OR REF(TJ,4)=100 OR REF(TJ,5)=100OR REF(TJ,6)=100 OR REF(TJ,7)=100 OR REF(TJ,8)=100 OR REF(TJ,9)=100 OR REF(TJ,10)=100 ORREF(TJ,11)=100 OR REF(TJ,12)=100 OR REF(TJ,13)=100 OR REF(TJ,14)=100 OR REF(TJ,15)=100OR REF(TJ,16)=100 OR REF(TJ,17)=100 OR REF(TJ,18)=100 OR REF(TJ,19)=100 OR REF(TJ,20)=100,100,0);超跌:=IF(ZJ=100 AND DD=100 AND C>M13,100,0);入场:=IF(超跌=100 AND 信号1=100,100,0);XG:入场=100;SZ12跟庄A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);V AR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);V AR2:=EMA(VAR1,8);V AR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(V AR3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;V AR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND V AR4>13,0,50,2,0),COLOR0099FF;V AR5:=FILTER((趋势<=13 AND V AR4>13),10);DRAWTEXT(V AR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND V AR4,0,30,3,0),COLORGRAY;V AR6:=FILTER((趋势>=90 AND V AR4),10);DRAWTEXT(V AR6,40,'清仓'),COLORGRAY;V AR7:=LLV(LOW,30);V AR8:=HHV(HIGH,30);V AR9:=EMA((CLOSE-V AR7)/(V AR8-V AR7)*4,4)*25;STICKLINE(V AR9>90,100,105,3,2),COLORRED;V AR10:=(V AR9-LLV(V AR9,4))/(HHV(V AR9,4)-LLV(V AR9,4))*100;DRAWTEXT(IF(CROSS(V AR9,V AR10) AND V AR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,V AR9),95,9);V AR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;V AR12:=HHV(V AR11,30)*8;火焰山:EMA(IF(LOW<=V AR7 AND 趋势<40,(V AR11+V AR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;V AR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;V AR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;V AR16:=MAX(EMA(V AR13,2)-EMA(V AR14,5),0)*200;V AR17:=EMA(V AR16,5);波浪峰:V AR17,STICK,COLORFF00FF;STICKLINE(V AR17<REF(V AR17,1),0,V AR17,1,0),COLOR00FF00;V AR18:=MA(趋势线,8);IF(CROSS(V AR2,V AR18) AND V AR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,V AR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪PL5:=ZIG(3,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);EX1:=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);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;SZ14老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;SZ250HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);HDY<45;SZ20逃跑V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;收盘价逃顶:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2,COLORBLUE; DRAWTEXT(收盘价逃顶,80,'收盘价逃顶'),COLOR000999;SZ21总金额总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;V AR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;DRAWICON(反弹=80,趋势J2-0.005,1);阶段底:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,CO LORRED,LINETHICK2;V1:=AMOUNT/VOL/100;V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(L,2)+O+ REF(O,1)+REF(O,2))/12,LINETHICK2,COLORLICYAN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);保护价:(REF(CLOSE,2)+REF(CLOSE,1)+O)/3;N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCY AN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
SZ3天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13)),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(C<O AND REF(C,1)>REF(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2))COLORRED,POINTDOT;SZ2短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2 AND V/REF(V,1)>=0.8;D:=H=HHV(H,3);A ANDB AND D;SZ仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORW HITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0),5,1)/SMA(ABS(LC-REF(LC,1)),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;{STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF(仙人,1),1,0),COLORCYAN;}攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+ 9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF( MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空>=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多,空);卖:=CROSS(空,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;MA18:MA(C,18),COLOR0096FF;MA30:MA(C,30),COLOR00FF99;MA60:MA(C,60),COLORFF00FF;MA120:MA(C,120),COLORWHITE;{MA250:MA(C,250),COLORCY AN;}D1:=((MEMA(CLOSE,3) - MEMA(CLOSE,6)) * 5);S:=MA(C,9);Z:=((EMA(D1,7) + EMA(CLOSE,5))-S)*100;P:=EMA(Z,2);D2:=IF(Z>P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3 OR L<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE);DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,7);DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,8);LC:=REF(C,1);LD:=IF(C<LC*0.89,1,0);LE:=COUNT(LD=1,20);LF:=COUNT(LD=1,6);LG:=MA6/4.5;RSI1:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLOR YELLOW;EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;MJ0:=IF(AA AND LE<1,1,0);V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);V AR3:=(CLOSE-V AR1)/V AR1*100<-10;V AR4:=(V AR1-VAR2)/V AR2*100<-16;V AR5:=V AR3 AND V AR4;V AR6:=V AR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA; DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;DRAWICON(V AR6,L*0.96,11);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);支撑位:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW,COLORLIRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELL OW;DRAWICON(CROSS(J,0) AND RSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2);DRAWTEXT(CROSS(J,5)AND RSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);SZ15多方炮A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);多方炮:A8 AND J<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));VARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);VARFY:= - ((((V ARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));V AR3C:=EMA(能量线,1);V AR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW *0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH *1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK:=EMA(((( CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - VAR3) / (V AR4 - V AR3)) * 100),3);V AR6:=((AK + V AR5) / 2);V AR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * V AR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线 1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW; V AR1:LLV(A7,21);V AR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>V AR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-V AR1)/(V AR2-V AR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;V AR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}V AR4:=EMA(EMA(EMA(V AR3,4),4),4);{可将3该为4,信号少点}E:=(V AR4-REF(VAR4,1))/REF(V AR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>V AR1 AND 上线1>一号支撑线AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS( EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3 )+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BAR SLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2: =HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST( Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_ 2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);SHOOT:REF(TJ,1)=0 AND TJ>=1;SZ18背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;DRAWICON(周金AND 日金,-0.1,7);DRAWICON(周金AND 月金,-0.15,11);DRAWICON(日金AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIFF),-0.15,0),COLORGREEN;DRAWICON(周死AND 日死,-0.1,8);DRAWICON(周死AND 月死,-0.15,12);DRAWICON(日死AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1,NODRAW;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.225,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.275,'三全项'),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,' 反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOW<REF(LOW,1) AND LOW<REF(LOW,5) AND MACD>REF(MACD,1) AND 0>MACD AND 0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21); V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=V ARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;SZ16水池STICKLINE(C>0,90,95,10,0),COLOR408000;STICKLINE(C>0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;风险值:ZHENGYI,COLORCY AN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10综合预警V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21);V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);EMA(IF(LOW<=VARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10>0;SZ11笑脸M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位+2),MIN(REF(DIF,定位+3),MIN(REF(DIF,定位+4),MIN(REF(DIF,定位+5),MIN(REF(DIF,定位+6),REF(DIF,定位+7)))))));今股价低值:=MIN(REF(L,1),MIN(REF(L,2),MIN(REF(L,3),MIN(REF(L,4),MIN(REF(L,5),MIN(REF(L, 6),REF(L,7)))))));DIF现低:=MIN(REF(DIF,1),MIN(REF(DIF,2),MIN(REF(DIF,3),MIN(REF(DIF,4),MIN(REF(DIF,5),M IN(REF(DIF,6),REF(DIF,7)))))));底部背离:=IF(CROSS(DIF,DEA) AND 今股价低值<前股价低值AND DIF现低>DIF前低,100,0);信号1:=IF(底部背离=100 OR REF(底部背离,1)=100 OR REF(底部背离,2)=100 OR REF(底部背离,3)=100 OR REF(底部背离,4)=100 OR REF(底部背离,5)=100OR REF(底部背离,6)=100 OR REF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1) AND REF(M13,1)<=REF(M13,2) AND REF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZD AND ZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100 OR REF(TJ,2)=100 OR REF(TJ,3)=100 OR REF(TJ,4)=100 OR REF(TJ,5)=100OR REF(TJ,6)=100 OR REF(TJ,7)=100 OR REF(TJ,8)=100 OR REF(TJ,9)=100 OR REF(TJ,10)=100 ORREF(TJ,11)=100 OR REF(TJ,12)=100 OR REF(TJ,13)=100 OR REF(TJ,14)=100 OR REF(TJ,15)=100OR REF(TJ,16)=100 OR REF(TJ,17)=100 OR REF(TJ,18)=100 OR REF(TJ,19)=100 OR REF(TJ,20)=100,100,0);超跌:=IF(ZJ=100 AND DD=100 AND C>M13,100,0);入场:=IF(超跌=100 AND 信号1=100,100,0);XG:入场=100;SZ12跟庄A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);V AR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);V AR2:=EMA(VAR1,8);V AR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(V AR3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;V AR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND V AR4>13,0,50,2,0),COLOR0099FF;V AR5:=FILTER((趋势<=13 AND V AR4>13),10);DRAWTEXT(V AR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND V AR4,0,30,3,0),COLORGRAY;V AR6:=FILTER((趋势>=90 AND V AR4),10);DRAWTEXT(V AR6,40,'清仓'),COLORGRAY;V AR7:=LLV(LOW,30);V AR8:=HHV(HIGH,30);V AR9:=EMA((CLOSE-V AR7)/(V AR8-V AR7)*4,4)*25;STICKLINE(V AR9>90,100,105,3,2),COLORRED;V AR10:=(V AR9-LLV(V AR9,4))/(HHV(V AR9,4)-LLV(V AR9,4))*100;DRAWTEXT(IF(CROSS(V AR9,V AR10) AND V AR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,V AR9),95,9);V AR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;V AR12:=HHV(V AR11,30)*8;火焰山:EMA(IF(LOW<=V AR7 AND 趋势<40,(V AR11+V AR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;V AR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;V AR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;V AR16:=MAX(EMA(V AR13,2)-EMA(V AR14,5),0)*200;V AR17:=EMA(V AR16,5);波浪峰:V AR17,STICK,COLORFF00FF;STICKLINE(V AR17<REF(V AR17,1),0,V AR17,1,0),COLOR00FF00;V AR18:=MA(趋势线,8);IF(CROSS(V AR2,V AR18) AND V AR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,V AR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪PL5:=ZIG(3,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);EX1:=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);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;SZ14老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;SZ250HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);HDY<45;SZ20逃跑V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;收盘价逃顶:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2,COLORBLUE; DRAWTEXT(收盘价逃顶,80,'收盘价逃顶'),COLOR000999;SZ21总金额总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;V AR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;DRAWICON(反弹=80,趋势J2-0.005,1);阶段底:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,CO LORRED,LINETHICK2;V1:=AMOUNT/VOL/100;V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(L,2)+O+ REF(O,1)+REF(O,2))/12,LINETHICK2,COLORLICYAN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);保护价:(REF(CLOSE,2)+REF(CLOSE,1)+O)/3;N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCY AN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);。