通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、主力净买额副图指标公式 VAR1:=1; VAR3:=MA(CLOSE,13); VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100); VAR5:=LLV(LOW,75); VAR6:=HHV(HIGH,75); VAR7:=(VAR6-VAR5)/100; VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1); VAR9:=SMA((OPEN-VAR5)/VAR7,20,1); VARA:=3*VAR8-2*SMA(VAR8,15,1); VARB:=3*VAR9-2*SMA(VAR9,15,1); VARC:=100-VARB; 主力筹码趋向:(100-VARA)*VAR1,,COLORRED,LINETHICK2;VARD:=主力筹码趋向 VAR4; VARE:=REF(LOW,1)*0.9; VARF:=LOW*0.9; VAR11:=EMA(VARF,30); VAR12:=CLOSE-REF(CLOSE,1); VAR13:=MAX(VAR12,0); VAR14:=ABS(VAR12); VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100; VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100; VAR17:=BARSCOUNT(CLOSE); VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100; VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1); VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1); VAR1E:=SMA(VAR1D,3,1); VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 手机指标公式:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW; VAR20:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17 STICKLINE(VARD,VAR4,主力筹码趋向,1,0),COLORGREEN; STICKLINE(VAR20,0,80,1,0),COLORFF00FF,LINETHICK3; 主力做底轴线:95,COLORYELLOW,LINETHICK1; 主力做大底轴线:100,COLORMAGENTA,LINETHICK1; 主力做顶轴线:0,COLORCYAN,LINETHICK1; 中线轴:15,COLORWHITE,LINETHICK1; 50,COLOR545454; 主力净买,是经传的老指标。 JE:=VOL; JJ:=(HIGH+LOW+CLOSE)/3; QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); 主买:=(QJ0*(JJ-MIN(CLOSE,OPEN))); 主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW)); TMP:=主买-主卖; 主力活跃度:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW; STICKLINE(TMP 0,0,主力活跃度,2,0),COLORRED; STICKLINE(TMP 0,0,主力活跃度,2,0),COLORGREEN; AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 买量:=IF(CLOSE OPEN,AA*(HIGHLOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSELOW)),VOL/2)),LINETHICK0; 卖量:=IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPENLOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0- VOL/2)),LINETHICK0,COLORCYAN; 主力净流入亿元:MA(买量+卖量 /2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1; EXP1:=EMA(CLOSE,5),COLORFF00FF,LINETHICK1; EXP2:=EMA(CLOSE,10),COLORGREEN,LINETHICK1; MACV:=EMA(EXP1,3),COLORFFCC00,LINETHICK1; EXP5:=EMA(CLOSE,3),COLORFF00FF,LINETHICK1; MACK:=EMA(EXP5,3); 日:=150;昨前:=3; 高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前); H7:=高1-(高1-低1)*0.85; 底部:=REFDATE(H7,DATE)*2; 底部 EXP5ANDCROSS(EXP5,MACK); 二、资金净买额副图公式 DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8); X1:=EMA(DIFF,5)*5; X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5; 资金动能2:=X2,COLORRED,LINETHICK2; 资金动能1:=X1,COLORYELLOW,LINETHICK2; 资金买点:CROSS(资金动能2,资金动能1)AND资金动能1 -0.25,LINETHICK2,COLOR0088FF; REFLINE:0; DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8); DEA:=EMA(DIFF,3); MACD:=2*(DIFF-DEA); X1:=EMA(DIFF,5)*5; X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5; X3:IF(X2 0,X2,0),POINTDOT,COLORRED; X4:IF(X2 0,X2,0),POINTDOT,COLORGREEN; STICKLINE(X2 0,0,X2,2.4,0),COLOR000099; STICKLINE(X2 0,0,X2,2.0,0),COLOR0000AA; STICKLINE(X2 0,0,X2,1.6,0),COLOR0000CC; STICKLINE(X2 0,0,X2,1.2,0),COLOR0000DD; STICKLINE(X2 0,0,X2,0.8,0),COLOR0000EE; STICKLINE(X2 0,0,X2,0.4,0),COLOR0000FF; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,2.4,0),COLORFFBF00; STICKLINE(X2 0,0,X2,2.4,0),COLOR007700; STICKLINE(X2 0,0,X2,2.0,0),COLOR009900; STICKLINE(X2 0,0,X2,1.6,0),COLOR00CC00; STICKLINE(X2 0,0,X2,1.2,0),COLOR00DD00; STICKLINE(X2 0,0,X2,0.8,0),COLOR00FF00; STICKLINE(X2 0,0,X2,0.4,0),COLOR00FF00; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,2.4,0),COLOR990099; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,2.0,0),COLORAA00AA; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,1.6,0),COLORCC00CC; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,1.2,0),COLORDD00DD; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,0.8,0),COLOREE00EE; STICKLINE(X2 0ANDX2 X1ANDX2 REF(X2,1),0,X2,0.4,0),COLORFF00FF; 资金动能2:X2,COLORRED,LINETHICK2; 资金动能1:X1,COLORYELLOW,LINETHICK2; DRAWICON((CROSS(资金动能2,资金动能1)AND资金动能1 -0.25),资金动能1,1); 资金买点:CROSS(资金动能2,资金动能1)AND资金动能1 -0.25,LINETHICK2,COLOR0088FF; DRAWICON((CROSS(资金动能1,资金动能2)AND资金动能2 0.25),资金动能2,2); VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL); OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); OBV2:=EMA(OBV1,3)-MA(OBV1,9); OBV3:=EMA(IF(OBV2 0,OBV2,0),3); MAC3:=MA(C,3); SHORT:=12; LONG:=26; MID:=9; DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),NODRAW; STICKLINE(OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1),0,X2,0.4,0),COLOR00D8FF; 资金量能:OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1),COLORRED,NODRAW; 多头:=IF(C REF(C,1),V,0)/100; 空头:=IF(C REF(C,1),V,0)/100; 主力:EMA(MA(多头,3),3),COLORWHITE,LINETHICK2; 散户:EMA(MA(空头,3),10),COLORGREEN,LINETHICK2; 主散比值:主力/散户; 主散差值:主力-散户; 资金总亿额:AMOUNT/100000000,COLORFF00FF; GUP:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 流入亿额:=IF(CLOSE OPEN,GUP*(HIGH-LOW),IF(CLOSE OPEN,GUP*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED; 流出亿额:=IF(CLOSE OPEN,0-GUP*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-GUP*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00; 净流入亿额:流入亿额+流出亿额,COLORMAGENTA; 净流入比值:净流入亿额/C*100000; 流入主散比值:ABS(净流入比值/主散差值); STICKLINE(主散差值 0AND主散比值 =0AND主散比值 1.2,主散差值,0,9,0),COLORBROWN; STICKLINE(主散差值 0AND主散比值 =0AND主散比值 1.2AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORDB70DB; STICKLINE(主散比值 1.2,主散差值,0,9,0),COLORRED; STICKLINE(主散比值 1.2AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORDB70DB; STICKLINE(主散比值 1.2AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORGREEN; STICKLINE(主散差值 0AND主散比值 =0.8AND主散比值 1,主散差值,0,9,0),COLORBROWN; STICKLINE(主散差值 0AND主散比值 =0.8AND主散比值 1AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORYELLOW; STICKLINE(主散差值 0AND主散比值 0.8,主散差值,0,9,0),COLORGREEN; STICKLINE(主散差值 0AND主散比值 0.8AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORYELLOW; STICKLINE(主散差值 0AND主散比值 0.8AND净流入亿额 0AND流入主散比值 0.05,主散差值,主散差值+净流入比值,9,0),COLORRED; 卖点:=主散比值 1.2 ANDC O AND净流入亿额 DRAWICON(卖点=1,8,39); 买点:=主散比值 1.2 AND(主散差值+净流入比值) =REF((主散差值+净流入比值),1) ANDC =REF(C,1) ANDMA(净流入亿额,3) =0 AND卖点=0; DRAWICON(买点=1,8,38); 多头:=IF(C REF(C,1),V,0)/100; 空头:=IF(C REF(C,1),V,0)/100; 主力:=EMA(MA(多头,3),3),COLORWHITE,LINETHICK2; 散户:=EMA(MA(空头,3),10),COLORGREEN,LINETHICK2; 主散比值:=主力/散户; 主散差值:=主力-散户; GUP:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 流入亿额:=IF(CLOSE OPEN,GUP*(HIGH-LOW),IF(CLOSE OPEN,GUP*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED; 流出亿额:=IF(CLOSE OPEN,0-GUP*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-GUP*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00; 净流入亿额:=流入亿额+流出亿额,COLORMAGENTA; 净流入比值:=净流入亿额/C*100000; 卖点:=主散比值 1.2 ANDC O AND净流入亿额 买点:=主散比值 1.2 AND(主散差值+净流入比值) =REF((主散差值+净流入比值),1) ANDC =REF(C,1) ANDMA(净流入亿额,3) =0 AND卖点=0; 红三角图标:买点=1; [源码注释]通达信公式动态公式解读V111赋值:120日内最高价的最低值飞鱼赋值:100*(收盘价-V111)/V111,画黄色,线宽为1V211赋值:120日内最高价的最高值海洋赋值:100*(V211-收盘价)/收盘价,画绿色,线宽为1海1赋值:22日内海洋的最高值,画绿色,线宽为1当满足条件飞鱼 海1时,在日期日130日内最高价的最高值和日期日130日内最低价的最低值位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR545454 K线输出 上:(开盘价和收盘价的较大值-开盘价和收盘价的较小值)*2/3+开盘价和收盘价的较小值,画洋红色,NODRAW输出中:(开盘价+收盘价)/2,画红色,NODRAW输出下:(开盘价和收盘价的较大值-开盘价和收盘价的较小值)/3+开盘价和收盘价的较小值,画黄色,NODRAWF10赋值:100*(收盘价-开盘价)/开盘价F20赋值:100*(收盘价-1日前的收盘价)/1日前的收盘价振幅赋值:(最高价-最低价)/1日前的收盘价*100RQ赋值:如果日期 =1200824,返回1,否则返回0KCB赋值:如果属于某板块,返回1,否则返回0CYB赋值:如果属于某板块ANDRQ,返回1,否则返回0ZT1赋值:F20 =9.5 AND 收盘价=最高价 AND 取反ZT2赋值:F20 =19.5 AND 收盘价=最高价 AND (KCB OR CYB)ZT3赋值:平盘AND 收盘价=最低价 AND 收盘价=最高价 AND (ZT1 OR ZT2)ZT4赋值:ZT1 OR ZT2 OR ZT3当满足条件ZT4时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFF00FF当满足条件ZT4时,在最高价和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF00FF输出强弱分界80:获利盘为85%的成本分布的10日指数移动平均,画红色输出强弱分界99:获利盘为99%的成本分布的10日指数移动平均,画绿色强弱分界80向上赋值:强弱分界80 1日前的强弱分界80强弱分界99向上赋值:强弱分界99 1日前的强弱分界99输出LC:100*(最低价-1日前的收盘价)/1日前的收盘价,画绿色,NODRAW输出HC:100*(最高价-1日前的收盘价)/1日前的收盘价,画白色,NODRAW当满足条件LC =-5时,在中和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF8000当满足条件LC =-8时,在中和最低价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色当满足条件(最高价/1日前的收盘价 =1.03)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR838383当满足条件(最高价/1日前的收盘价 =1.05)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF8000当满足条件(最高价/1日前的收盘价 =1.08)时,在中和最高价位置之间画柱状线,宽度为0,0不为0则画空心柱.,画黄色,线宽为2推荐阅读:主力资金副图指标公式 V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; 主力开始出:IF(V4 =0,V4,0),COLOR00FF00,LINETHICK2; 主力开始进:IF(V4 =0,V4,0),COLORFF00FF,LINETHICK2; V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; V6:=EMA(3*V5-2*SMA(V5,18,1),5); V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34); VA:=EMA(V9,3); VB:=(V9-VA)/2; 大资金进场:IF(VB =0,VB,0),COLORRED,LINETHICK2; 大资金撤走:IF(VB =0,VB,0),COLORBLUE,LINETHICK2; 说明:当主力开始进大于0时,即紫线开始出现时,可以跟进,当主力大于100时,可以 开始减仓,当主力开始出大于0时,即绿线出现时,坚决离场。 通达信经典划线指标(压力支撑);明天 HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY: =0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN)ANDH=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=CONST(DINGBUTS); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT GDCS2,0,1); 高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF, POINTDOT; DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW ,POINTDOT; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN)ANDL=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=CONST(DDTS1); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=CONST(DDTS2); 低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2; ZGSTAR:=(高点压力+低点支撑)/2; ZGEND:=CONST((高点压力+低点支撑)/2); STARDAY:=IF(DDCS2 GDCS2,DDCS2,GDCS2); 中 轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55B B,LINETHICK2; DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENT A,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,PO INTDOT; 通达信趋势 WW1:=FILTER(OPEN REF(LOW,1)ANDCLOSE OPENANDVOL REF(VOL,1),13); LC:=REF(CLOSE,1); JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; SZ:=FILTER(CROSS(JH,35),13); SX:=FILTER(CROSS(JH,30),7); SQ:=FILTER(CROSS(71,JH) 0,74); SD:=FILTER(CROSS(80,JH) 0,74); AA:=IF(CAPITAL 1,SZ,SX); BB:=IF(CAPITAL 1,SQ,SD); W10:=BARSLAST(AA); W11:=BARSLAST(BB); W12:=IF(W10 0ANDW10 W11,W10,0); W13:=IF(W11 0ANDW11 W10,W11,0); {VERTLINE(AA),LINEDOT,COLOR0000FF; VERTLINE(BB),LINEDOT,COLOR00FB00;} STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORRED; STICKLINE(CLOSE REF(CLOSE,1),CLOSE,OPEN,3,1),COLORRED; STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORGREEN; STICKLINE(CLOSE REF(CLOSE,1),CLOSE,OPEN,3,1),COLORGREEN; STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORFFFFFF; STICKLINE(CLOSE=REF(CLOSE,1),CLOSE,OPEN,3,1),COLORBBBBBB; STICKLINE(WW1,HIGH,LOW,0,0),COLOR00CCFF;{黄} STICKLINE(WW1,CLOSE,OPEN,3,0),COLOR00CCFF; STICKLINE(AA,HIGH,LOW,0,0),COLOR9900FF;{粉} STICKLINE(AA,CLOSE,OPEN,3,0),COLORFF99FF; {红柱牛股.粉柱买入.黄柱洗盘.绿柱卖出} {解盘} AAA:=CONST(HHV(H,90)); A74:=MA(CLOSE,20); A75:=(CLOSE MA(CLOSE,5)); A76:=(MA(CLOSE,5) MA(CLOSE,10)); A77:=(CLOSE MA(CLOSE,10)); A78:=(MA(CLOSE,5) MA(CLOSE,20)); A79:=(CLOSE MA(CLOSE,20)); A710:=REF(A74,1); A711:=(A74 A710); AVX:=(((((IF(A75,10,(0-10))+IF(A76,10,(0-10)))+IF(A77,10,(0-10))) +IF(A78,10,(0-10)))+IF(A79,10,(0-10)))+IF(A711,10,(0-10))); DSLX:=(CLOSE/INDEXC); DSLX1:=MA(DSLX,5); DSLX2:=MA(DSLX,10); V1:=MA(VOL,5); V2:=MA(VOL,10); T1:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 =V2))AND(DSLX = DSLX1)),1,0)); T2:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 V2))AND(DSLX = DSLX1)),1,0)); T3:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 V2))AND(DSLX DSLX1)),1,0)); T4:=CONST(IF(C 200AND((CROSS(AVX,1)AND(V1 =V2))AND(DSLX DSLX1)),1,0)); T5:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 =V2))AND(DSLX = DSLX1)),1,0)); T6:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 V2))AND(DSLX = DSLX1)),1,0)); T7:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 =V2))AND(DSLX DSLX1)),1,0)); T8:=CONST(IF(C 200AND((CROSS(1,AVX)AND(V1 V2))AND(DSLX DSLX1)),1,0)); T9:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2))AND (DSLX =DSLX1)),1,0)); T10:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND (DSLX =DSLX1)),1,0)); T11:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2)) AND(DSLX DSLX1)),1,0)); T12:=CONST(IF(C 200AND((((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2))AND (DSLX DSLX1)),1,0)); T13:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND (DSLX =DSLX1)),1,0)); T14:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND (DSLX =DSLX1)),1,0)); T15:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2))AND (DSLX DSLX1)),1,0)); T16:=CONST(IF(C 200AND((((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2))AND (DSLX DSLX1)),1,0)); T17:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0)); T18:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 =V2)),1,0)); T19:=CONST(IF(C 200AND(CROSS(AVX,1)AND(V1 V2)),1,0)); T20:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 =V2)),1,0)); T21:=CONST(IF(C 200AND(CROSS(1,AVX)AND(V1 V2)),1,0)); T22:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 =V2)),1,0)); T23:=CONST(IF(C 200AND(((AVX =1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0)); T24:=CONST(IF(C 200AND(((AVX 1)AND(REF(AVX,1) 0))AND(V1 =V2)),1,0)); T25:=CONST(IF(C 200AND(((AVX 1)AND(REF(AVX,1) 0))AND(V1 V2)),1,0)); DRAWTEXT(T1=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 量能理想,明显走强,中线参与,仓位在2/3左右 ),COLORFF00FF; DRAWTEXT(T2=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 走势趋强,还显不足,短线进场,仓位在1/2左右 ),COLORFF00FF; DRAWTEXT(T3=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 量价良好,没有明显走强,短线进场,仓位1/2左右 ),COLORFF00FF; DRAWTEXT(T4=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右 ),COLORFF00FF; DRAWTEXT(T5=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 形态变坏,重仓者减持大半,清仓者观望 ),COLORFF00FF; DRAWTEXT(T6=1ANDCURRBARSCOUNT=60,AAA*0.98 , 随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓 ),COLORFF00FF; DRAWTEXT(T7=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股放量下跌,走势明显偏弱,离场观望 ),COLORFF00FF; DRAWTEXT(T8=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股缩量下跌,走势偏弱,离场观望。 ),COLORFF00FF; DRAWTEXT(T9=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股形态良好,强势明显,量能充足,继续持有 ),COLORFF00FF; DRAWTEXT(T10=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 上行趋势不变,强势依然,量能开始转弱,注意风险 ),COLORFF00FF; DRAWTEXT(T11=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股仍然具备上涨潜力,但股性偏弱,可考虑减仓 ),COLORFF00FF; DRAWTEXT(T12=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股走势趋弱,量能不足,减持大部分筹码 ),COLORFF00FF; DRAWTEXT(T13=1ANDCURRBARSCOUNT=60,AAA-(AAA*0.03) , 该股形态不佳,注意成交量的变化,目前不宜参与 ),COLORFF00FF; A:=IF((CLOSE 126.32),(AMOUNT/100000),VOL); 主力:MA(A,4),LINETHICK0,COLOR00FFFF; 游资:MA(A,8),LINETHICK0,COLOR00FF00; 大户:MA(A,16),LINETHICK0,COLOR0000FF; 散户:MA(A,32),LINETHICK0,COLORFFFF00; 主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,COLOR00FFFF; 游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,COLOR00FF00; 大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,COLOR0000FF; 散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,COLORFFFF00; 警戒线:MA(A,180),COLORFF00FF; STICKLINE((主力 0),0,主力,8,0),COLOR0000FF; STICKLINE((主力 0),0,主力,7.8,0),COLOR0018FF; STICKLINE((主力 0),0,主力,7.5,0),COLOR001BFF; STICKLINE((主力 0),0,主力,7.3,0),COLOR0022FF; STICKLINE((主力 0),0,主力,7,0),COLOR0035FF; STICKLINE((主力 0),0,主力,6.8,0),COLOR0041FF; STICKLINE((主力 0),0,主力,6.5,0),COLOR0050FF; STICKLINE((主力 0),0,主力,6.3,0),COLOR0059FF; STICKLINE((主力 0),0,主力,6,0),COLOR0062FF; STICKLINE((主力 0),0,主力,5.7,0),COLOR006CFF; STICKLINE((主力 0),0,主力,5.5,0),COLOR007AFF; STICKLINE((主力 0),0,主力,5.3,0),COLOR0080FF; STICKLINE((主力 0),0,主力,5,0),COLOR0089FF; STICKLINE((主力 0),0,主力,4.5,0),COLOR0095FF; STICKLINE((主力 0),0,主力,3.5,0),COLOR009CFF; STICKLINE((主力 0),0,主力,3,0),COLOR00ABFF; STICKLINE((主力 0),0,主力,2.5,0),COLOR00C0FF; STICKLINE((主力 0),0,主力,1.5,0),COLOR00D1FF; STICKLINE((主力 0),0,主力,1,0),COLOR00EAFF; STICKLINE((主力 0),0,主力,0.7,0),COLOR00FFFF; STICKLINE((游资 0),0,游资,8,0),COLOR006800; STICKLINE((游资 0),0,游资,7.8,0),COLOR007F00; STICKLINE((游资 0),0,游资,7,5),COLOR008B00; STICKLINE((游资 0),0,游资,7,3),COLOR008B00; STICKLINE((游资 0),0,游资,7,0),COLOR009000; STICKLINE((游资 0),0,游资,6.8,0),COLOR009500; STICKLINE((游资 0),0,游资,6.5,0),COLOR009C00; STICKLINE((游资 0),0,游资,6.3,0),COLOR00A300; STICKLINE((游资 0),0,游资,6,0),COLOR00AB00; STICKLINE((游资 0),0,游资,5.7,0),COLOR00AF00; STICKLINE((游资 0),0,游资,5.5,0),COLOR00B900; STICKLINE((游资 0),0,游资,5.3,0),COLOR00C000; STICKLINE((游资 0),0,游资,5,0),COLOR00C100; STICKLINE((游资 0),0,游资,4.5,0),COLOR00CA00; STICKLINE((游资 0),0,游资,3.5,0),COLOR00D300; STICKLINE((游资 0),0,游资,3,0),COLOR00DB00; STICKLINE((游资 0),0,游资,2.5,0),COLOR00EA00; STICKLINE((游资 0),0,游资,1.5,0),COLOR00FF00; K线公式指标:DRAWNULL,COLORRED; STICKLINE((大户 0),0,大户,8,0),COLOR102088; STICKLINE((大户 0),0,大户,7,0),COLOR102099; STICKLINE((大户 0),0,大户,6,0),COLOR1020AA; STICKLINE((大户 0),0,大户,5,0),COLOR1020BB; STICKLINE((大户 0),0,大户,4,0),COLOR1020CC; STICKLINE((大户 0),0,大户,3,0),COLOR1020DD; STICKLINE((大户 0),0,大户,2,0),COLOR1020EE; STICKLINE((大户 0),0,大户,1,0),COLOR1020FF; STICKLINE((大户 0),0,大户,8,0),COLOR102088; STICKLINE((大户 0),0,大户,7,0),COLOR102099; STICKLINE((大户 0),0,大户,6,0),COLOR1020AA; STICKLINE((大户 0),0,大户,5,0),COLOR1020BB; STICKLINE((大户 0),0,大户,4,0),COLOR1020CC; STICKLINE((大户 0),0,大户,3,0),COLOR1020DD; STICKLINE((大户 0),0,大户,2,0),COLOR1020EE; STICKLINE((大户 0),0,大户,1,0),COLOR1020FF; STICKLINE((散户 0),0,散户,8,0),COLORFF7700; STICKLINE((散户 0),0,散户,7,0),COLORFF8800; STICKLINE((散户 0),0,散户,6,0),COLORFF9900; STICKLINE((散户 0),0,散户,5,0),COLORFFAA00; STICKLINE((散户 0),0,散户,4,0),COLORFFBB00; STICKLINE((散户 0),0,散户,3,0),COLORFFCC00; STICKLINE((散户 0),0,散户,2,0),COLORFFDD00; STICKLINE((散户 0),0,散户,1,0),COLORFFEE00; STICKLINE((散户 0),0,散户,8,0),COLORFF7700; STICKLINE((散户 0),0,散户,7,0),COLORFF8800; STICKLINE((散户 0),0,散户,6,0),COLORFF9900; STICKLINE((散户 0),0,散户,5,0),COLORFFAA00; STICKLINE((散户 0),0,散户,4,0),COLORFFBB00; STICKLINE((散户 0),0,散户,3,0),COLORFFCC00; STICKLINE((散户 0),0,散户,2,0),COLORFFDD00; DRAWTEXT(CROSS(游资,主力),游资, 始 DRAWTEXT(CROSS(主力,游资),主力, 终