Q1:=9;Q2:=20;RR1:=(CLOSE-LLV(LOW,Q1))/(HHV(HIGH,Q1)-LLV(LOW,Q1))*100;慢线1:=SMA(RR1,10,1),LINETHICK2,COLORFFFF66;STICKLINE(慢线1>=REF(慢线1,1),慢线1,REF(慢线1,1),3,1),COLORYELLOW;STICKLINE(慢线1< REF(慢线1,2),慢线1,REF(慢线1,1),3,1),COLORFFFF66;RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;KK1:SMA(RSV,3,1)COLORGREEN;{ 公式源码 }DD1:SMA(KK1,3,1)COLORRED;买进:IF( 慢线1< Q2 AND VOL>1.5*MA(VOL,5) AND CROSS(DD1,慢线1),50,0),STICK,COLORYELLOW;卖出:IF(慢线1>76 AND CROSS(慢线1,KK1),60,0),COLORGREEN,STICK;RR2:=(HIGH+LOW+OPEN+2*CLOSE)/5;RR3:=REF(RR2,1);RR4:=SMA(MAX(RR2-RR3,0),10,1)/SMA(ABS(RR2-RR3),10,1)*100;段底:=IF(COUNT(RR4< 20,5)>=1 AND COUNT(RR2=LLV(RR2,5),10)>=1 AND CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND VOL>1.5*MA(VOL,5),60,0),STICK,COLORRED;MAV:=(2*C+H+L)/4;RR5:=LLV(LOW,34);RR6:=HHV(HIGH,34);SK1:=EMA((MAV-RR5)/(RR6-RR5)*100,13),STICK,COLOR00FFFF LINETHICK2;SD1:=EMA(0.667*REF(SK1,1)+0.333*SK1,2);持仓:STICKLINE(SK1>SD1,2,-1,10,1),LINETHICK1,COLORRED ;空仓:STICKLINE(SK1< SD1,2,-1,10,1),LINETHICK1,COLORGREEN;RR7:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;五天百分五:IF(REF(RR7,1)< 20 AND (C/REF(C,1)-1)*100>9 AND C=H,85,0),COLORWHITE;AA:=DRAWICON(五天百分五,50,1);DRAWTEXT(五天百分五,75,12),COLORRED;RR11:=(HIGH+LOW+OPEN+2*CLOSE)/5;RR12:=REF(RR11,1);RR13:=SMA(MAX(RR11-RR12,0),10,1)/SMA(ABS(RR11-RR12),10,1)*100,LINETHICK1;RR14:REVERSE(RR13)+100,POINTDOT,LINETHICK1;底部不远:IF(COUNT(RR13<=14,2),30,0),COLORMAGENTA,LINETHICK2;