通达信趋势短波段主图指标公式

合集下载

通达信波段指标公式

通达信波段指标公式

通达信波段指标公式双趋势波段指标:{超级波段王}VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;VAR2:=SUMBARS(VOL,CAPITAL);VAR3:=HHV(VAR1,VAR2);VAR4:=LLV(VAR1,VAR2);VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);VAR6:=(VAR1-VAR4)/(VAR3-VAR4);VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);VAR9:=EMA(VAR8,7);VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;VARC:=HHV(HIGH,9)-LLV(LOW,9);VARD:=HHV(HIGH,9)-CLOSE;VARE:=CLOSE-LLV(LOW,9);VARF:=VARD/VARC*100-70;VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR12:=SMA(VARE/VARC*100,3,1);VAR13:=LLV(LOW,34);VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);VAR15:=IF(VAR14>100,VAR14-100,0);VAR16:=HHV(HIGH,34);VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);VAR18:=EMA(VAR17,5);STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED ;STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1),COLORGREEN ;Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);AA:3*Q3-2*Q4 ,COLORYELLOW;Q5:=AA>1*REF(AA, 1);Q6:=LLVBARS(LOW, 50);Q7:=SUM(VOL, Q6);Q8:=HHVBARS(HIGH, 50);Q9:=SUM(VOL, Q8);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;Q11:=HHV(AA,5);A1:EMA(Q3, 3) , COLORFFDDCC;A2:EMA(A1, 3) , COLORFFBBCC;A3:EMA(A2, 3) , COLORFF99CC;A4:EMA(A3, 3) , COLORFF55CC;A5:EMA(A4, 3) , COLORFF33CC;A6:EMA(A5, 3) , COLORFF11CC;A:EMA(A4, 3), COLORFF00CC;DRAWTEXT(CROSS(AA, 20) AND Q10<-13,10,'☆大底'), COLOR00FF00;DRAWTEXT(CROSS(AA, A5) AND REF(AA,1)<34,REF(AA,1),'☆发财了'), COLORRED ;DRAWTEXT(CROSS(A1, AA) AND REF(AA,1)>80, REF(AA,3), '☆闪人'), COLORCFB53B ;DRAWTEXT(CROSS(AA, A1) AND Q5 AND A1<20 AND Q1>9 OR A1>1*REF(A1, 1)AND Q1>4 AND A1<60, 30, '拉'), COLORFFFFCC;{点击大图:分析家公式网整理};波段雄鹰:VAR1:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1);VAR4:=EMA(VAR3,5);VAR5:=LLV(LOW,26);VAR6:=HHV(HIGH,34);VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*4,4)*25;VAR8:=(2*C+H+L)/4;VAR9:=LLV(LOW,N1);VAR10:=HHV(HIGH,N2);VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));MW:= EMA(VAR2W,3);VAR3W:=EMA(VAR2W,7);M1:= EMA(VAR3W,5);MB1:=CROSS(MW,M1) AND M1<20;MG1:=IF(CROSS(M1,MW) AND REF(MW,1)>80,80 ,0) ;波段:EMA((VAR8-VAR9)/(VAR10-VAR9)*100,9),COLORMAGENTA;B1:EMA(0.667*REF(波段,1)+0.333*波段,2),COLOR00FF00;顶:IF((BARSLAST(MG1>0)<2),80,100);底:IF((MB1),20,0);底预备: IF((VAR7<10),50,30);顶预备: IF((VAR7>90),50,70);STICKLINE((波段-B1)>0,波段,B1,3,0),COLORMAGENTA; STICKLINE((波段-B1)<0,波段,B1,3,0),COLOR00FF00; DRAWTEXT(CROSS(波段,20),18,'买入'),COLORRED; DRAWTEXT(CROSS(80,波段),82,'卖出'),COLORGREEN; 0;100;波段鬼王:VAR2:=1/WINNER(CLOSE);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);散户:=MA(WINNER(CLOSE*0.95)*100,3);新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0)); VARD:=散户>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; VAR11:=EMA(VAR10,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;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;VAR21:=(HIGH+LOW+CLOSE)/3;VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);断子绝生:= IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50;DRAWICON(VARD,HIGH,2);DRAWTEXT(VAR20,C,'★'),COLORYELLOW;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,C*1.01,'有钱不赚傻'), COLORYELLOW;DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,HIGH*1.01,'赚钱我走啦'),COLOR00FF00;VAR26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR27:=REVERSE(VAR26);VAR28:=SMA(VAR26,3,1);波段王:= SMA(VAR28,3,1);波段鬼:= SMA(波段王,3,1);地狱:DRAWICON(CROSS(波段王,波段鬼) AND 波段王<40,LOW,1);天堂: DRAWICON(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH,2);DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,LOW*1.01,'低吸做波段'), COLORWHITE;DRAWTEXT(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH*1.01,'减磅是老师'),COLOR00FF00;波段抄底:{入市建仓}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);VAR5:=LLV(LOW,34);VAR6:=HHV(VAR4,34);VAR7:=IF(LLV(LOW,55),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=EMA(CLOSE,5);VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*V AR7*(-1);VAR12:=EMA(CLOSE,5)*(-1);备钱:IF(VAR8>REF(VAR8,1),0,VAR8),COLOR0FFFFF,NODRAW;界:0,COLORFFFFFF;XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)启动:IF(XL3,0,VAR8*3),COLORRED,NODRAW;DRAWBAND(启动,RGB(180,80,200),0,DRAWNULL);STICKLINE(XL3,0,VAR8*3,4,0),COLORRED;STICKLINE(VAR8>REF(VAR8,1),0,VAR8,2,0),COLOR10FFFF;STICKLINE(VAR11>REF(VAR11,1),0,VAR11,4,1),COLORFFF810;DRAWICON(VAR11>REF(VAR11,1) AND CROSS(VAR11,VAR12),VAR11,11);40,POINTDOT;VA:=(C+2*H+L)/4;VB:=LLV(L,8);VC:=HHV(H,8);VD:=EMA(((VA-VB)/(VC-VB)-VC/VB)*81,5)*-1;红线上穿买:REVERSE(VD)+100,COLORRED;红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;DRAWBAND(红线上穿买,RGB(150,030,030),红线下穿卖,RGB(20,150,20));IF(红线上穿买>=红线下穿卖,红线上穿买,DRAWNULL),COLORLIMAGENTA,LINETHICK2;IF(红线上穿买<红线下穿卖,红线上穿买,DRAWNULL),COLORGREEN,LINETHICK2;散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);DRAWICON(CROSS(散户,庄家) AND 散户<30,红线上穿买*0.98,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,红线上穿买*1.02,2);极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,23,0),COLORFF00FF,NODRAW;DRAWICON((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,-3,25);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;X:=LLV(J,2)=LLV(J,8);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,红线上穿买*0.9,'短'),COLORLIRED;DRAWICON(CROSS(J,REF(J+0.01,1)) AND X AND J<16,红线上穿买,7);QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);QVAR1C:=SMA(QVAR1B,13,8);QVAR1D:=SMA(QVAR1A,21,8);机会来临:SMA(QVAR1C,13,1),COLORCCCC00,LINETHICK2;STICKLINE(机会来临>90,90,机会来临,2,0),COLORCYAN;IF(机会来临>=REF(机会来临,1),机会来临,DRAWNULL),COLORCC33CC,LINETHICK2;中线:EMA(机会来临,55),COLOR9933FF,LINETHICK2;IF(中线AAS:=FILTER((COUNT((机会来临-QVAR1D<(-65)),3)=3),34);波段买点:IF(AAS,15,0),COLORFFFFFF,NODRAW;DRAWTEXT(AAS,32,'波段买'),COLORFFFFFF;STICKLINE(AAS,0,31,0.3,0),COLORMAGENTA;DRAWICON(CROSS(机会来临,QVAR1D),机会来临,23);{DDX预警}JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH -LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);DX:=MA(DDX,5)*20;DDX1:=SMA(DX,3,1);DDX2:=SMA(DDX1,3,1);DDX3:=EMA(DDX2,5);预警:=DDX>0 AND MA(V,5)>MA(MA(V,5),5) ANDCROSS(DDX1,DDX2);STICKLINE(预警,40,50,1,0),COLORLIRED;{密码1号}GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;STICKLINE(A AND B ,40,47,2,0),COLORRED;{横盘突破}O1:=(SUM(EMA((CLOSE+LOW)/2,1)/3,3));CP1:=HHV(O1,20);CP2:=HHV(O1,1);AV:=CROSS(CP2,CP1);STICKLINE(AV,40,45,4,0),COLORLIMAGENTA;波段之星:拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3;DRAWICON(做空>=REF(做空,1) AND REF(做空,1)空头:IF(做空{DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);}短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱0,0,红柱,2,0),COLOR888800;STICKLINE(红柱0,0,红柱,1.5,0),COLORAAAA00;STICKLINE(红柱0,0,红柱,0.8,0),COLORDDDD00;STICKLINE(红柱0,0,红柱,0.3,0),COLORFFFF00;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF;STICKLINE(蓝柱0,0,蓝柱,2,0),COLOR008800;STICKLINE(蓝柱0,0,蓝柱,1,0),COLOR00AA00;STICKLINE(蓝柱0,0,蓝柱,0.8,0),COLOR00DD00;STICKLINE(蓝柱0,0,蓝柱,0.3,0),COLOR00FF00;{蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF;STICKLINE(红柱<0,0,红柱,2,0),COLOR888800;STICKLINE(红柱<0,0,红柱,1.5,0),COLORAAAA00;STICKLINE(红柱<0,0,红柱,0.8,0),COLORDDDD00;STICKLINE(红柱<0,0,红柱,0.3,0),COLORFFFF00;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓'),COLORRED;{点击大图:分析家公式网整理};神奇波段:MX:=EMA(C,2);MXA:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(MX>=MXA,REFDATE(HHV(H,130),DATE),REFDATE (LLV(L,130),DATE),5,0),COLOR600020;STICKLINE(MXCOLOR404050;DRAWKLINE(H,O,L,C);AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);趋势线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORRED;CC:=(CLOSE/趋势线);MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);MAAA:=((MA1-趋势线)/趋势线)/3;TMP:=MA1-MAAA*MA1;JJ:IF(TMP<=趋势线,趋势线,DRAWNULL),LINETHICK3,COLORGREEN;XJ:IF(TMP<=趋势线,TMP,DRAWNULL),LINETHICK2,COLORBLUE;建仓:CROSS(MX,MXA),NODRAW;SEL:=CROSS(MXA,MX);DRAWICON(建仓,L-0.1,1);DRAWICON(SEL,H+0.1,2);DRAWTEXT(建仓,L-0.68,'↖建仓持股')COLORMAGENTA;DRAWTEXT(SEL,H+0.38,'↙清仓持币'),COLORBLUE;STICKLINE(MX>=MXA,LOW,HIGH,0.0,1),COLORRED;STICKLINE(MX>=MXA,CLOSE,OPEN,3,1),COLORRED;STICKLINE(MXSTICKLINE(MXSTICKLINE(建仓,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;CP:=MA(CLOSE,9),COLORCYAN,LINETHICK1;JD:=MA(CLOSE,18),COLORMAGENTA;DRAWICON(CROSS(CP,JD) AND MX>=MXA,JD-0.1,1);DRAWTEXT(CROSS(CP,JD) AND MX>=MXA,JD-0.38,'↖加仓'),COLORYELLOW;BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;DRAWTEXT(FILTER(BL,3),H+0.2,'↙倍量柱')COLORYELLOW;STICKLINE(FILTER(BL,3),OPEN,CLOSE,1.5,0),COLORYELLOW;XG:=SUMBARS(FILTER(BL,3),1);STICKLINE(XG,REF(L,XG-1),REF(L,XG-1),10,0),COLORYELLOW;神奇波段线:趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW;DRAWBAND(趋势,RGB(155,50,50),50,RGB(0,100,50));{STICKLINE(趋势>50,趋势,50,6,0),COLORFF00FF;STICKLINE(趋势<50,趋势,50,6,0),COLORGREEN;}转强:IF(趋势>50,趋势,DRAWNULL),COLOR0000FF;转弱:IF(趋势<50,趋势,DRAWNULL),COLORGREEN;RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);STICKLINE(转点=1,50,50,2,0),COLORYELLOW;STICKLINE(转点=0,50,50,2,0),COLORCYAN;STICKLINE(C,90,90,1,0),COLORYELLOW;STICKLINE(C,10,10,1,0),COLORCYAN;判断:SMA(趋势,3,1),COLORYELLOW;IF(判断>50 AND 趋势>判断,判断,DRAWNULL ),COLORYELLOW,LINETHICK2;IF(判断<50 AND 趋势>判断,判断,DRAWNULL),COLORFF00FF;IF(判断>50 AND 趋势<判断,判断,DRAWNULL),COLORGREEN,LINETHICK2;风险区:80,COLORFF85FF,POINTDOT;安全区:20,COLORYELLOW,POINTDOT;顶部:90,COLORFFFF00;强弱线:50,COLORGREEN,POINTDOT;DRAWICON(CROSS(趋势,判断) AND 趋势<80 ,判断,1);DRAWICON(CROSS(趋势,顶部),顶部,2);LC:= REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势1: IF(VAR6>45,VAR6-45,0),COLOR00FFFF;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);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/ 999*VAR7Q;火焰山:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(火焰山>0,0 ,火焰山*1.2,3,0 ),COLOR4444FF;STICKLINE(火焰山>0,0 ,火焰山*1.2,2,0 ),COLOR7777FF;STICKLINE(火焰山>0,0 ,火焰山*1.2,1,0 ),COLOR9999FF;STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR000033;STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR000077;STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.5,0),COLOR0000BB;STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR0000DD;STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3,0),COLOR003300;STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2,0),COLOR007700;STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1,0),COLOR00DD00;逃顶:=CROSS(82,RSI);STICKLINE( 逃顶,逃顶,20,3,0),COLORFF5500;STICKLINE( 逃顶,逃顶,30,2,0),COLORFF8800;STICKLINE( 逃顶,逃顶,30,1,0),COLORFFAA00;STICKLINE( 逃顶,逃顶,30,0.5,0),COLORFFCC00;D1:=(C+L+H)/3;D2:=EMA(D1,6);D3:=EMA(D2,5);BBUY:=CROSS(D2,D3);DRAWICON(BBUY,10,1);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARR1),10,2);DRAWTEXT(CROSS(82,VARR1),35,'减'),COLORYELLOW;神奇线选股:(CROSS(趋势,判断) AND 趋势<80),LINETHICK0;波段选股:(BBUY),LINETHICK0;STICKLINE(神奇线选股 AND 波段选股,0,100,1,0),COLORWHITE;。

通达信波段抄底逃顶指标公式

通达信波段抄底逃顶指标公式

通达信波段抄底逃顶指标公式通达信是一款常用的股票分析软件,波段抄底逃顶是一种常见的股票交易策略。

为了帮助投资者更好地利用通达信软件进行波段抄底逃顶交易,下面介绍一些常用的指标公式。

1. DMA指标:DMA指标是由短期移动平均线(DMA)、长期移动平均线(AMA)和无方向变动均值指标(ADX)组成。

其计算公式为:DMA = AMA - DMA,其中AMA可选用5日、10日或20日的移动平均线,DMA通常选用20日、30日或60日的移动平均线。

2. DMI指标:DMI指标是计算股价趋势的指标,包括正向趋势线(+DI)和负向趋势线(-DI),其计算公式为:+DI = (H - L)/TR * 100,-DI = (L - H)/TR* 100,其中H为当日最高价,L为当日最低价,TR为真实波动范围。

3. WR指标:WR指标也称为威廉指标,用于判断股价是否超买或超卖。

其计算公式为:WR = (Hn - C)/(Hn - Ln) * 100,其中Hn为最近n天的最高价,Ln为最近n天的最低价,C为当日收盘价。

4. MACD指标:MACD指标是计算股价趋势和动能的指标,包括快线(DIF)和慢线(DEA)。

其计算公式为:DIF = EMA(C, short) - EMA(C, long),DEA = EMA(DIF, mid),MACD = 2 * (DIF - DEA),其中C为当日收盘价,short、long和mid分别表示快线、慢线和MACD线的周期。

以上是通达信波段抄底逃顶指标的一些常用公式。

投资者可以根据自己的交易策略和对市场走势的判断,结合这些指标进行交易决策。

然而,需要注意的是,仅仅凭借指标公式并不能保证获利,还需要结合其他因素进行分析,并制定科学合理的风险控制措施。

在使用通达信软件进行股票交易时,建议投资者注重学习和实践,逐步积累经验,提高自己的交易技巧。

通达信超短共振主图指标公式

通达信超短共振主图指标公式

通达信超短共振主图指标公式价量:=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);主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);{☆精确风险}{【参数定义】}RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;K1:=SMA(RSV,10,1);D1:=SMA(K1,5,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{//变异kd风险系数}TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}乖离系数:=TGLXS,,NODRAW,COLORRED;主线:=EMA(EMA(C,1),5);本:=EMA(HHV(主线,5),1);急:=EMA(HHV(本,21),1);稳:=EMA(HHV(急,21),2);投:=EMA(HHV(稳,21),3);散:=EMA(HHV(投,21),4);集:=EMA(HHV(散,21),5);疯牛马线:EMA(HHV(集,21),6),COLORFF0080,LINETHICK3;日线:=CLOSE;涨幅:=(C-REF(C,1))*100/REF(C,1);涨幅50:=(C-REF(C,50))*100/REF(C,50);B1:=MA(C,1);持币阶段:SMA(SMA(SMA(B1,2,1),2,1),2,1),COLORFF6100,LINETHICK4;主升持股波段:HHV(MA(持币阶段,1),13),COLOR00FFFF,LINETHICK4;牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW;主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA( CLOSE,24))/4,2);界:=MA(CLOSE,27);ER:=V/FINANCE(7)*100;A0:=TMA(ER,(1-ER),1);MAXcyc:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));T1:=BArslAst(C>MAXCYC*POW(1.1,0.9));T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));T3:=crOSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;T4:=REF(MAXCYC,BARSLAST(T3));VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);超级主升:=EMA(VAR11,5);主升1:=超级主升-100;D8:=EMA(C,5);D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,2 0)+EMA(C,25)+EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+ EMA(C,75)+EMA(C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+ EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C, 120)+EMA(C,125)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA( C,150))/30;dde:=(D8/D2)*100;主升2:=DDE-110;A:=(H+L+2*C)/4;A1:=(A-REF(A,3))/3+A;MA5:=EMA(A1,7);J:=EMA(HHV(A1,20),60),LINETHICK3;CB5:=EMA(COST(80),30),CIRCLEDOT;HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;金牛线:=(J+CB5+HMX)/3,LINETHICK2;MA20:=MA(C,20);UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;白色:=SMA(HIGH,21,2)*1.05;黄色:=SMA(LOW,21,2)*0.95;中线:=(白色+黄色)/2;UP1:=中线+2*STD(中线,20);UP2:=REF(UP1,0);CC:=Abs((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);DT:=DMA(CLOSE,CC);通道3:=(1+9/100)*DT;通道4:=(1-7/100)*DT;界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;AHC1:=H*vol;AHC24:=EMA((expma(AHC1,180)/EXPMA(VOL,180)+EXPMA (AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,7 20)+EXPMA(AHC1,1440)/EXPMA(VOL,1440))/4,34);C上X:=1.06*AHC24;C下X:=AHC24*0.94;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108) +EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);上X:=1.06*AHC22;下X:=AHC22*0.94;AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AH C1,10)/EXPMA(VOL,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXP MA(AHC1,40)/EXPMA(VOL,40))/4,34);D上X:=1.06*AHC23;D下X:=AHC23*0.94;T:=(C上X+D上X+上X)/3*1.05;主升3:=(MA5*2/(界限+T)-1)*100;cbx80:=MA(COST(80),20);主升4:=(MA5/CBX80-1)*100;FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;主升5:=(FT/FT1-1)*100;P:=EMA(EMA(C*1.14,55),20);主升6:=(MA5/P-1)*100;金k线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;主升7:=(MA5/金K线-1)*100;超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2,LINETHICK2;持股时段:=IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;主力最大盈利:=LN(C/T4)/LN(1.1)*10,NODRAW,COLORFF0080;VAR1:=AMOUNT/VOL/100;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;疯牛强势分界线:=IF(C>200,C,DMA(VAR2,VOL/CAPITAL))*1.1,COLOR00FFFF,LIN ETHICK0;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21);V3:=EMA(V2,5);WY:=2*(V2-V3)*100;角度2:=ATAN((主升持股波段/REF(主升持股波段,1)-1)*100)*57.296;SMA2:=MA(持币阶段,3);IF(持币阶段<REF(持币阶段,1) AND 持币阶段<疯牛马线,持币阶段,DRAWNULL),COLORFF6100,LINETHICK4;IF(持币阶段>REF(持币阶段,1) AND 持币阶段<疯牛马线,持币阶段,DRAWNULL),COLORFF00FF,LINETHICK4;双线合一关注:主升持股波段,COLOR4169E1,LINETHICK4;IF(双线合一关注>REF(双线合一关注,1) AND 主升持股波段>疯牛马线,双线合一关注,DRAWNULL),COLORRED,LINETHICK4;IF(双线合一关注<=REF(双线合一关注,1),双线合一关注,DRAWNULL),COLOR808A87,LINETHICK4;IF(双线合一关注>REF(双线合一关注,1) AND 主升持股波段<=疯牛马线,双线合一关注,DRAWNULL),COLOR1E90FF,LINETHICK2;疯牛:IF((主升浪波段>50)AND(超牛拉升>=REF(超牛拉升,1))AND(双线合一关注>=REF(双线合一关注,1)),双线合一关注,DRAWNULL),COLOR00FFFF,LINETHICK4;FN:疯牛;超牛高:=H=HHV(超牛拉升,10);日振幅:=(H-L)/REF(C,1)*100;振幅15:=HHV(日振幅,15);剔除新股:=BARSCOUNT(CLOSE)>60;涨幅1:=(REF(C,1)-REF(C,2))/REF(C,2)*100;涨幅2:=(REF(C,2)-REF(C,3))/REF(C,3)*100;涨幅20:=(REF(C,1)-REF(C,21))/REF(C,21)*100;涨幅10:=(REF(C,1)-REF(C,11))/REF(C,11)*100;涨幅5:=HHV(CLOSE,5)/LLV(CLOSE,5);振幅:=(C-O)/O*100;跌幅:=(REF(C,1)-C)/REF(C,1)*100;低开阳线:=((O>REF(H,1) AND L>REF(H,1) AND C>O AND (O-REF(C,1))/REF(C,1)*100>1.5));大阳线:=(O-REF(C,1))/REF(C,1)*100>5;连阳1:=COUNT(O>REF(C,1),2)=2;跳空1:=COUNT(O>REF(H,1) AND L>REF(H,1),10);跳空2:=COUNT(O>REF(C,1) AND L>REF(C,1),10) AND L<O;跳空3:=COUNT(O>REF(C,1) AND (O-REF(C,1))/REF(C,1)*100>0.1 AND C>REF(H,1),10);VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力推升股价:=IF(VAR51<REF(VAR51,1)AND(跌幅<3),18,0),COLORRED,NODRAW;{低开阳线}STICKLINE((REF(C,1)-O)/REF(C,1)*100>2.5 AND (C-O)/O*100>2 AND BARSCOUNT(C)>20,O,C,3,0),COLORYELLOW;DRAWTEXT((REF(C,1)-O)/REF(C,1)*100>2.5 AND (C-O)/O*100>2 AND 涨幅5<30 AND 涨幅10<40 AND 超牛高 AND 超牛拉升>=REF(超牛拉升,1)AND(BARSCOUNT(C)>20),O-1,'老鼠仓'),COLORFF00FF;{快马加鞭}快马加鞭:=FILTER((涨幅>5)AND(涨幅1>5)AND(超牛拉升>=REF(超牛拉升,1)AND(C>疯牛马线)AND(涨幅10<40)AND(超牛拉升>=REF(超牛拉升,1))),3);STICKLINE(快马加鞭>0.1,O,C,3,0),COLORYELLOW;STICKLINE(快马加鞭>0.1,O,C,1.5,0),COLORRED;连续下跌:=COUNT(REF(C,2)>REF(C,1),4)>=2;连续缩量:=COUNT(V<=REF(V,1),4)>=2;{超强洗筹}洗筹1:=IF((REF(涨幅>5,1)AND(REF(涨幅1,1))AND(振幅<2)AND((涨幅<2)AND(跌幅<2)AND(涨幅20<28)AND(主升持股波段=持币阶段))),18,0),COLORYELLOW,NODRAW;洗筹2:=IF((REF(涨幅>2,1)AND(涨幅<2)AND(跌幅<2)AND(主升持股波段>REF(主升持股波段,1))),18,0),COLORYELLOW,NODRAW;超强洗筹:=IF((洗筹1>8)OR(洗筹2>8)OR((连续下跌)AND(连续缩量)AND(LLV(C,1)>REF(C,5))AND(涨幅>1)AND(LLV(C,4)>REF(C,7))),18,0),COLORYELLOW,NODRAW;STICKLINE((洗筹1>8)OR(洗筹2>8)OR((连续下跌)AND(连续缩量)AND(COUNT(持币阶段,10)>=3)AND(LLV(C,1)>REF(C,5))AND(C>O)AND(LLV(C,4)>REF(C,7))),O,C,3,0),COLORFF00FF;STICKLINE((洗筹1>8)OR(洗筹2>8)OR((连续下跌)AND(连续缩量)AND(COUNT(持币阶段,10)>=3)AND(LLV(C,1)>REF(C,5))AND(C>O)AND(LLV(C,4)>REF (C,7))),O,C,1,0),COLORFF0080;{大黑马}STICKLINE(((COUNT(低开阳线,10)=1)AND(连阳1))OR((振幅15<20)AND(跳空3))AND(涨幅>5)AND(涨幅1<5)AND(涨幅20<20)AND(涨幅50<40)AND(主升持股波段=持币阶段)AND(BARSCOUNT(C)>20)AND(主力推升股价>0)AND 超牛拉升>=REF(超牛拉升,1),O,C,3,0),COLORFF00FF;STICKLINE(((COUNT(低开阳线,10)=1)AND(连阳1))OR((振幅15<20)AND(跳空3))AND(涨幅>5)AND(涨幅1<5)AND(涨幅20<20)AND(涨幅50<40)AND(主升持股波段=持币阶段)AND 超牛拉升>=REF(超牛拉升,1)AND(主力推升股价>0)AND(BARSCOUNT(C)>20),O,C,1,0),COLORFF0080;DRAWICON(((COUNT(低开阳线,10)=1)AND(连阳1))OR((振幅15<20)AND(跳空3))AND(涨幅>5)AND(涨幅1<5)AND(涨幅20<20)AND(涨幅50<40)AND(主升持股波段=持币阶段)AND(BARSCOUNT(C)>20)AND(主力推升股价>0)AND(超牛拉升>=REF(超牛拉升,1)),O-1,25);DRAWTEXT(((COUNT(低开阳线,10)=1)AND(连阳1))OR((振幅15<20)AND(跳空3))AND(涨幅>5)AND(涨幅1<5)AND(涨幅20<20)AND(涨幅50<40)AND(主升持股波段=持币阶段)AND(主力推升股价>0)AND 超牛拉升>=REF(超牛拉升,1)AND(BARSCOUNT(C)>20),O-1.8,'大黑马'),COLORRED;DRAWTEXT(REF(涨幅>5,1)AND(REF(涨幅1,1))AND(振幅<2)AND((涨幅<2)AND(跌幅<2)AND(涨幅20<28)AND(主升持股波段=持币阶段)),H+0.3,''),COLORRED;{狂飙主升}XA_2:=5;XA_3:=3;XA_4:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;XA_5:=IF(YEAR>=2025,0,1);XA_6:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);XA_7:=EMA(CLOSE/XA_6*(1.88*CLOSE+LOW+OPEN)/2.75,3);XA_8:=(XA_7-XA_6)/XA_6/2;XA_9:=EMA(XA_7-XA_8*XA_7,5)*XA_5;XA_10:=EMA(CLOSE,34)-3*STD(CLOSE,34);主升浪:=IF(XA_4>XA_9,XA_4,XA_9)*XA_5,COLORGREEN,LINETHICK2;狂飙主升浪:=IF(主升浪>REF(主升浪,1),主升浪,主升浪),COLORRED,LINETHICK2;下轨:=IF(XA_9<XA_4 AND XA_9<CLOSE*0.15,EMA(CLOSE,34)-3*STD(CLOSE,34),XA_9),COLORFF0080,LINETHICK2;XA_1:=涨幅>0.5 AND CROSS(CLOSE,狂飙主升浪);STICKLINE(XA_1,CLOSE,OPEN,3,0),COLORYELLOW;STICKLINE(XA_1,OPEN+(CLOSE-OPEN)/2,OPEN,3,0),COLORFF00FF;IF(XA_9>XA_4,DRAWNULL,DRAWNULL),COLORGREEN,LINE THICK0;角度:=ATAN((狂飙主升浪/REF(狂飙主升浪,1)-1)*100)*180/3.1416;角度选股:=(BARSLASTCOUNT(狂飙主升浪>下轨)=1 AND MA(CLOSE,21)>REF(MA(CLOSE,21),1) AND 剔除新股);DRAWICON(角度选股,MIN(下轨,狂飙主升浪)*0.96,25);DRAWTEXT(角度选股,LOW,71),COLORYELLOW;{超强主升浪}STICKLINE((狂飙主升浪>下轨AND 日线>狂飙主升浪AND 角度>45)AND 涨幅>0,OPEN,CLOSE,3,0),COLORRED;STICKLINE((狂飙主升浪>下轨AND 日线>狂飙主升浪AND 角度>45),OPEN,OPEN+(CLOSE-OPEN)/3,3,0),COLORYELLOW;{次日涨停开口重仓}STICKLINE((XA_1 AND REF(涨幅,1)>7 AND CROSS(REF(日线,1),狂飙主升浪) AND 涨幅>7),CLOSE,OPEN,3,0),COLORYELLOW;STICKLINE((XA_1 AND REF(涨幅,1)>7 AND CROSS(REF(日线,1),狂飙主升浪) AND 涨幅>7),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)/3*2,3,0),COLORGREEN;{清仓离场}STICKLINE((CLOSE<狂飙主升浪AND 涨幅50>30 AND CLOSE<OPEN),CLOSE,OPEN,3,0),COLORGREEN;{强势调整1}STICKLINE((狂飙主升浪>下轨)AND (日线>狂飙主升浪)AND(涨幅<5)AND(OPEN>REF(CLOSE,1)OR(OPEN<(REF(CLOSE,1)-REF(OPEN,1))/2))AND(HIGH>CLOSE),CLOSE,OPEN,3,0),COLORBL UE;STICKLINE((狂飙主升浪>下轨)AND (日线>狂飙主升浪)AND(涨幅<5)AND(OPEN>REF(CLOSE,1)OR(OPEN<(REF(CLOSE,1)-REF(OPEN,1))/2))AND(HIGH>CLOSE),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)/4,3,0),COLORGREEN;{强势调整2}STICKLINE((狂飙主升浪>下轨)AND (日线>狂飙主升浪)AND(涨幅<5)AND(OPEN>REF(CLOSE,1))AND(OPEN>CLOSE)AND(HIGH>C LOSE),CLOSE,OPEN,3,0),COLORGREEN;STICKLINE((狂飙主升浪>下轨)AND (日线>狂飙主升浪)AND(涨幅<5)AND(OPEN>REF(CLOSE,1))AND(OPEN>CLOSE)AND(HIGH>C LOSE),OPEN,OPEN+(CLOSE-OPEN)/3,3,0),COLORFF0080;STICKLINE((狂飙主升浪>下轨AND 日线>狂飙主升浪AND 角度>45)AND 涨幅<0,OPEN,CLOSE,3,0),COLORBLUE;{超强突破}STICKLINE((XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪)),CLOSE,OPEN,3,0),COLORYELLOW;STICKLINE((XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪)),OPEN+(CLOSE-OPEN)/3*2,OPEN,3,0),COLORBLUE;STICKLINE((XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪)),OPEN+(CLOSE-OPEN)/3,OPEN,3,0),COLORRED;STICKLINE(XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪),CLOSE*1.1,CLOSE*1.3,0.5,0),COLORRED;DRAWICON(XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪),CLOSE*1.1,12),COLORRED;DRAWTEXT(XA_1 AND 涨幅>7 AND CROSS(日线,狂飙主升浪),CLOSE*1.36,'超强转势'),COLORRED;DRAWTEXT(REF(涨幅>5,1)AND(REF(涨幅1,1))AND(振幅<2)AND((涨幅<2)AND(跌幅<2)AND(涨幅20<28)AND(主升持股波段=持币阶段)),H+1,'超强洗筹'),COLORFF6610;DRAWTEXT(快马加鞭>0.1,O*0.98,'快马加鞭'),COLORFFFF00;{重仓介入}重仓介入:=FILTER((COUNT(角度选股,5)=1 AND 涨幅>0.5 AND 主力赢利25持仓>50 AND 涨幅10<50 AND 乖离系数>=REF(乖离系数,1)),15),COLORFFFF00,LINETHICK2;STICKLINE(重仓介入>0.8,O*0.72,O*0.82,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓介入>0.8,O*0.72,O*0.79,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓介入>0.8,O*0.72,O*0.76,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓介入>0.8,O*0.70,'重仓介入'),COLORYELLOW;。

通达信一眼辨别趋势主图指标公式

通达信一眼辨别趋势主图指标公式

通达信一眼辨别趋势主图指标公式M1:=5;M2:=10;M3:=20;M4:=60;DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'0',0);DRAWGBK(C>0,RGB(40,120,20),RGB(00,00,00),0,'0',1);DRAWGBK(C>0,RGB(80,100,120),RGB(00,00,00),0,'0',1);MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);BM:=EMA(C,2);SM:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(BM,SM);SEL:=CROSS(SM,BM);DRAWICON(BU,L-0.05,1);DRAWICON(SEL,H+0.03,2);STICKLINE(BM>=SM,LOW,HIGH,0,1),COLORRED;STICKLINE(BM>=SM,CLOSE,OPEN,3,1),COLORRED;STICKLINE(BM<SM,LOW,HIGH,0,1),COLORCYAN;STICKLINE(BM<SM,CLOSE,OPEN,3,1),COLORCYAN;{缠论}{五线顺上的拐点定位线,有未来函数}局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) ANDH>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1)AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED,LINETHICK3;DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORLICYAN,LINETHICK5;DD1:=BARSLAST(ABS(极点保留)!=1);DRAWICON(极点保留=1,局部极点,2);DRAWICON(极点保留=-1,局部极点,1);。

通达信长短波段副图指标公式

通达信长短波段副图指标公式

通达信长短波段副图指标公式RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;短A:SMA(RSV,3,1),COLORRED,LINETHICK1;短B:SMA(短A,3,1),COLORYELLOW,LINETHICK1;RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;中A:SMA(RSV1,5,1),COLORFFFF00,LINETHICK2;中B:SMA(中A,10,1),COLORGREEN,LINETHICK2;STICKLINE(中B,中A,中B,2,0),COLOR00FF00;STICKLINE(中B,中A,中B-1*(中B-中A)/6,2,0),COLOR33FF00;STICKLINE(中B,中A,中B-2*(中B-中A)/6,2,0),COLOR66FF00;STICKLINE(中B,中A,中B-3*(中B-中A)/6,2,0),COLOR99FF00;STICKLINE(中B,中A,中B-4*(中B-中A)/6,2,0),COLORCCFF00;STICKLINE(中B,中A,中B-5*(中B-中A)/6,2,0),COLORFFFF00;STICKLINE(中B,中A,中B,2,0),COLOR00FF00;STICKLINE(中B,中A,中B-1*(中B-中A)/6,2,0),COLOR33FF00;STICKLINE(中B,中A,中B-2*(中B-中A)/6,2,0),COLOR66FF00;STICKLINE(中B,中A,中B-3*(中B-中A)/6,2,0),COLOR99FF00;STICKLINE(中B,中A,中B-4*(中B-中A)/6,2,0),COLORCCFF00;STICKLINE(中B,中A,中B-5*(中B-中A)/6,2,0),COLORFFFF00;STICKLINE(短B,短A,短B,1,0),COLOR0000FF;STICKLINE(短B,短A-1*(短A-短B)/6,短B,1,0),COLOR0033FF;STICKLINE(短B,短A-2*(短A-短B)/6,短B,1,0),COLOR0066FF;STICKLINE(短B,短A-3*(短A-短B)/6,短B,1,0),COLOR0099FF;STICKLINE(短B,短A-4*(短A-短B)/6,短B,1,0),COLOR00CCFF;STICKLINE(短B,短A-5*(短A-短B)/6,短B,1,0),COLOR00FFFF;STICKLINE(短B,短A,短B,1,0),COLOR00FFFF;STICKLINE(短B,短A,短B-1*(短B-短A)/6,1,0),COLOR00CCFF;STICKLINE(短B,短A,短B-2*(短B-短A)/6,1,0),COLOR0099FF;STICKLINE(短B,短A,短B-3*(短B-短A)/6,1,0),COLOR0066FF;STICKLINE(短B,短A,短B-4*(短B-短A)/6,1,0),COLOR0033FF;STICKLINE(短B,短A,短B-5*(短B-短A)/6,1,0),COLOR0000FF;超卖预警:15,POINTDOT,COLORRED;超买预警:85,POINTDOT,COLORFFFF00;。

通达信准确的波段指标公式

通达信准确的波段指标公式

通达信准确的波段指标公式Z:=5;N:=10;HIGH1:=IF(HIGH<REF(H,1),(H+L)*0.5,HIGH);LOW2:=IF(LOW>=(REF(L,1)+REF(L,2))/2,CLOSE,LOW);LOW1:=IF(LOW>=REF(LOW,1),CLOSE,LOW);CLOSE1:=IF(CLOSE>=REF(CLOSE,1),CLOSE,(HIGH1+LOW2)* 0.5);VARA:=IF(CLOSE=CLOSE,(CLOSE+LOW+OPEN+HIGH+HIGH 1+LOW2)/6,AMOUNT/(100*VOL));VARU1:=LLV(LOW1,30);VARA1:=HHV(HIGH1,30);VARU2:=LLV(LOW1,21);VARA2:=HHV(HIGH1,21);CC:=MA((VARA-VARU2)/(VARA2-VARU2)*100,11);CC1:=EMA(CC,7),COLOR336699;B:=EMA((VARA-VARU1)/(VARA1-VARU1)*105,13);B1:=EMA(B,8);移动平均A:STICKLINE(B-B1>0 ,B*1.03,B1,3,1),COLOR3366AA;移动平均B:STICKLINE(B-B1<=0,B*1.03,B1,3,1),COLOR779966;VAR44:=ZIG(3,Z);RSV:=(VAR44-LLV(VAR44,N))/(HHV(VAR44,N)-LLV(VAR44,N))*100;月MD:="KDJ.D#MONTH",COLORFF0000,LINETHICK2;月MK:="KDJ.K#MONTH",COLOREECC00;周CD:="KDJ.D#WEEK",COLOR0000BB,LINETHICK2;周CK:="KDJ.K#WEEK",COLOR0099FF;月死KD:=MA((月MD,月MK),1);周死KD:=MA((周CD,周CK),1);周死RSI:="RSI.RSI2#WEEK"<="RSI.RSI3#WEEK";月金KD:=MA((月MK,月MD),1);周金KD:=MA((周CK,周CD),1);周金RSI:="RSI.RSI2#WEEK">="RSI.RSI3#WEEK"*0.998;周金R:="RSI.RSI1#WEEK">="RSI.RSI2#WEEK";AA:=STICKLINE(月死KD && 周死KD && 周死RSI,100,50,0,1),COLOR998888;BB:=STICKLINE(月金KD && 周金KD && 周金RSI,0,50,0,1),COLOR8800DD;K:SMA(RSV,3,1),COLORAA9999,LINETHICK2;D:SMA(K,3,1),COLOR00AA00,LINETHICK2;J:=3*K-2*D,COLORFFAABB,LINETHICK1;STICKLINE(周CK<周CD,D,K*1.01,4.2,1),COLORFFCC00;STICKLINE(周CK>=周CD,D,K*1.01,4.2,1),COLOR0000FF;RMA2:=MA(MA("RSI.RSI2#MONTH",2),2),COLORGRAY,LINET HICK1;RMA3:=MA(MA("RSI.RSI3#MONTH",2),2),COLOR000099,LIN ETHICK1;STICKLINE(RMA2>=RMA3,D*0.999,K*1.03,0.8,0),COLOR006 8FF;STICKLINE(RMA2<RMA3,D*0.999,K*1.03,0.8,0),COLORFF004 4;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);卖转向:STICKLINE(PEAKBARS(3,15,1)=1,101,51,1.6,0),COLOR00FF44,LI NETHICK2;买转向:STICKLINE(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,0,49,1.6,0),COLORAA00FF;死叉RSI:=DRAWICON(CROSS(周CD,周CK) AND 周死RSI,99,2);转向:=DRAWICON((CROSS(周CK,周CD) AND 周金RSI),25,5);月金叉:=月MK>月MD;月周金叉:=IF(CROSS(周CK,周CD) AND 月金叉,31,0),LINETHICK1,COLOR3333FF;周金叉RSI:=STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),0,25, 3,0),COLOR0038FF;金叉RSI:=DRAWICON(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),18, 9);波段升:STICKLINE(CROSS(D1,K1) AND CC>=CC1,1,33,0.1,0),COLOR00FFFF;波段下:STICKLINE(CROSS(K1,D1) AND CC<CC1,98,68,0.1,0),COLORAAAAAA;DIFFR:=EMA(CLOSE,12)-EMA(VARA,26);DEAR:=EMA(DIFFR,9),COLORFFFFFF,LINETHICK1;MACDA:=EMA(CLOSE,12)-EMA(CLOSE,26);MACDD:=EMA(CLOSE,9)-EMA(CLOSE,12);MACDB:=EMA(CLOSE,9)-EMA(CLOSE1,12);MACDH:=EMA(CLOSE,12)-EMA(CLOSE1,26);MACDC:=EMA(CLOSE,8)-EMA(CLOSE1,15);MACDM:=EMA(CLOSE,7)-EMA(CLOSE,11);中线持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);中线空仓:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL);DXB:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0),15)>=2;DXC:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0) OR CROSS(MACDH,0),20)>=2;DXD:=COUNT(CROSS(MACDM,0) OR CROSS(MACDC,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0),20)>=2;DXE:=COUNT(CROSS(MACDM,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0) OR CROSS(MACDD,0) ORCROSS(MACDA,0),30)>=4;MD:=BACKSET(DEAR>=REF(DEAR,1),2);STICKLINE((MACDD>0 OR MACDH>0) AND 中线持仓 ,0,7,3,1),COLOR0000FF;STICKLINE((MACDC>=0 OR MACDH>=0) AND 中线持仓AND (DXB OR DXC OR DXD OR DXE) AND MD,1,12,2.2,0),COLORCC88FF;STICKLINE((MACDD<=0 OR MACDC<=0) AND 中线空仓,100,94,3.8,1),COLORAA7777;MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;STICKLINE(C>=MCST,12,19,1,1),COLOR00EEFF;。

通达信葛南维中线必用主图指标公式

通达信葛南维中线必用主图指标公式

通达信葛南维中线必用主图指标公式短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;中线:=MA(CLOSE,33),LINETHICK1;中趋势线:MA(CLOSE,55),LINETHICK1,COLORGRAY;年线:MA(CLOSE,250),LINETHICK1,COLORLIGRAY,POINTDOT;涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;上极限:=((C-REF(MA(CLOSE,20),1))/20+短趋势线)*1.20;DRAWTEXT(CROSS(CLOSE,上极限),H*1.02,'减仓'),COLORGREEN;DRAWTEXT(CROSS(CLOSE,MA(C,13)) AND 短趋势线<REF(短趋势线 ,1) AND 短趋势线<中趋势线 ,H*1.02,'减仓'),COLORGREEN;DRAWTEXT(CROSS(短趋势线,C) AND INDEXC>MA(INDEXC,13) AND 短趋势线>REF(短趋势线,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L*0.97,'买入'),COLORRED;STICKLINE(CROSS(短趋势线,C) AND 短趋势线>REF(短趋势线 ,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L,L*0.99,2,0),COLORYELLOW;VAR1:=((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;DRAWTEXT(VAR1>9 AND V<REF(V,1) AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'洗盘'),COLORYELLOW;DRAWTEXT(VAR1>9 AND V>REF(V,1) AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'减仓'),COLORGREEN;DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),H*1.06,'卖出'),COLORYELLOW;VAR2:=HHV(VAR1>20,10);DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18) AND V>REF(V,1),L*0.98,'反弹'),COLORRED;DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),L*0.95,'抄底'),COLORYELLOW;DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLO SE,20)),H*1.1,'危险'),COLORYELLOW;VAR12:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR12) * VOL);VAR7:=((VAR4 / VAR12) * VOL);VAR8:=((VAR5 / VAR12) * VOL);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND 短趋势线>REF(短趋势线 ,1) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)) ,L*0.98,'主力介入'),COLORMAGENTA;。

通达信最牛短线波段主图指标公式

通达信最牛短线波段主图指标公式

通达信最牛短线波段主图指标公式ZGD:=HHV(H,90)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L,90);ZDD2:=CONST(ZDD);急速超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND 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:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND 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(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,NODRAW,COLOR0000FF;青观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,NODRAW,COLORFFFF00;短买:VAR19,NODRAW,COLOR33FFCC;品红离场:VAR1A,NODRAW,COLORFF00FF;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2.8,0),COLOR000088;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2.6,0),COLOR000099;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2.4,0),COLOR0000AA;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2.2,0),COLOR0000BB;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2.0,0),COLOR0000CC;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),1.8,0),COLOR0000DD;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),1.5,0),COLOR0000EE;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),1,0),COLOR0000FF;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,LOW,HIGH,0.0,0),COLOR0000FF;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2.8,0),COLOR888800;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2.6,0),COLOR999900;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2.4,0),COLORAAAA00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2,2),COLORBBBB00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2.0,0),COLORCCCC00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),1.8,0),COLORDDDD00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),1.5,0),COLOREEEE00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),1,0),COLORFFFF00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,LOW,HIGH,0.0,0),COLORFFFF00;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.8,0),COLOR3 3AACC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR3 3AACC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.4,0),COLOR3 3BBCC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,2),COLOR33 CCCC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.0,0),COLOR3 3DDCC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.8,0),COLOR3 3EECC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLOR3 3FFCC;DRAWTEXT(VAR19,REF(CLOSE,1),←短买),COLOR33FFCC;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.8,0),COLORF F33FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.3,0),COLORF F44FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF 55FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.8,0),COLORF F66FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORF F77FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.3,0),COLORF F88FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF 99FF;DRAWTEXT(VAR1A,REF(CLOSE,1)+0.1,←离场),COLORFF99FF;MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+1 6*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7) +12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL, 11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YT SL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YT SL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK2,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;。

通达信波段王指标公式主图_通达信金波段主图指标公式

通达信波段王指标公式主图_通达信金波段主图指标公式

通达信波段王指标公式主图_通达信⾦波段主图指标公式DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORRED;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORRED;DRAWTEXT_FIX(1,0.005,0.06,0,'所属概念:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0.06,0,GNBLOCK),COLORMAGENTA;DRAWTEXT_FIX(1,0.005,0.12,0,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.06,0.12,0,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.11,0.12,0,HYBLOCK),COLORYELLOW;YSTB:=STRCAT(CON2STR(FINANCE(44)/1,2),'%');LRTB:=STRCAT(CON2STR(FINANCE(43)/1,2),'%');DRAWTEXT_FIX(1,0.7,0,0,'营收同⽐:'),COLORWHITE;DRAWTEXT_FIX(1,0.76,0,0,YSTB),COLORWHITE;DRAWTEXT_FIX(1,0.84,0,0,'利润同⽐:'),COLORWHITE;DRAWTEXT_FIX(1,0.9,0,0,LRTB),COLORWHITE;净资收益率:=(FINANCE(33)/FINANCE(34)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);主营业增长率:=FINANCE(44);每股净资产:=CONST(FINANCE(34));每股收益:=CONST(FINANCE(38));净利润增长率:=FINANCE(43);市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));现⾦负债⽐:=(FINANCE(25)/FINANCE(15));每股未分配:=CONST(FINANCE(32));每股公积⾦:=CONST(FINANCE(18));SY01:=净资收益率>3;SY02:=净资收益率>0.01 AND 净资收益率<=3;SY03:=主营利润率>2;SY04:=主营利润率>0;SY05:=主营业增长率>1;SY06:=主营业增长率>0;SY07:=净利润增长率>2;SY08:=净利润增长率>0.2;SY09:=每股收益>0.01;SY10:= 每股收益>0.001;SY11:=每股净资产>2;SY12:=每股净资产>0.01;SY13:=每股未分配>0.5;SY14:=每股未分配>0.001;SY15:=每股公积⾦>0.5;SY16:=每股公积⾦>0.002;SY17:=每股未分配>=2 AND 每股公积⾦>=2;SY18:=每股未分配<2 OR 每股公积⾦<2;优秀:=SY01 AND SY03 AND SY05 AND SY07 AND SY09 AND SY11AND SY13 AND SY15;较好:=SY02 AND SY04 AND SY06 AND SY08 AND SY10 AND SY12AND SY14 AND SY16;⼀般:=NOT(优秀) AND NOT(较好);DRAWTEXT_FIX(优秀 AND 较好=0,0.7,0.05,0,'综合评估基本⾯:优秀!'),COLORMAGENTA; DRAWTEXT_FIX(较好,0.7,0.05,0,'综合评估基本⾯:较好!'),COLORRED;DRAWTEXT_FIX(⼀般,0.7,0.05,0,'综合评估基本⾯:⼀般!'),COLORGREEN;DRAWTEXT_FIX(SY17,0.84,0.05,0,'是否具备⾼送转潜⼒:是!'),COLORMAGENTA; DRAWTEXT_FIX(SY18,0.84,0.05,0,'是否具备⾼送转潜⼒:否!'),COLORGREEN;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05AND REF(C,1)O AND C/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.95,'追!'),COLORYELLOW;VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);VAR2:=8;CC:=CROSS(VAR1,VAR2);DRAWTEXT(CC,L*0.95,'买!'),COLORMAGENTA;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))<=20 AND REF(MA(C,21),1)TJ1:=OTJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 AND MA(C,144)>MA(C,250) AND VV;TJ3:=REF(MA(C,250),90)MA(C,250) AND O>MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 AND REF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 AND HHV(H,5)/LLV(L,30)>=1.65 AND REF(H,5)/REF(L,1)>=1.15 AND REF(C,1)/REF(O,1)<=0.995 AND (L=2) AND O/REF(L,1)<=1.04OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 AND REF(L,1)/REF(O,4)<=0.85 AND REF(C,1)/REF(O,1)<=1.03 AND O1.35 AND VTOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 ANDHHV(H,4)/LLV(L,16)>=1.35 AND REF(O,4)/REF(C,2)>=1.08 AND REF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)=2) AND LOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)DATOUJI:=TYP1 AND TJ3 AND O=1.17 AND HHV(H,10)/LLV(L,30)>1.4 AND (MA(V,10)/HHV(V,10)>0.5 ANDV/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02;DATOUJI1:=TYP1 AND TJ3 AND ODRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;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;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;DRAWICON(突破盘整,L-0.10,1);红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(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));DRAWICON(加仓,L*0.97,7);DRAWICON(CROSS(波段底,3),L*0.97,1);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.2,'买'),COLORRED;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50;加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,3),LOW-0.1,'加'),COLOR0080FF; MA18:=MA(C,18);跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;买价:=((C-REF(MA5,1))/5+MA5)*1.004;买条件:=CROSS(C,买价) AND 买价>REF(买价,1);醉⽩K买进:IF(买条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA10,1))/20+MA10)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;DRAWTEXT_FIX(1,0.0,0.15,0,'在上升过程中, ⽩线出现在红线下⽅明显分开则卖出!'),COLORMAGENTA;。

通达信波段主图指标公式,源码简洁原理却不简单

通达信波段主图指标公式,源码简洁原理却不简单

通达信波段主图指标公式,源码简洁原理却不简单通达信波段主图指标公式的核心语句也就4句,后面的语句都是为了画图的。

公式看起来比较简单,原理也比较巧妙,但是理解起来有些困难。

直接上源码:HH:=HHV(H,5);LL:=LLV(L,5);TH:=BARSLAST(H>REF(HH,1));TL:=BARSLAST(L<REF(LL,1));IF(TH<TL,LL,DRAWNULL),DOTLINE,COLORMAGENTA;IF(TH>TL,HH,DRAWNULL),DOTLINE,COLORGREEN;STICKLINE(C>O ANDTH<TL,H,L,0,1),COLORRED;STICKLINE(C>O ANDTH<TL,C,O,3,1),COLORRED;STICKLINE(C<O ANDTH<TL,H,L,0,0),COLORRED;STICKLINE(C<O ANDTH<TL,C,O,3,0),COLORRED;STICKLINE(C<O ANDTH>TL,H,L,0,0),COLORCYAN;STICKLINE(C<O ANDTH>TL,C,O,3,0),COLORCYAN;STICKLINE(C>O ANDTH>TL,H,L,0,1),COLORCYAN;STICKLINE(C>O ANDTH>TL,C,O,3,1),COLORCYAN;一、波段指标公式核心语句HH:=HHV(H,5);表示5日高点,下图中的绿色虚线就是5日高点连成的线;LL:=LLV(L,5);表示5日低点,下图中的洋红色虚线就是5日低点连成的线。

H>REF(HH,1)表示最高价大于前一天对应的5日最高点,TH:=BARSLAST(H>REF(HH,1));就表示满足这个条件距离当天的周期数。

通达信信号主图指标公式(带分笔分段)

通达信信号主图指标公式(带分笔分段)

通达信信号主图指标公式(带分笔分段)通达信信号主图指标公式(带分笔分段)N:=10;N1:=5;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:=CROSS(RSI,11);{DRAWTEXT(低吸,L,'★'),COLORWHITE;}DRAWTEXT(低吸,L-0.12,'低吸'),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;DRAWTEXT(FILTER(VARB,6),L-0.14,'坚决买进'),COLORFF00FF;{DRAWTEXT(FILTER(VARB,6),L,'★'),COLORFF00FF;}VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);{DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),L,'★'),COLORYELLOW;}DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),L-0.14,'出击'),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),H*1.02,H*1.00,6,0),COLOR00FF00;DRAWTEXT(CROSS(天线,多方趋势),H*1.04,'逃'),COLOR00FF00;A1:=REF(H,N)=HHV(H,2*N+1);B:=FILTER(A1,N);D:=BACKSET(B,N+1);HD:=FILTER(D,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);DD2:=BACKSET(B2,N+1);LD:=FILTER(DD2,N);STICKLINE(REF(HD,1),REF(H,1),REF(H,1),18,0),COLOR00FF00, LINETHICK3;STICKLINE(REF(LD,1),REF(L,1),REF(L,1),18,0),COLOR0000FF,LI NETHICK3;DRAWTEXT(REF(LD,1),REF(L,1)-0.01,'●进'),COLOR0000FF;DRAWTEXT(REF(HD,1),REF(H,1)+0.05,'▲跑'),COLOR00FF00;短期:= MA(AMOUNT/VOL/100,22.5);中期:= MA(AMOUNT/VOL/100,44);长期:= MA(AMOUNT/VOL/100,118);VAR2:=EMA(EMA(AMOUNT/VOL/100,N1)*1.062,N1)*1.062;VAR3:=EMA(EMA(AMOUNT/VOL/100,N1)*0.938,N1)*0.938;{DRAWTEXT(CLOSE>VAR2,CLOSE,'●短卖'),COLOR00FF00;}{DRAWTEXT(CLOSE<VAR3,CLOSE,'●短买'),COLORRED;}STICKLINE(CLOSE>短期,短期,短期,2,0),COLOR00FF00;STICKLINE(短期>CLOSE,短期,短期,2,0),COLORFFCCCC;STICKLINE(短期>CLOSE AND 中期>CLOSE,短期,短期,2,0),COLOR0099FF;VAR4:=CLOSE>短期 AND ABS(短期-长期<=1) AND CROSS(短期,中期);BRSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;BK:=SMA(BRSV,3,1);BD:=SMA(BK,3,1);BJ:=3*BK-2*BD;X1:=REF(H,1)-REF(H,2)>=REF(H,1)*1.03;X2:=CLOSE/OPEN>1.05 AND C-REF(C,1)>=X1;X3:=X2+REF(C,1);DRAWTEXT(X2 AND X3 AND BJ>80,H+0.15,'顶'),COLOR00FF00;{DRAWTEXT(X2 AND X3 ANDBJ>80,H+0.09,'●'),COLORGREEN;};KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF(LOW=LLV(LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));HV:=H>UL AND H>REF(H,1) ;LV:=L<DL AND L<REF(L,1) ;GP:=BARSLAST(HV);DP:=BARSLAST(LV);IP:=IF(GP=0,DP,GP)>3;HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV));LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));DRAWLINE(LV1,LOW,HV1,HIGH,0),COLORYELLOW,LINETHICK1;DRAWLINE(HV1,HIGH,LV1,LOW,0),COLORYELLOW,LINETHICK1;。

通达信指标公式源码一个波段主升主图

通达信指标公式源码一个波段主升主图

(有未来函数,使用需谨慎)AAF:=LLV(LOW,34);BBF:=MA(AAF,4);TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1);CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2);CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3);CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4);CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5);CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;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(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(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;短线:=VAR1;中线:=VAR6;{FILLRGN(短线,中线,短线>中线, RGB(255,255,50),短线<中线, RGB(0,0,220));} 下跌:=IF(VAR1=VAR6,VAR6, VAR1);{PARTLINE(下跌,VAR1=VAR6),COLORGREEN;}TJ1:=CCI1>差值4;立桩量:=FILTER(TJ1,0);TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);TJ11:= CCI1<-差值4 ;立桩量2:=FILTER(TJ11,0);TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);立桩量3:=FILTER(TJ111,5);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWICON(条件成立AND 下跌= VAR6{ AND BB13>0},L*0.97,2);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWICON(CROSS(FF,MA15),LOW*0.97,1);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'R背'),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠'),COLORWHITE;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2; 超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2; 上:=EMA(C,3);中:=EMA(C,5);下:=EMA(中,5);QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5);MA13:=MA(CLOSE,13);VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) ORREF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11); {涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 ANDCLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000FF;{绿}STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;{灰}STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF; STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;DRAWICON(VAR16,LOW-0.02,6);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM,LOW-0.05,6); DRAWICON(死叉OR CROSS(50,VAR09) AND QQ AND K>50,HIGH+0.01,2); TTJ:=CROSS(FF,MA15);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG:=XG0 OR XG1;DRAWTEXT(XG,LOW*0.93,'全'),COLORRED;DRAWTEXT(XG,LOW*0.93-0.3,'仓'),COLORRED;GET:ZIG(3,3),COLORYELLOW;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);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF; DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00; DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;{黄金买点}ZZ:=(O+H+L)/3;HJMD:EMA(ZZ,4),COLORYELLOW,LINETHICK1;XXB:=CLOSE*VOL;XXBYM:EMA((EMA(XXB,3)/EMA(VOL,3)+EMA(XXB,6)/EMA(VOL,6)+EMA(XXB,1 2)/EMA(VOL,12)+EMA(XXB,24)/EMA(VOL,24))/4,13),COLORFF00FF,LINETHIC K0;{爱心:=EMA(CLOSE,13)-EMA(CLOSE,55);无价:=EMA(爱心,3);PARTLINE(XXBYM,爱心>=无价,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2; DRAWTEXTREL(700,120,'今日买点:'+NUMTOSTRN(HJMD,2 )),LINETHICK2,COLORYELLOW; };。

波段线主图源码通达信指标公式源码

波段线主图源码通达信指标公式源码

神奇的波段指标红绿线表示多空波段包含了短期支撑压力提示BS和止损价还加入了一个单阳不破的提示会提示用到未来数据,是画线时使用的,不影响其他{波段线(通达信主图)}N:=20;N1:=7;N2:=79;MA7:MA(C,7),COLORMAGENTA,LINETHICK2;MA89:MA(C,89),COLORBLUE,LINETHICK2;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4; A2:=EMA(A1,2);A3:=EMA(A2,2);A4:=EMA(A3,2);A5:=EMA(A4,2);A6:=EMA(A5,2);A7:=EMA(A6,2);IF(A1>REF(A1,1),A1,DRAWNULL),COLORRED;IF(A1<REF(A1,1),A1,DRAWNULL),COLORGREEN;IF(A2>REF(A2,1),A2,DRAWNULL),COLORRED;IF(A2<REF(A2,1),A2,DRAWNULL),COLORGREEN;IF(A3>REF(A3,1),A3,DRAWNULL),COLORRED;IF(A3<REF(A3,1),A3,DRAWNULL),COLORGREEN;IF(A4>REF(A4,1),A4,DRAWNULL),COLORRED;IF(A4<REF(A4,1),A4,DRAWNULL),COLORGREEN;IF(A5>REF(A5,1),A5,DRAWNULL),COLORRED;IF(A5<REF(A5,1),A5,DRAWNULL),COLORGREEN;IF(A6>REF(A6,1),A6,DRAWNULL),COLORRED;IF(A6<REF(A6,1),A6,DRAWNULL),COLORGREEN;IF(A7>REF(A7,1),A7,DRAWNULL),COLORRED;IF(A7<REF(A7,1),A7,DRAWNULL),COLORGREEN;压力:HHV(MA((L+H+C)/3,5),60),COLORCYAN,LINETHICK2;JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);DRAWICON(REF(A<B,1) AND A>B,L*0.98,1);{DRAWTEXT(REF(A<B,1) AND A>B,L,'--------------B'), COLORYELLOW;}M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);M13:=EMA(M8,13);M55:=EMA(M8,55);VAR1B:=EMA(M13,55);M81:=EMA(M55,81);M6:=EMA(VAR1B,144), COLORRED,LINETHICK2;VAR2B:=(REF(HIGH,1)+REF(LOW,1))/2;VAR3B:=MA(CLOSE,N)+2*STD(CLOSE,N);DRAWICON(CROSS(VAR2B,VAR3B),HIGH+0.1,2);VAR4B:=REF(CLOSE,1);VAR5B:=SMA(MAX(CLOSE-VAR4B,0),N1,1)/SMA(ABS(CLOSE-VAR4B),N1,1)*100; VAR6B:=CROSS(N2,VAR5B);VAR7B:=FILTER(VAR6B,4);DRAWICON(VAR7B,HIGH+0.1,2);ZTJZ:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(ZTJZ AND COUNT(ZTJZ,13)>=1,C,O,1,0),COLORYELLOW; DRAWTEXT(ZTJZ AND COUNT(ZTJZ,13)>=1,H*1.015,''),COLORYELLOW,LINETHICK1; DRAWTEXT(ZTJZ AND COUNT(ZTJZ,13)>=1,H*1.028,''),COLORYELLOW;YZFZ:=4;YBLZ:=1.90;DYKX:=C>O*(1+YZFZ/100) AND VOL>REF(VOL,1)*YBLZ;LS0:=BARSLAST(DYKX);BPJZ:=REF(L,LS0);DRAWTEXT(DYKX,L-L*0.02,'阳'),COLOR00FFFF;WZX1:=BPJZ *0.998;WZX2:=BPJZ *0.98;LS11:=IF(1,LS0=1,DYKX);LS21:=IF(1,LLV(L,1)>REF(L,1),1);DYBP:=LS11 AND LS21;STICKLINE(DYBP,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP,WZX2,'1'),COLORGREEN;LS12:=IF(2,LS0=2,DYKX);LS22:=IF(2,LLV(L,2)>REF(L,2),1);DYBP2:=LS12 AND LS22;STICKLINE(DYBP2,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP2,WZX2,'2'),COLORGREEN;LS13:=IF(3,LS0=3,DYKX);LS23:=IF(3,LLV(L,3)>REF(L,3),1);DYBP3:=LS13 AND LS23;STICKLINE(DYBP3,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP3,WZX2,'3'),COLORGREEN;LS14:=IF(4,LS0=4,DYKX);LS24:=IF(4,LLV(L,4)>REF(L,4),1);DYBP4:=LS14 AND LS24;STICKLINE(DYBP4,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP4,WZX2,'4'),COLORGREEN;LS15:=IF(5,LS0=5,DYKX);LS25:=IF(5,LLV(L,5)>REF(L,5),1);DYBP5:=LS15 AND LS25;STICKLINE(DYBP5,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP5,WZX2,'5'),COLORGREEN;LS16:=IF(6,LS0=6,DYKX);LS26:=IF(6,LLV(L,6)>REF(L,6),1);DYBP6:=LS16 AND LS26;STICKLINE(DYBP6,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP6,WZX2,'6'),COLORGREEN;LS17:=IF(7,LS0=7,DYKX);LS27:=IF(7,LLV(L,7)>REF(L,7),1);DYBP7:=LS17 AND LS27;STICKLINE(DYBP7,WZX1,BPJZ,4,0),COLORMAGENTA; DRAWTEXT(DYBP7,WZX2,'7'),COLORGREEN;LS18:=IF(8,LS0=8,DYKX);LS28:=IF(8,LLV(L,8)>REF(L,8),1);DYBP8:=LS18 AND LS28;STICKLINE(DYBP8,WZX1,BPJZ,4,0),COLORMAGENTA;DRAWTEXT(DYBP8,WZX2,'8'),COLORGREEN;LS19:=IF(9,LS0=9,DYKX);LS29:=IF(9,LLV(L,9)>REF(L,9),1);DYBP9:=LS19 AND LS29;STICKLINE(DYBP9,WZX1,BPJZ,4,0),COLORMAGENTA;DRAWTEXT(DYBP9,WZX2,'9'),COLORGREEN;LS110:=IF(10,LS0=10,DYKX);LS210:=IF(10,LLV(L,10)>REF(L,10),1);DYBP10:=LS110 AND LS210;STICKLINE(DYBP10,WZX1,BPJZ,4,0),COLORMAGENTA;DRAWTEXT(DYBP10,WZX2,'10'),COLORGREEN;DIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,6);TCMACD:=2*(DIF-DEA);GD1:=EVERY(DIF>REF(DIF,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA;GD2:=EVERY(TCMACD>REF(TCMACD,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA; GD:=MAX(GD1,GD2);GDWZ1:=REF(MAX(C,O),BARSLAST(GD1)+1);GDWZ2:=REF(MAX(C,O),BARSLAST(GD2)+1);GDWZ:=IF(GDWZ2>=GDWZ1,GDWZ2,GDWZ1);AA:=HHV(IF(C>O,C,MAX(C,O)),BARSLASTCOUNT(GDWZ)+1)=HHV(IF(C>O,C,MAX(C,O)) ,BARSLASTCOUNT(BBI>REF(BBI,1)AND C>BBI));AA1:=REF(CLOSE,1);压力2:DRAWLINE(BARSLAST(AA)=0,IF(C>O,C,MAX(C,O)),BARSNEXT(AA),REF(IF(C>O,C,MAX (C,O)),BARSLAST(AA)),1),DOTLINE,COLORYELLOW;LD1:=EVERY(DIF<REF(DIF,1),BARSLASTCOUNT(DIF<DEA))AND DIF<DEA;LD2:=EVERY(TCMACD<REF(TCMACD,1),BARSLASTCOUNT(DIF<DEA))AND DIF<DEA; LD:=MIN(LD1,LD2);DDWZ1:=REF(MIN(C,O),BARSLAST(LD1)+1);DDWZ2:=REF(MIN(C,O),BARSLAST(LD2)+1);DDWZ:=IF(DDWZ2<=DDWZ1,DDWZ1,DDWZ2);BB:=LLV(IF(C<O,C,MIN(C,O)),BARSLASTCOUNT(LD)+1)=LLV(IF(C<O,C,MIN(C,O)),BARS LASTCOUNT(DIF<REF(DIF,1) AND BBI<REF(BBI,1)}AND L<BBI));ZCWZ:DRAWLINE(BARSLAST(BB)=0,IF(C<O,C,MIN(C,O)),BARSNEXT(BB),REF(IF(C<O,C, MIN(C,O)),BARSLAST(BB)),1),DOTLINE,COLORGREEN;DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95*1.015,HHV(C,5)*0.95),COLORWHITE; STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,50,0),COLORWHITE;DRAWTEXT(ISLASTBAR,HHV(C,5)*0.95*0.99,'止损价位'),COLORWHITE;MA60:=MA(C,60);GLV60:=(C-MA60)/MA60*100;DRAWTEXT_FIX(1,0.05,0.1,0,STRCAT('乖离率: ',CON2STR(GLV60,2))),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.1,0,STRCAT(DYBLOCK,STRCAT('--',STRCAT(HYBLOCK,STRCAT( '--',GNBLOCK))))),COLORYELLOW;DRAWTEXT_FIX(1,0.05,0.15,0,STRCAT('市盈率:',CON2STR(DYNAINFO(39),2))),COLORRED;DRAWTEXT_FIX(1,0.15,0.15,0,STRCAT('市净率:',CON2STR(C/FINANCE(34),2))),COLORRED;。

通达信最好用的划线趋势通道主图指标公式

通达信最好用的划线趋势通道主图指标公式

通达信最好用的划线趋势通道主图指标公式N:=2,200,13;UR:=2,200,6;LR:=2,200,6;TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}LR1:=FORCAST(C,NOD+1);NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点}LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点}EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8;AD:=ABS(NP-FP);{高差};DBL:=BARSLAST(BC1!=DRAWNULL)+1;DBH:=BARSLAST(TC1!=DRAWNULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);AT2:=HHV(AT1-LRL,MAX(BC2,TC2));AT3:=CONST(BARSLAST(AT1-LRL=AT2));AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));ATL:=LRL+AT5;UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MAX(BC2,TC2));UT3:=CONST(BARSLAST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高} RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962;上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLOR628962;下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLOR628962;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=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,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORMAGENTA,LINETHICK1; DRAWLINE(HD,H,LD,L,0),COLORMAGENTA,LINETHICK1;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LINETHICK1;。

通达信精准短波主图指标公式

通达信精准短波主图指标公式

通达信精准短波主图指标公式MA13:MA(C,13);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);MA240:MA(C,240);XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●进'),COLORYELLOW;DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝底');X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大出'),LINETHICK1,COLORWHITE;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;AA:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);A0:=(AH-AL)/40;B1:=L-A0;STICKLINE((AA+0)/34=FLOOR((AA+0)/34),B1,B1-1.5*A0,3,0),COLORYELLOW;DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),B1-3*A0,'变盘'),COLORF00FF0;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<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2))AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 <V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.08),'该股缩量下跌,走势偏弱,离场观望。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档