资金进出对比,红柱绿柱对比 同花顺副图指标 源码: VAR05:=(CLOSE*5+REF(CLOSE,1)*4+REF(CLOSE,2)*3+REF(CLOSE,3)*2+REF(CLOSE,4)*1)/15; VAR10:=(CLOSE*10+REF(CLOSE,1)*9+REF(CLOSE,2)*8+REF(CLOSE,3)*7+REF(CLOSE,4)*6+REF(CLOSE,5)*5+REF(CLOSE,6)*4+REF(CLOSE,7)*3+REF(CLOSE,8)*2+REF(CLOSE,9)*1)/55;TAN05:=ATAN((VAR05/REF(VAR05,1)-1)*100); TAN10:=ATAN((VAR10/REF(VAR10,1)-1)*100); SIN05:=SIN(TAN05); SIN10:=SIN(TAN10); VAR050:=MA(CLOSE,59); VAR100:=MA(CLOSE,152); TAN050:=ATAN((VAR050/REF(VAR050,1)-1)*100); TAN100:=ATAN((VAR100/REF(VAR100,1)-1)*100); SIN050:=SIN(TAN050);//分析家公式网 SIN100:=SIN(TAN100); VARCHA1:=VAR050-VAR100; STICKLINE(SIN05>=0.087,0,SIN05,8,1),colorred; STICKLINE(SIN05>-0.087 AND SIN05<0.087,0,SIN05,8,1),colorblue; STICKLINE(SIN05<=-0.087,0,SIN05,8,1),colorgreen; RSV=(CLOSE-LLV(LOW,17))/(HHV(HIGH,17)-LLV(LOW,17))*100; a=SMA(RSV,4,1); b=SMA(a,5,1); D11:=b; K11:=a; KD1:=K11-D11; DRAWTEXT((SIN050>=-0.087 AND SIN100>=0 AND VARCHA1>=0 AND CROSS(K11,D11)),SIN05+0.3,'B1'); DRAWTEXT((SIN050<-0.087 AND SIN100<0 AND VARCHA1<0 AND CROSS(D11,K11)),SIN05,'S1'); VAR15:=MA(CLOSE,14); VAR75:=MA(CLOSE,74); TAN15:=ATAN((VAR15/REF(VAR15,1)-1)*100); TAN75:=ATAN((VAR75/REF(VAR75,1)-1)*100); SIN15:=SIN(TAN15); SIN75:=SIN(TAN75); VARCHA2:=VAR15-VAR75; RSV=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; a=SMA(RSV,8,1); b=SMA(a,7,1); D22:=b; K22:=a; KD2:=K22-D22; DRAWTEXT((SIN15>=-0.087 AND SIN75>=0 AND VARCHA2>=0 AND (D22-K22)>=14),SIN05+0.3,'B2'); DRAWTEXT((SIN15<-0.087 AND SIN75<0 AND VARCHA2<0 AND (D22-K22)<14),SIN05,'S2'); |