通达信指标公式源码概况:指标类别: 通达信指标公式授权方式: 免费版指标评级: ★★★★★指标分类: 策略画线方法: 副图一、通达信精准买卖指标公式 MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK2; AA:=MA10 =REF(MA10,1); BB:=CLOSE MA10*1.004; DRAWICON(AAANDBB,MA10,1); CC:=MA10 =REF(MA10,1); DD:=COUNT(CLOSE =MA10*0.996,2)=2; DRAWICON(CCANDDD,MA10,2); VL:=REF(LOW,1); VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100; VAR14:=MA(VAR12,13); VAR15:=LLV(LOW,34); VAR18:=EMA(IF(LOW =VAR15,VAR14,0),3); VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9; T:=FILTER(IF(VAR111 =var110andvar18 REF(VAR18,1),VAR18*8,0),20); DRAWTEXT(T,LOW-0.4, ←Z注意变盘 ),COLORFF00FF; DRAWTEXT(T,LOW-0.2, | ),COLORFF00FF; O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1; O2:EMA(O1,3),COLORFF00FF,LINETHICK1; O3:EMA(O2,3),COLOR00FF00,LINETHICK1; MMM:=MA(CLOSE,20); DRAWTEXT((CLOSE MMM),MMM, * ),COLOR00FF00,LINETHICK5; DRAWTEXT((CLOSE MMM),MMM, * ),COLOR0000FF,LINETHICK5; VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); VAR2:=REF(VAR1,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR3:=REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR4:=REF(VAR3,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR5:=REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR6:=REF(VAR5,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR7:=REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR8:=REF(VAR7,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR9:=REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARA:=REF(VAR9,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VARB:=REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARC:=REF(VARB,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARF:=REF(VARE,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR11:=REF(VAR10,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR13:=REF(VAR12,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR15:=REF(VAR14,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR17:=REF(VAR16,1)ANDCLOSE =ref(close,1)andclose =REF(CLOSE,2); VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13 ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1; VAR1A:=REF(VAR1 ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9 ORVARAORVARBORVARC,1)ANDVARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00; DRAWTEXT(FILTER(VAR19=1,5),LOW, 买进 ),COLORFF00FF; DRAWICON(FILTER(VAR19=1,5),LOW,9); DRAWTEXT(FILTER(VAR1A=1,5),HIGH, 逃顶 ),COLOR00FF00; DRAWICON(FILTER(VAR1A=1,5),HIGH,15);二、通达信主动性买卖量公式指标 STICKLINE(HOUR =9ANDHOUR 10,0,V/((TIME-93000)/100)*240,4.5,1),COLORWHITE; STICKLINE(HOUR =10ANDHOUR 11,0,V/((TIME-100000)/100+30)*240,4.5,1),COLORWHITE; STICKLINE(HOUR =11ANDHOUR 12,0,V/((TIME-110000)/100+90)*240,4.5,1),COLORWHITE; STICKLINE(HOUR =13ANDHOUR =14,0,V/((TIME-130000)/100+120)*240,4.5,1),COLORWHITE; STICKLINE(HOUR =14ANDHOUR =15,0,V/((TIME-140000)/100+180)*240,4.5,1),COLORWHITE; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主动卖盘:=IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)); stickline(c o,0,vol,4.5,1),COLORRED; STICKLINE(c o,0,vol,4.5,1),colorffff00; stickline(c=oandc ref(c,1),0,vol,4.5,1),colorffff00; stickline(c=oandc ref(c,1),0,vol,4.5,1),colorred; Stickline(主动买盘 0,0,主动买盘,4.5,0),colorred; stickline(主动卖盘 0,0,主动卖盘,4.5,0),color00ff00; 换手:VOL/CAPITAL*100; STICKLINE(换手 =3and换手 8,0,主动买盘,2,0),coloryellow; STICKLINE(换手 =8,0,主动买盘,2,0),colorgreen; MA5:MA(VOL,5),COLORYELLOW; MA13:MA(VOL,13),COLORWHITE; DRAWTEXT(CROSS(MA5,MA13),CROSS(MA5,MA13), * ),COLORYELLOW; TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1))))); MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME 0.5,TOTAL,MTIME); VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 (SETCODE=0||SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; MAVOL1:MA(VOLUME,5); MAVOL2:MA(VOLUME,10); 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); STICKLINE(OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1),0,OBV3,1,0),COLORYELLOW; T1:IF((OBV3 REF(OBV3,1)ANDMAC3 REF(MAC3,1)),100000,0); m:=21; n:=21; DC:=INDEXC; DC1:=3; DV:=INDEXC; var11:=ZIG(DC1,6) REF(ZIG(DC1,6),1)ANDREF(ZIG(DC1,6),1) =REF(ZIG(DC1,6),2)ANDREF(ZIG(DC1,6),2) =REF(ZIG(DC1,6),3); var12:=ZIG(DC1,6)=REF(ZIG(DC1,6),2)ANDREF(ZIG(DC1,6),2) =REF(ZIG(DC1,6),3); var13:=ZIG(DC1,22) REF(ZIG(DC1,22),1)ANDREF(ZIG(DC1,22),1) =REF(ZIG(DC1,22),2)ANDREF(ZIG(DC1,22),2) =REF(ZIG(DC1,22),3); var14:=ZIG(DC1,22)=REF(ZIG(DC1,22),2)ANDREF(ZIG(DC1,22),2) =REF(ZIG(DC1,22),3); var15:=ZIG(DC1,51) REF(ZIG(DC1,51),1)ANDREF(ZIG(DC1,51),1) =REF(ZIG(DC1,51),2)ANDREF(ZIG(DC1,51),2) =REF(ZIG(DC1,51),3); var16:=ZIG(DC1,51)=REF(ZIG(DC1,51),2)ANDREF(ZIG(DC1,51),2) =REF(ZIG(DC1,51),3); var17:=ZIG(DC1,72) REF(ZIG(DC1,72),1)ANDREF(ZIG(DC1,72),1) =REF(ZIG(DC1,72),2)ANDREF(ZIG(DC1,72),2) =REF(ZIG(DC1,72),3); var18:=ZIG(DC1,72)=REF(ZIG(DC1,72),2)ANDREF(ZIG(DC1,72),2) =REF(ZIG(DC1,72),3); 买:=(var11+var13+var15+var17); 卖:=(var12+var14+var16+var18); 新价:DC,colorwhite;// DRAWTEXT(买 0,DC*0.99, 必进 ),colorred,; DRAWTEXT(卖 0,DC*1.02, 清仓 ),colorgreen,; b:=TROUGHBARS(DC1,5,1)=0; e:=PEAKBARS(DC1,5,1)=0; DRAWICON(b,INDEXL,1),colorred; DRAWICON(e,INDEXH,2); DRAWNUMBER(e,INDEXC*0.98,TOSTRING(INDEXH,2));//画数字 DRAWNUMBER(b,INDEXC*0.98,TOSTRING(INDEXL,2));//画数字 突破:REF(EMA(DC,14),1),coloryellow;// A1X:=(EMA(DC,10)-突破)/突破*100; 多方:=IF(A1X =0,REF(EMA(DC,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL); 空方:=IF(A1X 0,REF(EMA(DC,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL); STICKLINE(A1X =0,多方,突破,0,0),COLOR000099;//柱线 STICKLINE(A1X 0,空方,突破,0,0),COLOR00CC66;//柱线 均价线:SUM(DC*DV,240)/SUM(DV,240),colormagenta;// AA:=ZIG(DC1,5),coloryellow; DIFF1:=-(EMA(AA,26)-EMA(AA,12)); DEA1:=-(EMA(DIFF1,9)); MACD1:=2*(DIFF1-DEA1); //转向变盘建仓 X:=IF(MACD1 0andref(macd1,2) REF(MACD1,1)ANDMACD1 REF(MACD1,1),1,0); DRAWTEXT(X,INDEXC*0.97, 建仓 ),coloryellow; //量价指标 VPT:=SUM(DV/EMA(DV,N)*(DC-REF(DC,1))/REF(DC,1),0); MAVPT:=EMA(VPT,M); //均价线金叉 DRAWICON(CROSS(新价,均价线)AND新价 突破ANDCLOSE MA(CLOSE,144),均价线,1); DRAWICON(CROSS(突破,均价线),均价线,1); //底部 B:=ZIG(DC1,50/5),colorred; G:=MA(B,2),coloryellow; D:=CROSS(B,G)*(-0.5),STICK,colormagenta,LINETHICK3;// DRAWTEXT(D 0,INDEXC*0.95, 底部 ),coloryellow;[源码注释]通达信公式动态公式解读VAR2赋值:(最高价+最低价+收盘价*2)/4VAR3赋值:VAR2的7日指数移动平均VAR4赋值:VAR2的7日估算标准差VAR5赋值:(VAR2-VAR3)*100/VAR4VAR6赋值:VAR5的3日指数移动平均输出夫:(VAR6的5日指数移动平均+100)/2-3,画绿色 输出妻:3日内夫的最高值,画红色,线宽为2推荐阅读:通达信卖出专用指标公式 EMA30:EMA(C,30),COLORWHITE,LINETHICK3; EMA60:EMA(C,60),COLORFF00FF,LINETHICK2; EMA90:EMA(C,90),COLORYELLOW,LINETHICK2; EMA120:EMA(C,120),COLORFFCC66,LINETHICK2; EMA250:EMA(C,250),COLORBLUE,LINETHICK2; SS:=CROSS(EMA30,EMA60)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA30,EMA120)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA60,EMA90)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA30,EMA90)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018{ANDCROSS(EMA30,EMA120)}; DRAWICON(SS,L-0.04,1); DD:=CROSS(EMA60,EMA90)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA60,EMA250)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA90,EMA120)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018 ORCROSS(EMA60,EMA120)ANDC OANDC REF(C,1)ANDC/REF(C,1) =1.018ANDCROSS(EMA30,EMA250); {DD:=CROSS(EMA30,EMA250);} DRAWICON(DD,L-0.04,3); 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,LINETHICK3; 中期趋势:EMA(Q3,3),COLORRED,LINETHICK3; DRAWTEXT(CROSS(中期趋势,短期趋势)ANDREF(短期趋势,1) 80,REF(短期趋势,3), ▼逢高派发 ),COLOR00FF00,LINETHICK5; ▲逢低关注:DRAWTEXT(REF(CROSS(中期趋势,短期趋势),82)AND中期趋势 1.3*短期趋势,短期趋势, ▲逢低关注 ),COLOR00FFFF,LINETHICK1; ▲抄底:DRAWTEXT(REF(CROSS(短期趋势,中期趋势),1)AND短期趋势 1.3*中期趋势,中期趋势, ▲抄底 ),COLORBLUE,LINETHICK1; VAR3:=PEAKBARS(3,5,1) VAR5:=IF(VAR3=1,2,0); 顶:=IF(VAR5=2,2,0); 顶A:IF(顶 REF(顶,1),50,0),COLORGREEN,LINETHICK2; DRAWTEXT(顶A=50,45, 小心 ),COLOR00FF00; N:=7;M1:=3;M2:=3;P:=12; LC:=REF(CLOSE,1); 生命线:SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*135,LINETHICK2; 逃顶:135,COLORFFFF00,LINETHICK2; 拉升:=50; 抄底:16,LINETHICK2; 判断:80,COLORYELLOW,LINETHICK2; 换手:=VOL/CAPITAL*100; 十日换手:SUM(换手,10),COLORWHITE,NODRAW; 主力平均成本:(COST(4)),COLORFF00FF,NODRAW; RS:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RS,M1,1); D:=SMA(K,M2,1); J:=3*K-2*D,COLORFFFF00; 进场:IF(CROSS(J,0),100,50),COLORGREEN; SVOL:=INTPART(SUM(V,0)/CAPITAL); TJ0:=SVOL REF(SVOL,1)ORBARSSINCE(CLOSE)=0; S1:=BARSLAST(TJ0)+1; TJ2:=S1 REF(S1,1); S2:=IF(TJ2,REF(S1,1)+1,S1); 阶段总额(万):=SUM(AMOUNT/10000,S2)*100,NODRAW; 阶段总量(手):=SUM(V,S2)*100,NODRAW; 阶段成本:(阶段总额(万)/(阶段总量(手)/100)),COLORRED,NODRAW; 开始:=CROSS(生命线,抄底); 走强:=CROSS(生命线,判断); DRAWICON(开始,抄底+6,1); DRAWICON(走强,判断+6,11); YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004; 买进条件:=CROSS(CLOSE,YC_买进)ANDYC_买进 REF(YC_买进,1),LINETHICK0; YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004; 加仓条件:=CROSS(CLOSE,YC_加仓)ANDYC_加仓 REF(YC_加仓,1),LINETHICK0; DRAWTEXT(买进条件AND加仓条件=1,拉升+6, 买 ),COLORRED; RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*5,LINETHICK2,COLORFF00FF; BB:=RSI CC:=RSI DRAWTEXT(BB,105, 顶 )COLORGREEN; DRAWTEXT(CC,105, 绝顶 ),COLORFFFF00; 获利:=WINNER(C)*100,NODRAW; STICKLINE(获利 99.6,36,16,2,0),COLORGREEN; STICKLINE(获利 99.6,40,20,2,0),COLORGREEN; B1:=(((HIGH+LOW)+CLOSE)/3); B2:=HHV(B1,15); B3:=LLV(B1,15); B4:=(B2-B3); B5:=(MA(((B1-B3)/B4),2)*100); RSVDD:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; G:=3*SMA(RSVDD,3,1)-2*SMA(SMA(RSVDD,3,1),3,1); ZXNH:= ZXNH.ZXNH 买:=B5 3ANDREF(B5,1)=0ANDG 5ANDREF(G,1) GANDZXNH; STICKLINE(买,40,60,1,0),COLORFF00FF; 逃离铁掌帮:=CROSS(CCI,220); {STICKLINE(逃离铁掌帮,2,30,2.7,0),COLOR003300; STICKLINE(逃离铁掌帮,2,30,1.8,0),COLOR007700; STICKLINE(逃离铁掌帮,2,30,0.9,0),COLOR00BB00;} STICKLINE(逃离铁掌帮,16,30,2,0),COLOR00FF00; DRAWTEXT(逃离铁掌帮,40, 绝情谷 ),COLORFFFFFF; 探针1:=0.01*MA(AMOUNT,13)/MA(VOL,13); 探针2:=(CLOSE-探针1)/探针1*100,COLORRED,LINETHICK1; DRAWTEXT( ZXNH.ZXNH =1AND探针2 =-2,128, 买 ),COLORFF00FF; DRAWTEXT( ZXNH.ZXNH =1AND探针2 2,126, 卖 ),COLORGREEN; CCC:=CROSS(H,MA(L+(H-L)/2,25)*1.15);DDDWWW:=CROSS(H,MA(L+(H-L)/2,25)*1.25); DRAWTEXT(CCCANDMA(L+(H-L)/2,75) =REF(MA(L+(H-L)/2,75),1),130, 卖吧 ),COLOR6699FF; DRAWTEXT(DDDWWWANDMA(L+(H-L)/2,75) =REF(MA(L+(H-L)/2,75),1),120, 逃顶 ),COLOR6699FF; DRAWTEXT(CCCANDMA(L+(H-L)/2,75) =REF(MA(L+(H-L)/2,75),1),130, 逃命 ),COLORWHITE; TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,P))/(0.015*AVEDEV(TYP,P)); 秒杀CCI:=EMA((TYP-MA(TYP,P))/(0.015*AVEDEV(TYP,P)),2.0332),COLORWHITE; STICKLINE(秒杀CCI -150,40,20,0.5,0),COLORRED; STICKLINE(秒杀CCI 150,110,120,1,0),COLORFFFF00; DRAWICON(CROSS(CCI,-130),40,23); RSV:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100; 涨幅:=(H-REF(C,1))/(REF(C,1))*100; 跌幅:=(-(REF(C,1)-L)/(REF(C,1)))*100,LINETHICK0; 振幅:=涨幅+(-跌幅); 真实振幅:=(REF(振幅,1))-(REF(振幅,2))+(REF(振幅,1)),COLORRED; 真实涨跌幅:=(REF(C,1)-C)/REF(C,1)*-100,LINETHICK0; KWW:=SMA(RSV,3,1);DWW:=SMA(KWW,3,1);JWW:=3*KWW-2*DWW,LINETHICK0; 明天可能涨停:=IF(REF(O C,1){AND跌幅 =-4.2ANDREF(跌幅,1) -3.5}and真实振幅 13AND振幅 =5AND振幅 REF(振幅,1)ANDJWW 20,5,0)COLORMAGENTA; DRAWTEXT(明天可能涨停,120, 明大涨 ),COLORFF00FF; VARB2:=(RS/2+22)*1; 量:=EMA(VOL,13); 资金:=EMA(AMOUNT,13); 过滤:=((资金/量)/100); 提纯:=(((CLOSE-过滤)/过滤)*100); 黄金:=((提纯 (0))ANDZXNH),COLORRED; 低买:=IF(黄金ANDRS VARB2-2,50,0),COLORYELLOW,LINETHICK2; STICKLINE(低买,120,105,1.5,0),COLORYELLOW; M:=14;Q:=6; MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0)))))))); AVG:=(HIGH+LOW+CLOSE)/3; CCIWW:=(AVG-MA(AVG,MM))/(0.015*AVEDEV(AVG,MM)); DRAWICON((CCIWW) =200,98,35); TJ1:=(MIN(C,O)-L)/(H-L) =0.5; TJ2W:=L/MIN(C,O) =0.99; TJ3:=(C-MA(C,30))/MA(C,30)*100 TJ4:=C XG:=TJ1ANDTJ2WANDTJ3ANDTJ4; STICKLINE(XG,70,40,0.1,0)COLORYELLOW; LB:=V/(REF(V,15)/5); DIFQ:=EMA(LB,30)-EMA(LB,60); DEAQ:=EMA(DIFQ,15); MALB:=(DIFQ-DEAQ)*2; {换手部分} HS:=HSL; HS60:=MA(HS,60); MA120:=MA(LB,120)/10; NIU:=CROSS(MALB,MA120)ANDC REF(C,1); HS5W:=MA(HS,5); STICKLINE(CROSS(HS5W,HS60)ANDC REF(C,1)ANDNIU,80,60,1,0),COLORFF2400; VARAWW:=(HIGH-LOW); VARB1:=ABS((OPEN-CLOSE)); VAR4:=(HIGH-IF((CLOSE OPEN),CLOSE,OPEN)); VAR5:=(IF((CLOSE OPEN),OPEN,CLOSE)-LOW); VAR6:=((VARB1/VARAWW)*VOL); VAR7:=((VAR4/VARAWW)*VOL); VAR8:=((VAR5/VARAWW)*VOL); VAR9:=IF(((VOL/CAPITAL) 0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100))))); VARBW:=(((MA(CLOSE,5) MA(CLOSE,10))AND(MA(CLOSE,10) MA(CLOSE,30)))AND(MA(CLOSE,30) MA(CLOSE,60))); DRAWTEXT((((((VAR6 (MA(VOL,5)*2))AND(VAR6 =VAR7))AND(VAR6 =VAR8)) AND(CLOSE OPEN))OR((VOL (MA(VOL,5)*3))ANDVARBW)),110, ◆强2天 ),COLORFF00FF; VAR2:=LOW; VAR3:=HIGH; 警戒线:=2.8; 减仓线:=3.2; 卖出线:=3.5; 动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4); DRAWTEXT(CROSS(动力线,减仓线),120, 注意风险!! DRAWTEXT(CROSS(动力线,卖出线),110, 出局 MA9:=EMA(CLOSE,9); LUP:=EXPMA(MA9*1.14,5); XGW:=CLOSE LUPANDC REF(C,1)*(1+9.96/100)ANDC=H; DRAWTEXT(XGW,95, 小心 ),COLORGREEN; 信号:=COUNT(REF(EMA(C,3),1) REF(EMA(C,3),2),5)=5 ANDEMA(C,3) REF(EMA(C,3),1); DRAWICON(信号,103,25); 快线:=EMA((CLOSE+LOW)/2,8); 均衡:=EMA(EMA((CLOSE+LOW)/2,20),8); DRAWTEXT(CROSS(快线,均衡),120, 减仑 ),COLOR00FF00; LONGGGG发财线:=38,COLORFF3311; LONGGGG趋势线:=51,COLORFF1155; OK:=REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,LINETHICK2,COLORRED; RSI2:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF; RSI3:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF; RSI4:=SMA(RSI3,7,1),LINETHICK2,COLOR00CD00; 趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF; 趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD; 趋势C:=EMA(((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18,COLORYELLOW,LINETHICK2; W1:=MA(趋势A,7)*1.372,COLORRED,LINETHICK2; W2:=W1*1.0887; W3:=(1.5*(趋势B+RSI4)-(W2+W1))+12,COLOR3377FF,COLORRED,LINETHICK2,COLORFF0000; W4:IF((CROSS(W1,趋势C)ORCROSS(W1,W3)ANDW3 LONGGGG发财线ANDRSI2 LONGGGG趋势线),100,38),LINETHICK2,COLORFF6655; 启动:IF((CROSS(RSI2,RSI4)ORCROSS(RSI2,W3)ANDW3 LONGGGG发财线ANDRSI1 LONGGGG趋势线),100,38),LINETHICK2,COLORFF6655; DRAWICON(CROSS(RSI1,启动),RSI1,1);引用:通达信指标公式源码精准买卖主图指标公式 - 知乎