DRAWTEXT(CLOSE<下分形 AND REF(CLOSE,1)>REF(下分形,1),H,'卖'),COLORFF0000; {AOAC-K区域}
VAR1:=(HIGH+LOW)/2;
AO:=MA(VAR1,5)-MA(VAR1,34); AC:=AO-MA(AO,5);
VF:=AO>REF(AO,1) AND AC>REF(AC,1),COLORRED; VG:=AOREF(AO,1) AND ACREF(AC,1),COLORGRAY; VJ:=VH OR VI;
STICKLINE(VF AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORRED; STICKLINE(VF AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORRED; STICKLINE(VF,HIGH,LOW,1,0),COLORRED;
STICKLINE(VG AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORGREEN; STICKLINE(VG AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORGREEN; STICKLINE(VG,HIGH,LOW,1,0),COLORGREEN;
STICKLINE(VJ AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORGRAY; STICKLINE(VJ AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORGRAY; STICKLINE(VJ,HIGH,LOW,1,0),COLORGRAY; {平衡线}
P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)>下鄂;
平衡线买:REF(REF(HIGH,1),BARSLAST(P1)),LINETHICK0,COLORWHITE; STICKLINE(CROSS(HIGH,平衡线买) AND LOW>平衡线买,(HIGH+LOW)/2,(HIGH+LOW)/2,4,0),COLORWHITE;
STICKLINE(CROSS(HIGH,平衡线买) AND LOW<=平衡线买,平衡线买,平衡线买,4,0),COLORWHITE;
P2:=REF(LOW,1) 平衡线卖:REF(REF(LOW,1),BARSLAST(P2)),LINETHICK0,COLORCYAN; STICKLINE(CROSS(平衡线卖,LOW) AND HIGH<平衡线卖,(HIGH+LOW)/2,(HIGH+LOW)/2,4,0),COLORCYAN; STICKLINE(CROSS(平衡线卖,LOW) AND HIGH>=平衡线卖,平衡线卖,平衡线卖,4,0),COLORCYAN; DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),COLORRED; DRAWTEXT(ISLASTBAR AND AOREF(AO,1) AND ACREF(AC,1),Y,'↓AO↑AC'),COLORWHITE; 多空之王 DKX:=(EMA(C,18)),POINTDOT; STICKLINE(((C >=DKX) AND (C >= O)),H,L,0,1),COLORRED; STICKLINE(((C >=DKX) AND (C >= O)),O,C,2,1),COLORRED; STICKLINE(((C >=DKX) AND (C <= O)),H,L,0,0),COLORRED; STICKLINE(((C >=DKX) AND (C <= O)),O,C,2,0),COLORRED; STICKLINE(((C VAR5:=(((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*100); 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((VAR9>100),(VAR9-100),0); VAR11:=HHV(HIGH,34); VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),15); VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2); MA11:=EMA(VAR13,5); DRAWTEXT(CROSS(VAR12-VAR13,0),L-1,'多'); DRAWTEXT(CROSS(0,VAR12-VAR13),H+1,'空');