文华财经变色多空K线均线波段交易指标公式源码:
ISMAININDEX:=1;
PARM1:=4;
PARM2:=6;
PARM3:=9;
PARM4:=13;
PARM5:=18;
PARM6:=24;
PB1:=(EMA(CLOSE,PARM1)+MA(CLOSE,PARM1*2)+MA(CLOSE,PARM1*4))/3;
PB2:=(EMA(CLOSE,PARM2)+MA(CLOSE,PARM2*2)+MA(CLOSE,PARM2*4))/3;
PB3:=(EMA(CLOSE,PARM3)+MA(CLOSE,PARM3*2)+MA(CLOSE,PARM3*4))/3;
PB4:=(EMA(CLOSE,PARM4)+MA(CLOSE,PARM4*2)+MA(CLOSE,PARM4*4))/3;
PB5:=(EMA(CLOSE,PARM5)+MA(CLOSE,PARM5*2)+MA(CLOSE,PARM5*4))/3;
PB6:(EMA(CLOSE,PARM6)+MA(CLOSE,PARM6*2)+MA(CLOSE,PARM6*4))/3,COLORWHITE,LINETHICK2;
DT:=PB1>PB2&&PB2>PB3&&PB3>PB4&&PB4>PB5&&PB5>PB6;
KT:=PB1<PB2&&PB2<PB3&&PB3<PB4&&PB4<PB5&&PB5<PB6;
STICKLINE(C>REF(C,1)&&DT,O,C,3,1),COLORYELLOW;
STICKLINE(C<=REF(C,1)&&DT,O,C,3,0),COLORYELLOW;
STICKLINE1(C>REF(C,1)&&DT,H,MAX(O,C),0,1),COLORYELLOW;
STICKLINE1(C>REF(C,1)&&DT,MIN(O,C),L,0,1),COLORYELLOW;
STICKLINE1(C<=REF(C,1)&&DT,H,MAX(O,C),0,0),COLORYELLOW;
STICKLINE1(C<=REF(C,1)&&DT,MIN(O,C),L,0,0),COLORYELLOW;
STICKLINE(C>REF(C,1)&&KT,O,C,3,1),COLORBLUE;
STICKLINE(C<=REF(C,1)&&KT,O,C,3,0),COLORBLUE;
STICKLINE1(C>REF(C,1)&&KT,H,MAX(O,C),0,1),COLORBLUE;
STICKLINE1(C>REF(C,1)&&KT,MIN(O,C),L,0,1),COLORBLUE;
STICKLINE1(C<=REF(C,1)&&KT,H,MAX(O,C),0,0),COLORBLUE;
STICKLINE1(C<=REF(C,1)&&KT,MIN(O,C),L,0,0),COLORBLUE;