「翔博精选指标」瀑布线A111均线组主图,和谐通达信公式源码分享
2022-01-29原创 编 辑:翔博软件
瀑布线A111均线组主图
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,3,1),COLOR00CC00;
X_1:=EMA(CLOSE,5);
MA(X_1,18),COLORGREEN;
MA(X_1,17),COLORGREEN;
MA(X_1,16),COLORGREEN;
MA(X_1,15),COLORGREEN;
MA(X_1,14),COLORGREEN;
MA(X_1,13),COLORGREEN;
MA(X_1,12),COLORGREEN;
MA(X_1,11),COLORGREEN;
MA(X_1,10),COLORGREEN;
X_2:=BARSLAST(EMA(CLOSE,30)<=EMA(CLOSE,50));
X_3:=BARSLAST(EMA(CLOSE,30)>=EMA(CLOSE,50));
NOTEXTBH11A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,10),DRAWNULL),COLORRED;
NOTEXTBH12A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,11),DRAWNULL),COLORRED;
NOTEXTBH13A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,12),DRAWNULL),COLORRED;
NOTEXTBH14A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,13),DRAWNULL),COLORRED;
NOTEXTBH15A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,14),DRAWNULL),COLORRED;
NOTEXTBH16A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,15),DRAWNULL),COLORRED;
NOTEXTBH17A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,16),DRAWNULL),COLORRED;
NOTEXTBH18A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,17),DRAWNULL),COLORRED;
NOTEXTBH19A:IF(CURRBARSCOUNT<=CONST(X_2) AND CURRBARSCOUNT>=CONST(X_3),MA(X_1,18),DRAWNULL),COLORRED;
MA(X_1,9),COLORYELLOW;
MA(X_1,8),COLORYELLOW;
MA(X_1,7),COLORYELLOW;
MA(X_1,6),COLORYELLOW;
MA(X_1,5),COLORYELLOW;
MA(X_1,4),COLORYELLOW;
MA(X_1,3),COLORYELLOW;
MA(X_1,2),COLORYELLOW;
MA(X_1,1),COLORYELLOW;
X_4:=BARSLAST(EMA(CLOSE,5)<=EMA(CLOSE,25));
X_5:=BARSLAST(EMA(CLOSE,5)>=EMA(CLOSE,25));
NOTEXTBH1A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,9),DRAWNULL),COLORRED;
NOTEXTBH2A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,8),DRAWNULL),COLORRED;
NOTEXTBH3A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,7),DRAWNULL),COLORRED;
NOTEXTBH4A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,6),DRAWNULL),COLORRED;
NOTEXTBH5A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,5),DRAWNULL),COLORRED;
NOTEXTBH6A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,4),DRAWNULL),COLORRED;
NOTEXTBH7A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,3),DRAWNULL),COLORRED;
NOTEXTBH8A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,2),DRAWNULL),COLORRED;
NOTEXTBH9A:IF(CURRBARSCOUNT<=CONST(X_4) AND CURRBARSCOUNT>=CONST(X_5),MA(X_1,1),DRAWNULL),COLORRED;