
MA5:=MA(C,5);
超买:3.2,COLORCYAN;
超卖:0.5,COLORCYAN;
中位线:=1.75;
最小值:=LLV(LOW,10);
最大值:=HHV(HIGH,25);
CC:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4);
BB:EMA(CC,3);
AA:=BB>=REF(BB,1);
DD:=CLOSE>MA(CLOSE,20)AND CLOSE>MA(CLOSE,5);
EE:=CLOSE<MA(CLOSE,10)AND CLOSE<MA(CLOSE,5);
量:=VOL>MA(VOL,5);
STICKLINE(BB>=REF(BB,1),CC,REF(CC,1),1,0),COLORRED;
DRAWTEXT_FIX(1,0,1,0,'公众号:股市擒牛公式'),COLORMAGENTA;
STICKLINE(BB<REF(BB,1),CC ,REF(CC,1),1,0),COLORGREEN;
D:=AA=1 AND REF(AA,1)=0 AND (REF(AA,2)+REF(AA,3)=0) AND BB<0.5;
S:=AA=1 AND REF(AA,1)=0 AND (REF(AA,2)+REF(AA,3)=0) AND DD=1 AND REF(DD,1)=0 AND 量=1;
DDD:=BB>2 AND (AA=0 AND REF(AA,1)=1) AND (REF(AA,2)+REF(AA,3)=2);
TZ:=(AA=0 AND REF(AA,1)=1) AND (REF(AA,2)+REF(AA,3)=2) AND MA5<0 AND EE=1 AND BB>1;
DRAWTEXT(D=1,BB,'底'),COLORMAGENTA;
DRAWTEXT(S=1,BB,'升'),COLORMAGENTA;
DRAWTEXT(DDD=1,BB,'顶'),COLORGREEN;
DRAWTEXT(TZ=1,BB,'下'),COLORGREEN;