金色K线持股,蓝色K线持币 金K线主图公式用法至简
金K线是波段操作系列指标。
公式源码
MA1:MA(CLOSE,3);
MA2:MA(CLOSE,6);
MA3:MA(CLOSE,12);
MA4:MA(CLOSE,24);
IF(MA1 =REF(MA1,1),MA1,DRAWNULL),COLOR00AABB;
IF(MA1 =REF(MA1,1),MA1,DRAWNULL),COLORAAFF00;
IF(MA2 =REF(MA2,1),MA2,DRAWNULL),COLOR0099CC;
IF(MA2 =REF(MA2,1),MA2,DRAWNULL),COLOR99EE00;
IF(MA3 =REF(MA3,1),MA3,DRAWNULL),COLOR0088DD;
IF(MA3 =REF(MA3,1),MA3,DRAWNULL),COLOR88DD00;
IF(MA4 =REF(MA4,1),MA4,DRAWNULL),COLOR0066EE;
IF(MA4 =REF(MA4,1),MA4,DRAWNULL),COLOR99CC00;
B:=MA1 =REF(MA1,1);
STICKLINE(B,H,L,0,0),COLORYELLOW;
STICKLINE(B,O,C,-1,0),COLOR6633EE;
STICKLINE(B,O,C,2.8,0),COLOR3666EE;
STICKLINE(B,O,C,2.1,0),COLOR2299EE;
STICKLINE(B,O,C,1.5,0),COLOR11AAEF;
STICKLINE(B,O,C,0.9,0),COLOR00BBFE;
STICKLINE(B,O,C,0.5,0),COLOR00CCFE;
STICKLINE(B,O,C,0.25,0),COLOR00DDFF;
STICKLINE(B,O,C,0.1,0),COLOR00EEFF;
STICKLINE(B,O,C,0.05,0),COLOR00FFFF;
DRAWICON(B AND REF(MA1,1) REF(MA1,2),L,1);