X_1:=SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1);
X_2:=HHV(HIGH,45);
X_3:=LLV(LOW,45);
X_4:=EMA((CLOSE-X_3)/(X_2-X_3)*100,21);
STICKLINE(X_4 0,0,X_4,10,0),COLORLIBLUE;
STICKLINE(X_4 80,X_4,80,10,1),COLORMAGENTA;
STICKLINE(X_4 10,X_4,0,10,1),COLORYELLOW;
风险线:80,POINTDOT,COLORRED,LINETHICK3;
安全线:10,POINTDOT,COLORGREEN,LINETHICK3;
X_5:=100*VOL/(FINANCE(7)/100);
X_6:=SUM(X_5,10);
X_7:=TROUGHBARS(3,15,1)
X_8:=PEAKBARS(3,15,1)
X_9:=IF(X_7=1,50,0);
X_10:=IF(X_8=1,50,0);
X_11:=IF(X_9=50,10,0);
X_12:=0;{九毛八公式指标网www.9m8.cn}
黄金坑1:STICKLINE(X_11=10 AND X_4 10 AND REF(X_11,10)=0 AND REF(X_11,3)=0,90,0,10,0),COLORYELLOW,LINETHICK5;
黄金坑2:STICKLINE(X_11=10 AND X_4 20 AND REF(X_11,10)=0 AND REF(X_11,3)=0,60,0,10,0),COLORBLUE,LINETHICK5;
黄金坑3:STICKLINE(X_11=10 AND X_4 50 AND REF(X_11,10)=0 AND REF(X_11,3)=0,30,0,10,0),COLORMAGENTA,LINETHICK5;