N:=9;M1:=3;M2:=3;
趋势买卖点:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
副图指标公式:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
sess3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
sess4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
sess5:=(副图指标公式+2*sess3+3*sess4)/6;
sess6:=MA(sess5,3);{股票公式-股票指标www.gs6699.com}
MACD: sess6*5,COLORSTICK ,LINETHICK2 ;
sessa1: STICKLINE(sess6<=-6,0,-25,5,0), COLOR88B7EA ;
sessa2: STICKLINE(sess6<=-8,5,25,7,0), ;
sessa3: STICKLINE(sess6<=-10,80,100,5,0), COLORYELLOW;
sessa4: IF(sess6<-6,20,0),LINETHICK3 , COLORFF0000;
sessa5: STICKLINE(sess6<=-10,65,35,4,0),;
sessa6: STICKLINE(sess6<=-10,40,0,4,0), COLORRED;
sessa7: STICKLINE(sess6<=-10,80,30,3,0), COLORGREEN;
sessa8: STICKLINE(sess6<=-10,80,60,3,0), COLORWHITE;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;
K:SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;
DRAWICON(CROSS(J,1),J,1);
DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);
sessa9: 20,LINETHICK1 , COLOR77AA1A;
sessa91: 80,LINETHICK1 , COLOR9966FF;
sessa92: 100,LINETHICK1 ,COLOR22A6E6;