一、通达信突破锅顶主图指标公式
M1:=5;
M2:=10;
M3:=20;
M4:=60;
M5:=120;
M6:=250;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
LT:=LLVBARS(L,60);
LT1:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
DT:=FINDLOW(L,LT1+1,60,1);
锅顶:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORYELLOW,LINETHICK2;TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);
AA:=CROSS(C,CONST(锅顶));
TJ:=COUNT(AA,TT+1)=1 AND AA;
TJ1:=COUNT(V BL:=TJ1/(TT+1)*100; XG:=TJ AND TT>40 AND BL>70; XGT:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(XG))+1); ZH:=REF(H,TT); YL:=REF(L,LTT); XC:=REF(C,XGT); YZ:=(XC-YL)/YL*100; ZBL:=YZ/REF(LTT,XGT); XGA:=XG AND ZBL<2.95; BB:DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK2; 锅底:DRAWLINE(CURRBARSCOUNT>CONST(LT1)+0,L,ISLASTBAR,REF(L,LT1),0),COLORWHITE,LINETHICK3; B:=DRAWLINE(CURRBARSCOUNT>DLOW,L,ISLASTBAR,REF(H,DLOW),0),COLORRED,LINETHICK2; DRAWLINE(LTT=0,L,XGT=0,L,0),COLORRED; DRAWICON(XGA,L*0.95,9); XG1:=TJ AND TT>40 AND BL>20; 二、通达信快抢筹码主图指标公式 MA05:MA(C,5)LINETHICK3,COLOR00CCFF; MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); 五日乖离率:=(C-MA05)/MA05*100; BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; IF(BB05<0 AND MA05
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW; VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1); VAR2:=(MA30-MA20)
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ; 清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05
DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),COLORRED; JC:=CROSS(0,五日乖离率) AND 三拾日乖离率REF(MA10,1) ; 减仓:=FILTER(JC,10); MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1) 买入:=FILTER(MR,10); DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN; DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW; DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),COLORGREEN; DRAWTEXT(强势狙击,LOW*0.98,'←强势狙击'),COLORYELLOW; VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100); MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50; 压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF; 支撑:MA(REF(LLV(C,30),1),2),COLORABFF46; A:=MAX(MA(C,60),MA(C,120)); E:=MAX(MA(C,45),MA(C,90)); J:=MAX(MA(C,30),MA(C,60)); A1:=DATE <= 13181231; 生命线:=(MA(C,25)) * A1; 牛线1:=(MA(C,40)) * A1; FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)); FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 趋势:=IF(MA(CLOSE,17) 年线:=EMA(C,250); LA:=趋势-(EMA(C,3)-趋势); 反线:=EMA((年线-(EMA(C,3)-年线)),5); 追涨:=EMA(COST(81),10); 牛熊线:=EMA(COST(27),120),DOTLINE; 做空68:= HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5); 平衡点:= LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3); XG:=CROSS(做空68,牛熊线); DRAWTEXT(XG,L*0.95,'←主'),COLOR00FF00; DRAWTEXT(XG,L*0.90,'←浪'),COLOR00FF00; M2:=EMA(C,2); M18:=EMA(C,18); 买:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2; RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; VARB2:=(RSVV/2+22)*1; Q:=EMA(VOL,13); Y:=EMA(AMOUNT,13); S:=((Y /Q) / 100); X:=(((CLOSE -S) / S) * 100); F:=((X < (0)) AND ZXNH); XQ:=F AND RSVV 收阴买:=买 AND XQ ,STICK,COLORYELLOW,LINETHICK3; DRAWTEXT(收阴买,L*0.98,'←快买'),COLORYELLOW; M5:=MA(C,5); M10:=MA(C,10); M20:=MA(C,20); M60:=MA(C,60); YC5:=PPART(5)*100; YC100:=PPART(100)*100; C85:=COST(85); C15:=COST(15); B1:=C85-C15; B2:=(C85+C15)/2; B3:=B1/B2*100<15 AND YC5>90 AND YC100<15; ZF:=RANGE((C-REF(C,1))/REF(C,1)*100,-3,3) AND M5>=REF(M5,1); XG1:=EVERY(ZF,3) AND M10>=M20 AND B3 AND M5>M60 AND ASR>80; STICKLINE(CROSS(XG1,0.5),C,O,1.8,0),COLORLIMAGENTA; STICKLINE(CROSS(XG1,0.5),H,L,0,0),COLORLIMAGENTA; DRAWTEXT(CROSS(XG1,0.5),L*0.98,'←快抢筹码'),COLORYELLOW;