主图
N1:=3;
M1:=MA(C,5);
M2:MA(C,20),COLORGREEN;
趋势线:IF(M1>M2,M2,M1),COLOR0000FF;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
{程序化指标官方网址 WWW.HONGHAIE.COM}
STICKLINE(Z>=0 ,O,C,2,0),COLORRED;
STICKLINE(Z>=0 ,H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 ,MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 ,O,C,2,1),COLORCYAN;
STICKLINE(Z<0 ,H,MAX(O,C),0,1),COLORCYAN;
STICKLINE(Z<0 ,MIN(O,C),L,0,1),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,2,0),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,1),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,1),COLORBLUE;
STICKLINE(Z<0 AND M2<C,O,C,2,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,1),COLORYELLOW;
WW:=(MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16)+MA(CLOSE,32))/4;
DRAWICON(CROSS(CLOSE,WW),LOW-0.002,7);
DRAWICON(CROSS(WW,CLOSE),HIGH+0.006,8);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA40:=MA(C,40);
MA60:=MA(C,60);
STICKLINE(MA5>=MA60
AND MA60>=MA10,MA10,MA60,4,0),COLORBLUE;
STICKLINE(MA5>=MA10 AND
MA5<=MA60,MA10,MA5,4,0),COLORBLUE;
STICKLINE(MA20>=MA60 AND
MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND
MA20<MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5>=MA20 AND
MA20>=MA10,MA10,MA20,4,0),COLORWHITE;
STICKLINE(MA5>=MA10 AND
MA5<MA20,MA10,MA5,4,0),COLORWHITE;
A:=(3*C+L+O+H)/6;
程序化指标:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)
+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)
+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)
+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLOR0000FF;
ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;
ZAR2:=EMA(ZAR1,5);
ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);
ZARB:=BARSLAST(CROSS(CLOSE,ZARA));
ZARC:=BARSLAST(CROSS(ZARA,CLOSE));
STICKLINE(CLOSE<ZARA,REF(CLOSE,ZARC),REF(CLOSE,ZARC),12,0),COLOR00FF00;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),程序化指标,0.2,0),COLOR0000FF;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB),12,0),COLOR8000FF;
STICKLINE(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),程序化指标,0.2,0),COLOR00FF00;
{更多指标关注微信公众号:程序化指标};
M1:=MA(C,5);
M2:MA(C,20),COLORGREEN;
趋势线:IF(M1>M2,M2,M1),COLOR0000FF;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
{程序化指标官方网址 WWW.HONGHAIE.COM}
STICKLINE(Z>=0 ,O,C,2,0),COLORRED;
STICKLINE(Z>=0 ,H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 ,MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 ,O,C,2,1),COLORCYAN;
STICKLINE(Z<0 ,H,MAX(O,C),0,1),COLORCYAN;
STICKLINE(Z<0 ,MIN(O,C),L,0,1),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,2,0),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,1),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,1),COLORBLUE;
STICKLINE(Z<0 AND M2<C,O,C,2,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,1),COLORYELLOW;
WW:=(MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16)+MA(CLOSE,32))/4;
DRAWICON(CROSS(CLOSE,WW),LOW-0.002,7);
DRAWICON(CROSS(WW,CLOSE),HIGH+0.006,8);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA40:=MA(C,40);
MA60:=MA(C,60);
STICKLINE(MA5>=MA60
AND MA60>=MA10,MA10,MA60,4,0),COLORBLUE;
STICKLINE(MA5>=MA10 AND
MA5<=MA60,MA10,MA5,4,0),COLORBLUE;
STICKLINE(MA20>=MA60 AND
MA60>=MA40,MA40,MA60,4,0),COLORFF00FF;
STICKLINE(MA20>=MA40 AND
MA20<MA60,MA40,MA20,4,0),COLORFF00FF;
STICKLINE(MA5>=MA20 AND
MA20>=MA10,MA10,MA20,4,0),COLORWHITE;
STICKLINE(MA5>=MA10 AND
MA5<MA20,MA10,MA5,4,0),COLORWHITE;
A:=(3*C+L+O+H)/6;
程序化指标:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)
+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)
+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)
+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLOR0000FF;
ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;
ZAR2:=EMA(ZAR1,5);
ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);
ZARB:=BARSLAST(CROSS(CLOSE,ZARA));
ZARC:=BARSLAST(CROSS(ZARA,CLOSE));
STICKLINE(CLOSE<ZARA,REF(CLOSE,ZARC),REF(CLOSE,ZARC),12,0),COLOR00FF00;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),程序化指标,0.2,0),COLOR0000FF;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB),12,0),COLOR8000FF;
STICKLINE(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),程序化指标,0.2,0),COLOR00FF00;
{更多指标关注微信公众号:程序化指标};
版权声明
所有指标均为免费分享。
文章内容来自互联网,本网站无任何收费项目也不推荐股票广告投放请自行识别风险。