1.主图趋势线:JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);STICKLINE(AB,A,B,5,0),COLORYELLOW;STICKLINE(AB,A,B,5,0),COLORBLUE;2.主图顶低:V1:MA(CLOSE,5);V2:MA(CLOSE,10);STICKLINE(V1V2&&CLOSE=OPEN,OPEN,CLOSE,COLORRED,1);DRAWLINE(V1V2&&CLOSE=OPEN,OPEN,V1V2&&CLOSE=OPEN,LOW,COLORRED);DRAWLINE(V1V2&&CLOSE=OPEN,HIGH,V1V2&&CLOSE=OPEN,CLOSE,COLORRED);STICKLINE(V1V2&&CLOSEOPEN,OPEN,CLOSE,COLORRED,0);DRAWLINE(V1V2&&CLOSEOPEN,HIGH,V1V2&&CLOSEOPEN,LOW,COLORRED);STICKLINE(V1V2&&CLOSE=OPEN,OPEN,CLOSE,COLORGREEN,1);DRAWLINE(V1V2&&CLOSE=OPEN,OPEN,V1V2&&CLOSE=OPEN,LOW,COLORGREEN);DRAWLINE(V1V2&&CLOSE=OPEN,HIGH,V1V2&&CLOSE=OPEN,CLOSE,COLORGREEN);STICKLINE(V1V2&&CLOSEOPEN,OPEN,CLOSE,COLORGREEN,0);DRAWLINE(V1V2&&CLOSEOPEN,HIGH,V1V2&&CLOSEOPEN,LOW,COLORGREEN);3.副图长中短:A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888,COLORBLUE;中期线:D+100,COLORYELLOW,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;见顶:=((REF(中期线,1)85ANDREF(短期线,1)85ANDREF(长期线,1)65)ANDCROSS(长期线,短期线)),COLORGREEN;顶部区域:(中期线REF(中期线,1)ANDREF(中期线,1)80)AND(REF(短期线,1)95ORREF(短期线,2)95)AND长期线60AND短期线83.5AND短期线中期线AND短期线长期线+4,COLORGREEN;顶部:=FILTER(顶部区域,4);STICKLINE({见顶OR}顶部,99,103,20,1),COLORRED,LINETHICK2;底部区域:(长期线12AND中期线8AND(短期线7.2ORREF(短期线,1)5)AND(中期线REF(中期线,1)OR短期线REF(短期线,1)))OR(长期线8AND中期线7AND短期线15AND短期线REF(短期线,1))OR(长期线10AND中期线7AND短期线1),COLORGREEN;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;低位金叉:50*(长期线15ANDREF(长期线,1)15AND中期线18AND短期线REF(短期线,1)ANDCROSS(短期线,长期线)AND短期线中期线AND(REF(短期线,1)5ORREF(短期线,2)5)AND(中期线=长期线ORREF(短期线,1)1)),COLORRED;STICKLINE(低位金叉,0,5,11,0),COLORRED;4.副图配合资金: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;买:=IF(J0,10,0);条件:=CROSS(9.9,买);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=LLV(LOW,5);VAR3:=HHV(HIGH,5);VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);MA1:=MA(VAR4,2);STICKLINE1(VAR4MA1,VAR4,MA1,6,1),COLORRED;STICKLINE1(VAR4MA1ANDREF(VAR4,1)30,VAR4,MA1,6,1),COLORRED;STICKLINE1(VAR4=MA1,VAR4,MA1,6,1),COLORFFCC66;DRAWICON(CROSS(9.9,买),VAR4-12,4);STICKLINE1(CROSS(9.9,买),VAR4+5,MA1-4,6,1),COLORYELLOW;STICKLINE1(VAR4MA1ANDREF(VAR4,1)30,VAR4+5,MA1-4,6,1),COLORYELLOW;5.副图趋势抄底:趋势:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK1,COLOR7F52AF;趋势1:EMA(MA(趋势,5),3),LINETHICK1,COLORA6B8C1;STICKLINE(趋势=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势108AND趋势=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1108AND趋势趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势0AND趋势趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势10AND趋势趋势1,趋势1,0,5,0),COLORF0F000;V1:=MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:=MA(CLOSE,5)MA(CLOSE,20);V3:=COUNT(MA(CLOSE,1)REF(CLOSE,1),3)=3;风险:IF(V1ANDV2ANDV3,30,0),LINETHICK1,COLORSTICK,COLOR00FF00;V11:=MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:=MA(CLOSE,5)MA(CLOSE,120);V31:=COUNT(MA(CLOSE,1)REF(CLOSE,1),3)=3;风险1:IF(V11ANDV21ANDV31,60,0),LINETHICK1,COLORSTICK,COLORF0F000;底部:5,LINETHICK1,COLOR00FFFF;抄底:IF(CROSS(趋势,底部),60,0),LINETHICK2,COLORSTICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线:108,LINETHICK1,COLORFF9D00;逃顶:IF(CROSS(天线,趋势),1,0),LINETHICK1,COLORSTICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;6.副图趋势拉升:趋势: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),COLORFF00FF,LINETHICK3;买:IF(趋势=10,15,0),LINETHICK2,COLORFF00FF;DRAWTEXT(趋势=10,10,'买'),COLORFF00FF;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);FILLRGN(VAR12=VAR13,VAR12,VAR13,RGB(255,0,0));FILLRGN(VAR12VAR13,VAR12,VAR13,RGB(255,0,0));A1:=HHV(HIGH,50)/LLV(LOW,100)1.5;A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));A4:=HHVBARS(HIGH,50)LLVBARS(LOW,100);A5:=A1ANDA20.5ANDA30.3ANDA4;A6:=COUNT(A5,20)=1;抢反弹:A6ANDA5;STICKLINE(抢反弹,0,20,4,0),COLOR009999;STICKLINE(抢反弹,0,20,2,0),COLOR00BBBB;STICKLINE(抢反弹,0,20,1,0),COLOR00DDDD;STICKLINE(抢反弹,0,20,0.4,0),COLOR00FFFF;DRAWTEXT(抢反弹,22,'抢反弹'),COLOR00BBFF;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)ANDM120;抄底:IF((MB1),20,0),LINETHICK2,COLORRED;DRAWTEXT(CROSS(MW,M1)ANDM120,22,'★抄底'),COLORRED;卖出:IF(趋势=98,85,95),LINETHICK3,COLOR