五线红指标源码
EXP1:EXPMA(CLOSE,M1),LINETHICK2;
EXP2:EXPMA(CLOSE,M2),LINETHICK2;
EXP3:EXPMA(CLOSE,M3),LINETHICK3;
IF(EXP3>=REF(EXP3,1),EXP3,DRAWNULL),LINETHICK3,COLORLIMAGENTA;
IF(EXP3<=REF(EXP3,1),EXP3,DRAWNULL),LINETHICK3,COLORGREEN;
EXP4:EXPMA(CLOSE,M4),LINETHICK5;
IF(EXP4>=REF(EXP4,1),EXP4,DRAWNULL),LINETHICK5,COLORMAGENTA;
IF(EXP4<=REF(EXP4,1),EXP4,DRAWNULL),LINETHICK5,COLORGREEN;
EXP5:EXPMA(CLOSE,M5),LINETHICK8;
IF(EXP5>=REF(EXP5,1),EXP5,DRAWNULL),LINETHICK8,COLORRED;
IF(EXP5<=REF(EXP5,1),EXP5,DRAWNULL),LINETHICK8,COLORGREEN;
SJ:=DATE<1201001;
涨幅要求:=(C/REF(C,1)-1)*100>3;
MA233:=MA(C,233);
真阴线:=C<=REF(C,1) AND C<=O;
假阳线:=C<=REF(C,1) AND C>=O;
阴线:=真阴线>0 OR 假阳线>0;
阴线天数:=BARSLAST(阴线);
阴线实体最高价:=MAX(REF(C,阴线天数),REF(O,阴线天数));
阴线成交量:=REF(V,阴线天数);
阳胜条件:=阴线天数>0 AND C>=阴线实体最高价 AND 涨幅要求 AND SJ AND C>MA233;
阳胜:=IF(阳胜条件>0 AND REF(阳胜条件,1)=0,12,0) AND SJ;
真阳线:=C>=REF(C,1) AND C>=O;
假阴线:=C>=REF(C,1) AND C<=O;
阳线:=真阳线>0 OR 假阴线>0;
阳线天数:=BARSLAST(阳线);
阳线实体最低价:=MIN(REF(C,阳线天数),REF(O,阳线天数));
阳线成交量:=REF(V,阳线天数);
阴胜条件:=阳线天数>0 AND C<=阳线实体最低价 AND SJ;
阴胜:=IF(阴胜条件>0 AND REF(阴胜条件,1)=0,2,0) AND SJ;
阳胜进:=IF(阳胜>0 ,21,0);
阴胜出:=IF(阴胜>0,21,0);
STICKLINE(阳胜进>0 ,H,L,0,0),COLORYELLOW;
STICKLINE(阳胜进>0 ,O,C,12, 0),COLORYELLOW;
STICKLINE(阴胜>0 ,H,L,0,0),COLORGREEN;
STICKLINE(阴胜>0 ,O,C,12, 0),COLORLIGREEN;
STICKLINE(C>REF(C,1)*1.07,O,C,12,0),COLORRED;
STICKLINE(C>REF(C,1)*1.09,O,C,12,0),COLORMAGENTA;
AA:=(REF(C,1)-C)/REF(C,1)*100>=10;
STICKLINE(AA,C, O,12,0),COLORGREEN;
参数设置;m1.m2.m3m4.m5最小1最大1111缺省5.13.34.99.233