R:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K: EMA(R,3),LINETHICK0,COLORYELLOW;
D: EMA(K,3),LINETHICK0,COLORFF00FF;
一年十二倍: 20,LINETHICK0,POINTDOT,COLOR00FF00;
陡峭度:= IF(BARSCOUNT(CLOSE)>7,100*(MA(CLOSE,7)/LLV(MA(CLOSE,7),7)-1),1);
SHAUN:= MA(CLOSE,14);
AH1:= SHAUN*1.1;
AH2:= SHAUN*0.9;
AH3:= AH1-(AH1-AH2)*0.191;
BH0:= AH1-(AH1-AH2)*0.618;
BH1:= LLV(BH0,3);
BH2:= IF(BH0>BH1,BH0-(BH1-BH0)/2,BH1);
上升趋势:= BH1<BH2;
VAR1B:= EMA(CLOSE,34)-EMA(CLOSE,5);
VAR2B:= EMA(VAR1B,5);
趋势:= (0-3)*(VAR1B-VAR2B);
长期趋势:= EMA(VAR1B,10)*(0-1);
N:= IF(陡峭度=0,55,6);
VAR1: IF(close>0,0-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),-50),LINETHICK0,COLORBLUE;
狂喜:= 30*CROSS(VAR1,-2);
STICKLINE(狂喜,0,20,6,0),COLORYELLOW;
DRAWTEXT(狂喜,-5,'要涨停'),COLORYELLOW;
狂喜过望:= 50*(VAR1=0);
STICKLINE(狂喜过望,0,50,8,1),COLORRED;
DRAWTEXT(狂喜过望,55,'涨停'),COLORRED;
恐慌: (-30)*(VAR1<(-93)) AND FINANCE(33)>0,LINETHICK0,COLORC1C1C1;
STICKLINE(恐慌,0,-30,6,0),COLORC1C1C1;
DRAWTEXT(恐慌,-35,'恐慌'),COLORC1C1C1;
极度恐慌: (-50)*(VAR1=(-100)),LINETHICK0,COLOR00FF00;
STICKLINE(极度恐慌,0,-50,8,1),COLORWHITE;
DRAWTEXT(极度恐慌,-55,'极度恐慌'),COLORFFFF00;
满仓: 40*(CROSS(VAR1,-93) AND COUNT(恐慌,5)>0),LINETHICK0,COLORGREEN;
DRAWTEXT(满仓,45,'满仓'),COLORGREEN;
加仓: 30*(CROSS(K,20) AND COUNT(满仓,5)>0),LINETHICK0,COLORGRAY;
STICKLINE(加仓,0,30,8,1),COLORGRAY;
DRAWTEXT(加仓,35,'加仓'),COLORGRAY;
背离: COUNT(恐慌,2)>0 AND CLOSE<REF(CLOSE,1) AND VAR1>REF(VAR1,1),LINETHICK0,COLORYELLOW;
DRAWICON(背离,0,1),COLORFF00FF;