空方防守价:=EMA(HIGH,4),NODRAW;
0 L. X/ d( _( m" ]4 Z- u多方防守价:=EMA(LOW,5),NODRAW;6 Z4 r. s. A ~- s
B1:=IF(CROSS(CLOSE,空方防守价),1,IF(CROSS(多方防守价,CLOSE),-1,0));8 @" c' s1 ^: V
B2:=REF(B1,BARSLAST(B1));
; p" O/ r5 ]: J0 L- fB3:=IF(B2=1,多方防守价,IF(B2=-1,空方防守价,0));: D' c$ `) Y& _6 y0 T. S
分界点:B3,NODRAW;7 l0 m" ^3 i, O- [5 T5 j* q4 u: E
MA1:=B3;1 }4 p$ Y' `8 ]& i
C1:=(ABS(CLOSE-MA1))/CLOSE;
( V! q6 [ t f. j nJ:=(HHV(C1,160)+LLV(C1,160))/1.7;
( Y2 H- Z( f5 r1 I. ZCC:=IF(C12*J,5,0)))));5 r1 }( g: R2 C; W5 g
STICKLINE(CLOSE>MA1,0,CC,2.5,0),COLORRED;# L7 f% ?( ^2 U
STICKLINE(CLOSE>MA1 AND CC>3,3,CC,2.5,0),COLORCYAN;
9 |7 E2 G; v& R* ] I |STICKLINE(CLOSE=MA1 AND ISLASTBAR=1,1,' ←多↑'),COLORLIMAGENTA;
( ~3 O0 T7 [! h; S! tDRAWTEXT(CLOSE |