同花顺资金量堆公式指标代码源码 附效果图

2024-10-07 投资技巧 22次阅读

使用说明: 适用同花顺软件使用,别的软件使用要改编代码。


直接复制以下源代码,在公用管理器中新构建指标公用,复制进去就可以用了仅供参考,下面有效果图,可以先看看指标显示出来效果如何

LC:=REF(C,1);

CL:=C-LC;

AC:=ABS(CL);

MC:=MAX(CL,0);

会员:SMA(MC,6,1)/SMA(AC,6,1)*100,colorcyan,nodraw;

VAR1:=1;

VAR3:=LLV(HIGH,240);

VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1;

VAR5:=REF(LLV(CLOSE,480),1)*VAR1;

VAR6:=REF(HHV(CLOSE,480),1)*VAR1;

VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5)*VAR1;

VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100*VAR1;

VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100*VAR1;

VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100*VAR1;

VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100*VAR1;

VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4*VAR1;

VARD:=IF(VARC>23.16,VARC,0)*VAR1;

VARE:=VARC<1*VAR1;

VARF:=VARD*VAR1;

VAR10:=VAR4<0 AND VAR7<0;

VAR11:=1;

VAR12:=(HIGH+LOW+CLOSE*2)/4;

VAR13:=EMA(VAR12,21);

VAR14:=STD(VAR12,21);

VAR15:=((VAR12-VAR13)/VAR14*100+200)/4;

VAR16:=(EMA(VAR15,89)-25)*1.56;

VAR17:=EMA(VAR16,5)*1.22;

VAR18:=EMA(VAR17,3);

VAR19:=3*VAR17-2*VAR18;

VAR1D:=EMA(CLOSE,3)-EMA(CLOSE,89);

VAR1E:=EMA(VAR1D,21);

VAR1F:=(VAR1D-VAR1E)*10;

VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);

拉升资金:IF(VAR1F>0.015,VAR20,0)/45,colorred;

LSD:=EMA(C,3)-EMA(C,89);

LSE:=EMA(LSD,21);

LSF:=(LSD-LSE)*10;

LSZ:=POW(LSF,3)*0.1+POW(LSF,2);

LSZJ:=IF(LSF>0.015  AND  LSZ>REF( LSZ,1), LSZ,DRAWNULL)/45,colormagenta,NODRAW;//资金量堆

VAR26:=EMA(CLOSE,2)-EMA(CLOSE,55);

VAR27:=EMA(VAR26,13);

VAR28:=2*(VAR26-VAR27);

导引资金:POW(VAR28,3)*0.1+POW(VAR28,1),colorligreen;

STICKLINE(导引资金>0,0,导引资金,2,0),coloryellow;

资金堆量:(CROSS(导引资金,0) AND LSZJ>0) OR FILTER (导引资金>0 AND LSZJ>0,30),coloryellow,nodraw;

平衡线:IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) AND CROSS(VAR18,VAR17),1,0),colorwhite;

DRAWICON(FILTER (导引资金>0 AND LSZJ>0,30),0,1);

下岛:=CROSS(0,导引资金)  AND  拉升资金<REF(拉升资金,1);

资金减量:FILTER(下岛,20) AND BARSLAST(资金堆量)>1,colorgreen,nodraw;

DRAWICON(资金减量,0,2);

MX:=EMA(C,2);

MXA:=EMA(SLOPE(C,21)*20+C,42);

AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);

动力价位:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,colorred,nodraw;

V1:=(C-REF(C,1))/REF(C,1)*100;

V2:=EMA(V1,8)*10,STICK;

V3:=EMA(V1,8)*10,NODRAW;

资金进出:V3,COLORSTICK,NODRAW;

VA88:=(CLOSE-MA(CLOSE,10))/STD(CLOSE,35)*0.3;

强弱动向:EMA(VA88,18)*4,colorwhite;

RSV:=(CLOSE-LLV(LOW, 9))/(HHV(HIGH, 9)-LLV(LOW,9))*100;

F:=SMA(RSV, 3, 1);

K:=SMA(F, 3, 1);

D:=SMA(K, 2, 1);

抄底信号:CROSS(K,D) AND K<50;

DRAWTEXT(抄底信号 AND COUNT(抄底信号,10)=1,0,'进'),colorred,LINETHICK3;

QW1:=(2*C+H+L)/4;

QW3:=EMA(QW1,10);

QW4:=STD(QW1,10);

QW5:=(QW1-QW3)*100/QW4;

QW6:=EMA(QW5,5);

涨:EMA(QW6,10)+100/2-5,LINETHICK2, coloryellow,nodraw;

跌:EMA(涨,4),LINETHICK2,colorred,nodraw;

获利出局:IF(涨>160,1,0),COLORFFFF00,LINETHICK2,nodraw;

牛熊线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),DOTLINE,coloryellow,nodraw;

生命线:MA(C,66),DOTLINE,colorliblue,nodraw;

QWEB:=ZIG(3,5);

QWVBN:=PEAKBARS(3,15,1)<10;

WLHS:=BACKSET(H,3);

DRAWTEXT_FIX(1,0.001,0.93,0,'公.众.号:A26206 编写公式指标Q.Q:511411198 '),colorwhite;


效果图:



猜你感兴趣: