副图源码: 散户:= 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)); SV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; SV1:=(C-MA(C,4))/MA(C,4)*100; R2:=REF(LOW,1); R3:=SMA(ABS(LOW-R2),3,1)/SMA(MAX(LOW-R2,0),3,1)*100; R4:=EMA(IF(CLOSE*1.3,R3*10,R3/10),3); R5:=LLV(LOW,30); R6:=HHV(R4,30); R7:=IF(MA(CLOSE,58),1,0); R8:=EMA(IF(LOW<=R5,(R4+R6*2)/2,0),3)/618*R7; R9:=IF(R8>100,100,R8); K:=SMA(SV,5,1); D:=SMA(K,3,1); J:=3*K-2*D; 主力:=EMA(J,6),COLORYELLOW; AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; AA5:=SMA(AA4,13,8); 走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2; AA6:=SMA(AA3,21,8); 吸筹:STICKLINE(R9>-120,50,50+(R9/2),8,1),COLORRED; CMA:=EMA(EMA(SV1,7),7)*8,NODRAW,COLORWHITE; 快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLOR333333; 散户线:=散户,COLORFFFFFF,LINETHICK1; 主力线:主力,COLORYELLOW; 走势线:走势,COLORRED,LINETHICK3; DRAWTEXT(ISLASTBAR,散户线,' ←散户线'),COLORFFFFFF; DRAWTEXT(ISLASTBAR,主力线,' ←主力线'),COLORYELLOW; DRAWTEXT(ISLASTBAR,走势线,' ←走势线'),COLORRED; 低买:IF(90>散户 AND CROSS(90,散户) ,98,0),COLORMAGENTA,STICK,NODRAW; 高抛:IF(散户<10 AND CROSS(10,散户) ,20,0),COLORGREEN,STICK,NODRAW; 风险:COUNT("RSI.RSI1"(6,12,24)>80,3)=3 AND CROSS("RSI.RSI2"(6,12,24),79.5),NODRAW; 顶散户<8 AND 主力>90 AND 走势>90 AND CMA<=REF(CMA,1)AND 散户线),COLORGREEN,NODRAW; DRAWTEXT(风险,95,'←风险'),COLOR00FFFF; STICKLINE(低买,0,100,0,-1),COLORMAGENTA; STICKLINE(高抛,0,100,0,-1),COLORGREEN; 低买选股源码:
散户:= 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)); SV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; SV1:=(C-MA(C,4))/MA(C,4)*100; R2:=REF(LOW,1); R3:=SMA(ABS(LOW-R2),3,1)/SMA(MAX(LOW-R2,0),3,1)*100; R4:=EMA(IF(CLOSE*1.3,R3*10,R3/10),3); R5:=LLV(LOW,30); R6:=HHV(R4,30); R7:=IF(MA(CLOSE,58),1,0); R8:=EMA(IF(LOW<=R5,(R4+R6*2)/2,0),3)/618*R7; R9:=IF(R8>100,100,R8); K:=SMA(SV,5,1); D:=SMA(K,3,1); J:=3*K-2*D; 主力:=EMA(J,6),COLORYELLOW; AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; AA5:=SMA(AA4,13,8); 走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2; AA6:=SMA(AA3,21,8); 吸筹:=STICKLINE(R9>-120,50,50+(R9/2),8,1),COLORRED; CMA:=EMA(EMA(SV1,7),7)*8; 快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLOR333333; 散户线:=散户,COLORFFFFFF,LINETHICK1; 主力线:=主力,COLORYELLOW; 走势线:=走势,COLORRED,LINETHICK3; 低买:IF(90>散户 AND CROSS(90,散户) ,98,0);
|