DKG:=((MA((((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))
-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137)*0.3+L*0.7)+H)/2,4))
+((MA((HHV(L,3)+LLV(H,3))/2,2))))/2;
AK:=((((((EMA((EMA((((C+H)/2)-(LLV(LOW,18)))/((HHV(HIGH,18))
-(LLV(LOW,18)))*(L*0.173),7))+(L*0.9137),13))-(EMA((EMA((EMA((((C+H)/2)
-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))
+(L*0.9137),13)),7)))/(EMA((EMA((EMA((((C+H)/2)
-(LLV(LOW,18)))/((HHV(HIGH,18))-(LLV(LOW,18)))*(L*0.173),7))
+(L*0.9137),13)),7))*10)+((MA((HHV(L,3)
+LLV(H,3))/2,2))))*0.99)+((MA((HHV(L,3)+LLV(H,2))/2,2))))/2;
底部线:=(LLV(REF((1.5*(REF(MA(CLOSE,6),1))-0.5
*(MA(CLOSE,6)*1.013)),1),17))*0.98;
K顶底:=(SLOPE((DKG),7)*1.78+(DKG*0.63+AK*0.37));
STICKLINE(底部线 K顶底,底部线*1.03,K顶底,6,0),COLORDD3311;
{C前高}
M5:=MA(CLOSE,5); M20:=MA(CLOSE,20);
SR1:=REF(HIGH,20)=HHV(HIGH,2*20+1);
SR2:=FILTER(SR1,20); SR3:=BACKSET(SR2,20+1);
HD:=FILTER(SR3,20); 前高:=REF(H,BARSLAST(HD));
{}
PH:=((((HHV((HHV((REF((EMA(C,6)),1)-((LLV((HHV((REF(EMA(C,7),1)
-(EMA(C,3))),31)),1)))),2)),31))
+(HHV((HHV((REF((EMA(((MA((HHV(L,8)+LLV(H,8))/2,2))),6)),1)
-((LLV((HHV((REF(EMA(((MA((HHV(L,8)+LLV(H,8))/2,2))),7),1)
-(EMA(L,3))),11)),11)))),2)),27)))/2)),POINTDOT;
PHH:=PH*1.057; PL:=PH*0.93;
底中:DRAWBAND(底部线,RGB(10,10,90),PL,RGB(70,80,10));
DRAWBAND(PHH,RGB(80,80,70),PL,RGB(10,10,10));
STICKLINE(C 前高,PHH,PL,6,0),COLOR256161;
TZK:=MA((1.8*((LLV(H,3)+EMA(C,4))/2))
-((((HHV(((LLV(H,7)+EMA(C,5))/2),2))
+((LLV(H,3)+EMA(C,4))/2))/2)*0.8),2);
STICKLINE(C O,L,H,0,0),COLORCYAN;
STICKLINE(C =O,L,H,0,0),COLOR1111DD;
STICKLINE(C =O,C,O,3,0),COLOR1111DD;
STICKLINE(C O,C,O,3,0),COLORFFCC11;
STICKLINE((C =TZK),L,H,0,0),COLOR1111FF;
STICKLINE((C =TZK),O,C,2.6,0),COLOR1111CC;
STICKLINE((C =TZK),O,C,2,0),COLOR111199;
STICKLINE((C =TZK),O,C,1.2,0),COLOR1111AA;
STICKLINE((C =TZK),O,C,0.4,0),COLOR1111CC;
STICKLINE((C =TZK),O,C,2.4,0),COLOR117711;
STICKLINE((C TZK),O,C,1.8,0),COLOR118811;
STICKLINE((C TZK),O,C,1.2,0),COLOR119911;
STICKLINE((C TZK),O,C,0.6,0),COLOR11AA11;
STICKLINE((C TZK AND C O),O,C,1.7,0),COLOR999999;
STICKLINE((C TZK AND C O),O,C,0.6,0),COLORAAAAAA;
M1:=(((HHV(((LLV(H,7)+EMA(C,5))/2),2))+((LLV(H,3)+EMA(C,4))/2))/2);
HX:=((LLV(H,3)+EMA(C,4))/2);
HZ:MA((1.8*HX-(M1)*0.8),2),COLORYELLOW;
ML:=LLV(HZ,11),COLOR119911;
MH:HHV(LLV(HZ,11),11),COLORFF9900;
MZ:HHV(LLV(HZ,11),3),COLORFFDDCC;
STICKLINE((HZ REF(HZ,1) AND MH MZ AND CROSS(C,M1)),O,C,3,1),COLORFFFFFF;
STICKLINE((HZ REF(HZ,1) AND MH MZ AND CROSS(C,M1)),O,C,1,1),COLORFFFFFF;
MGL:=(M1-MH)/MH*100;
SC:=CROSS(C,HZ) AND CROSS(C,MH);
STICKLINE((MGL 3 AND MH=ML AND HZ M1
AND CROSS(C,M1)) AND HZ REF(HZ,1) OR SC AND HZ REF(HZ,1),O,C,1.3,1),COLORYELLOW;
STICKLINE(底部线 K顶底 AND CROSS(C,HZ) AND HZ REF(HZ,1),O,C,3,1),COLORYELLOW;
STICKLINE(底部线 K顶底 AND CROSS(C,HZ) AND HZ REF(HZ,1),O,C,1,1),COLORYELLOW;
S:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
中强:IF(S =REF(S,1),HZ,DRAWNULL),LINETHICK1,COLORFF00DD;
中弱:IF(HZ REF(HZ,1),HZ,DRAWNULL),LINETHICK1,COLORCYAN;