变色趋势线指标公式 

本指标用 5 日, 20 日, 60 日为参数, 均线拐头向上就变色。 向下也变色。 经典中的经典。

VAR2:MA(C,5),COLORRED,LINETHICK3;

上翘:IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),COLORRED,LINETHICK3;

下拐:IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),COLORGREEN,LINETHICK3;

VAR1:MA(C,20),COLORRED;

上升:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;

下降:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLORGREEN;

M60:MA(C,60),COLORWHITE POINTDOT;

IF(M60>=REF(M60,1),M60,DRAWNULL),LINETHICK2,COLORRED;

IF(M60<=REF(M60,1),M60,DRAWNULL),LINETHICK1,COLORCC9900;

image.png

均线变色指标公式

MA5:MA(CLOSE,5);

MA13:MA(CLOSE,13);

MA21:MA(CLOSE,21);

MA30:MA(CLOSE,30);

MA60:MA(CLOSE,60);

MA89:MA(CLOSE,89);

MA144:MA(CLOSE,144),LINETHICK2;

MA233:MA(CLOSE,233),LINETHICK2;

MA377:MA(CLOSE,377);

MA4181:MA(CLOSE,4181),LINETHICK3;

二分之一:REF((H+L)/2,1),POINTDOT;

STICKLINE(C<REF(C,1) AND C<O,C,O,3,1),COLORCYAN,LINETHICK1;

板 2:REF(L,BARSLAST(C/REF(C,1)<0.904)),COLORLIGREEN,POINTDOT;

STICKLINE(C,板 2,板 2,5,0),COLORLIBLUE,LINETHICK4;

板 1:REF(H,BARSLAST(C/REF(C,1)>1.09955)),COLOR3399FF,POINTDOT;

STICKLINE(C,板 1,板 1,5,0),COLORGREEN,LINETHICK4;

上升:IF(MA30>REF(MA30,1),MA30,DRAWNULL),COLORRED,LINETHICK3;

下降:IF(MA30<REF(MA30,1),MA30,DRAWNULL),COLORGREEN,LINETHICK3;

IF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORLIRED,LINETHICK3;

IF(MA60<REF(MA60,1),MA60,DRAWNULL),COLORYELLOW,LINETHICK3;

DRAWTEXT(C/REF(C,1)>1.09955,L,'板'),

COLORYELLOW;

DRAWTEXT(C/REF(C,1)<0.904,H,'停'),COLORGREEN;

STICKLINE(VOL>REF( VOL,1)*2 ,C,O,3,0),COLORRED,LINETHICK1;

STICKLINE(VOL>REF( VOL,1)*2 AND

C<O,C,O,3,0),COLORGREEN,LINETHICK1;

STICKLINE(C,REF((H+L)/2,1),REF((H+L)/2,1),1,0),COLORWHITE;

STICKLINE(C/REF(C,1)>1.09955 AND C=H,C,O,2.5,0),COLORRED;

STICKLINE(C/REF(C,1)<0.904 AND C=L,C,O,2.5,0),COLORGREEN;

DRAWTEXT(C/REF(C,1)>1.09955,L,'板'),

COLORYELLOW;

DRAWTEXT(C/REF(C,1)<0.904,H,'停'),COLORGREEN;

STICKLINE(VOL>REF( VOL,1)*2 AND

C<REF(C,1),C,O,3,0),COLORGREEN,LINETHICK1;

STICKLINE(VOL>REF( VOL,1)*2 AND

C<REF(C,1),C,O,3,0),COLORGREEN,LINETHICK1;

DRAWTEXT_FIX(ISLASTBAR ,0.79,0.05,1,DYBLOCK),COLORMAGENTA,LINET

HICK5;

DRAWTEXT_FIX(ISLASTBAR ,0.8,0.05,0,HYBLOCK),COLORYELLOW,LINETHIC

K3;

DRAWTEXT_FIX(ISLASTBAR ,0.8,0.05,0,HYBLOCK),COLORYELLOW,LINETHIC

K5;

DRAWTEXT_FIX(ISLASTBAR ,0.79,0.05,1,DYBLOCK),COLORYELLOW,LINETHI

CK3;

DRAWTEXT_FIX(ISLASTBAR ,0.8,0.05,0,HYBLOCK),COLORYELLOW,LINETHIC

K5;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。