临界点:1,COLORBROWN,DOTLINE;
临界点1:-1,COLORBROWN,DOTLINE;
AA:=Ema(IF(REF(LOW,1)-LOW>0 AND REF(LOW,1)-LOW>HIGH-REF(HIGH,1),REF(LOW,1)-LOW,0),15);
AB:=ema(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),15);
ac:=EMA(IF(HIGH-REF(HIGH,1)>0 AND HIGH-REF(HIGH,1)>REF(LOW,1)-LOW,HIGH-REF(HIGH,1),0),15);
AX:=((AC-AA)+((AC/AB)*(AA/AB-AC/AB)/100))/AC,COLORCYAN;{股票之友自创核心算法}
AY:=((AA/AB)*(AA/AB-AC/AB)/100+(AC-AA))/AA,COLORWHITE;{股票之友自创核心算法}
AXX:IF(AX>-2,AX,-2),COLORLIGREEN;
AYY:IF(AY<2,AY,2),COLORLICYAN;
DRAWICON(crOSS(AYY,1),0.5,1);
DRAWICON(CROSS(-1,AXX),-0.5,2);
0,COLORYELLOW,DOTLINE;