{相对强弱} N:=20; GOQIRI:=920121201; GOQI:=DATE>=GOQIRI-19000000; GOQIVU:=COUNT(GOQI=1,0); TIVIQI:=GOQI=1 AND DAY>=1 AND DAY<=15 AND MOD(MONTH,2)=MOD(INTPART(GOQIRI/100),2); TIVIDJ:=GOQIVU=1 OR TIVIQI>REF(TIVIQI,1); TIVI:=TIVIDJ=1 AND COUNT(TIVIDJ=1,20)<2 AND CURRBARSCOUNT<=20; BBLT:=BARSLAST(TIVI=1)>=5 AND BARSLAST(TIVI=1)<=14; WUXD:=GOQI=1 AND BBLT=1; DPC0:=MA(INDEXC,2*N); DPC1:=(INDEXC-DPC0)/DPC0*100; DPC2:=IF(INDEXC>0,EMA(DPC1,N),DRAWNULL); DPC3:=IF(INDEXC>0,EMA(DPC2,N/2),DRAWNULL); 大盘强弱1:=DPC3; GGC0:=MA(CLOSE,2*N); GGC1:=(CLOSE-GGC0)/GGC0*100; GGC2:=EMA(GGC1,N); GGC3:=EMA(GGC2,N/2); 个股强弱1:=GGC3; 相对强弱1:=个股强弱1-大盘强弱1; 涨幅1:=GGC2; 涨势1:=EMA(GGC2-GGC3,N/4)*2; 大盘强弱:IF(WUXD,DRAWNULL,大盘强弱1),COLORFF4040; 个股强弱:IF(WUXD,DRAWNULL,个股强弱1),COLOR00FFFF; 相对强弱:IF(WUXD,DRAWNULL,相对强弱1),COLORSTICK,COLOR4040FF; 涨幅:IF(WUXD,DRAWNULL,涨幅1),COLORFFFFFF; 涨势:IF(WUXD,DRAWNULL,涨势1),COLOR808080; DRAWTEXT(TIVI=1,MIN(LLV(GGC2,40),0)+(MAX(HHV(GGC2,40),0)-MIN(LLV(GGC2,40),0))*0.8,'分享过期会中断'),COLORFFAFFF; DRAWTEXT(TIVI=1,MIN(LLV(GGC2,40),0)+(MAX(HHV(GGC2,40),0)-MIN(LLV(GGC2,40),0))*0.5,'续用指标请联系'),COLORFFCFFF; DRAWTEXT(TIVI=1,MIN(LLV(GGC2,40),0)+(MAX(HHV(GGC2,40),0)-MIN(LLV(GGC2,40),0))*0.2,'QQ:1607729389'),COLORFFEFFF; |
