将资金变色线连接
2020/4/26 18:28:35
公式编写说明:
以下公式中的彩色线, 在紫平线处上穿时缺了一截,上穿时应变红连接, 请求高手帮助!公式如下:量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;TJB:=ZZ<=MIN(C,O) AND CTKG=1;ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;买卖差:JGL_DX*量_价,LINETHICK2;{二买:SUM(JGL_DX*量_价,2),COLOR13AADD,LINETHICK2;}量3:MA(V,3);平:1;振幅:(H-L)/REF(C,1)*100,COLORYELLOW,NODRAW;五振:SUM((H-L)/REF(C,1)*100,5),COLORYELLOW,NODRAW;5换:SUM(100*V/CAPITAL,5),LINETHICK0,NODRAW;一B:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;二B:MA(一B,2),COLORYELLOW,NODRAW;VAR3:=VOL/((H-L)*2-ABS(C-O));主买:=IF(C>O,VAR3*(H-L),IF(C<O,VAR3*((H-O)+(C-L)),VOL/2)),COLORRED,NODRAW;主卖:=IF(C>O,0-VAR3*((H-C)+(O-L)),IF(C<O,0-VAR3*(H-L),0+V/2)),COLOR00FF00,NODRAW;DDX:=主买+主卖;DX:=MA(DDX,2)*2;资金:SMA(DX,3,1),COLORRED,NODRAW;DDX1:=SMA(DX,3,1);IF(DDX1>=0,DDX1,DRAWNULL),COLORRED,LINETHICK3;IF(DDX1<=REF(DDX1,1) AND DDX1>0,DDX1,DRAWNULL),COLORYELLOW,LINETHICK3;IF(DDX1<=REF(DDX1,1),DDX1,DRAWNULL),COLORYELLOW,LINETHICK3;IF(DDX1<=REF(DDX1,1) AND DDX1<0,DDX1,DRAWNULL),COLORYELLOW,LINETHICK3;IF(DDX1<=REF(DDX1,2) AND DDX1<0,DDX1,DRAWNULL),COLORGREEN,LINETHICK3;IF(DDX1<=0,DDX1,DRAWNULL),COLORGREEN;IF(DDX1<0 AND DDX1>=REF(DDX1,1),DDX1,DRAWNULL),COLORYELLOW,LINETHICK3;
公式源码回答:
资金:SMA(DX,3,1),COLORRED,NODRAW; 改成: 资金:SMA(DX,3,1),linethick3,COLORRED;
投 股票网 www.to u18.cn
股市公式下载推荐