资金趋势(副图 源码 贴图 说明)介绍
资金趋势(副图 源码 贴图 说明)
资金趋势副图,换手源码里面用到未来,不喜欢未来的,可以把最后的换手指标一行删除即可。指标中RSI大于85会出现绿色小三角提示高抛信号,下方黄柱提示低位资金吃筹,短线可重点关注。此指标经过几个月跟踪后,觉得很有参考意义,发上来大家一起分享和学习,觉得好用请加分鼓励,不足之处也请大家赐教和优化。
源码如下:
M:=55;
N:=34;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(85,RSI),75,'▼'),COLORGREEN;
VAR1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
低位吸筹:IF(VAR8>100,100,VAR8)*VAR1,COLORYELLOW;
主力吸筹:STICKLINE(低位吸筹>-150,0,低位吸筹,1,0),COLORYELLOW;
散户资金: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORGREEN,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力资金:EMA(J,6),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(主力资金,散户资金) ,主力资金,'★')COLORYELLOW;
换手:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
gd13873