九毛八公式指标
股价趋势公式,效果很好。但我感觉实线没有虚线更直观。 请老师帮助将上图中的黄兰实线,改为向下图中的块状虚线,其功能不变。万分感谢! 附公式如下: 80,COLORLIRED; 周J:=MA("KDJ.J#WEEK"(9,3,3),5); 关注区:STICKLINE(周J>=REF(周J,1) AND 周J<0,0,30,1,0),COLORAA66CC; {STICKLINE(周J>=REF(周J,1) AND 周J>=0,50,150,5,0),COLORCC99CC;} 周J1:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF0000,LINETHICK3; 周J超买超卖:IF(周J1>=REF(周J1,1),周J1,DRAWNULL),COLOR00FFFF,LINETHICK3; RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K0:=SMA(RSV,3,1); K:=K0; D:=SMA(K0,2,1); K1:(3*K0-2*D),COLORWHITE; D1:MA(K1,2),COLORGREEN; {DRAWICON(CROSS(K1,D1),K1,7); DRAWICON(CROSS(K1,D1),K1,9);} 安全线:0,COLORGREEN; 平衡线:50,COLORWHITE; 风险线:100,COLORRED; A1:=MA(CLOSE,7); A2:=MA(CLOSE,14); A3:=MA(CLOSE,25); DT:=COUNT(A1>A2 AND A2>A3 ,3)=3 AND CLOSE>OPEN; SC:=CROSS(C,MA(C,25)); XG:SC AND DT; DRAWTEXT(XG,50,''),COLORYELLOW; AA:=EMA(C,3); BB:=EMA(C,8); 小秘密:=CROSS(BB,AA); DRAWTEXT(小秘密,L-0.40,''),COLORF00FF0;
公式模块:
80,COLORLIRED;
周J:=MA("kdj.J#WEEK"(9,3,3),5); 关注区:STICKLINE(周J>=REF(周J,1) AND 周J<0,0,30,1,0),COLORAA66CC; {STICKLINE(周J>=REF(周J,1) AND 周J>=0,50,150,5,0),COLORCC99CC;} 周J1:=MA("kdJ.J#WEEK"(9,3,3) ,5),COLORFF0000,DOTLINE; STICKLINE(周J1,周J1*0.99,周J1*1.001,2,0),COLORFF0000; STICKLINE(周J1>=REF(周J1,1),周J1*0.99,周J1*1.001,2,0),COLOR00FFFF; RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K0:=SMA(RSV,3,1); K:=K0; D:=SMA(K0,2,1); K1:(3*K0-2*D),COLORWHITE; D1:MA(K1,2),COLORGREEN; {DRAWICON(crOSS(K1,D1),K1,7); DRAWICON(CROSS(K1,D1),K1,9);} 安全线:0,COLORGREEN; 平衡线:50,COLORWHITE; 风险线:100,COLORRED; A1:=MA(CLOSE,7); A2:=MA(CLOSE,14); A3:=MA(CLOSE,25); DT:=COUNT(A1>A2 AND A2>A3 ,3)=3 AND CLOSE>OPEN; SC:=CROSS(C,MA(C,25)); XG:SC AND DT; DRAWTEXT(XG,50,''),COLORYELLOW; AA:=EMA(C,3); BB:=EMA(C,8); 小秘密:=CROSS(BB,AA); DRAWTEXT(小秘密,L-0.40,''),COLORF00FF0;