红色均线——(一旦拥有,决胜千里,主图、源码,无未来,dzh、tdx版)
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
MA5:MA(CLOSE,P5);
MA6:MA(CLOSE,P6);
PARTLINE(MA1,MA1>REF(MA1,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK1;
PARTLINE(MA2,MA1>REF(MA2,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK1;
PARTLINE(MA3,MA1>REF(MA3,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;
PARTLINE(MA4,MA1>REF(MA4,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK1;
PARTLINE(MA5,MA1>REF(MA5,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK1;
PARTLINE(MA6,MA1>REF(MA6,1),RGB(255,0,0),1,RGB(0,255,0)),LINETHICK1;
通达信版:
参数设置见最后一张图
MA1:MA(CLOSE,M1),COLORRED;
MA2:MA(CLOSE,M2),COLORRED;
MA3:MA(CLOSE,M3),COLORRED;
MA4:MA(CLOSE,M4),COLORRED;
IF(MA1<REF(MA1,1),MA1,DRAWNULL),COLORGREEN;
IF(MA2<REF(MA2,1),MA2,DRAWNULL),COLORGREEN;
IF(MA3<REF(MA3,1),MA3,DRAWNULL),COLORGREEN;
IF(MA4<REF(MA4,1),MA4,DRAWNULL),COLORGREEN;
- 上一篇公式:主力增减指标(源码 副图 贴图)
- 下一篇公式:糖葫芦串(高、低、买、卖)