通达信变色趋势主图指标公式

通达信股底抽金指标公式

{参数:

N1:1/13/13

N2:1/34/34

N3:1/55/55

N4:1/89/89

}

VAR1:=IF(DATE>99991231,0,1);

VAR2:=zig(3,3)*VAR1>REF(ZIG(3,3),1)*VAR1 AND REF(ZIG(3,3),1)*VAR1<REF(ZIG(3,3),2)*VAR1;

VAR3:=ZIG(3,3)*VAR1<REF(ZIG(3,3),1)*VAR1 AND REF(ZIG(3,3),1)*VAR1>REF(ZIG(3,3),2)*VAR1;

VAR4:=BArslAst(VAR2)*VAR1<BARSLAST(VAR3)*VAR1;

VAR5:=BARSLAST(VAR3)*VAR1<BARSLAST(VAR2)*VAR1;

QS1: EMA(ZIG(3,3)*VAR1,N1), , COLOR00FF00;

QS2: EMA(REF(ZIG(3,3),1)*VAR1,N2), , COLORWHITE;

QS3: EMA(REF(ZIG(3,3),2)*VAR1,N3), , COLORBLUE;

QS4: EMA(REF(ZIG(3,3),3)*VAR1,N4), , COLORRED;

{指标网-股票公式网站 www.zhibiaow.com}

QS: EMA(REF(ZIG(3,3),4)*VAR1,255), , COLORYELLOW;

STICKLINE(VAR4 AND OPEN<CLOSE,OPEN,CLOSE,7,1), , COLORRED;

STICKLINE(VAR4 AND OPEN>=CLOSE,OPEN,CLOSE,7,0), , COLORRED;

STICKLINE(VAR2 AND VAR4,OPEN,CLOSE,7,1), , COLORRED;

STICKLINE(VAR4 AND OPEN<=CLOSE,HIGH,LOW,0.8,0), , COLORRED;

STICKLINE(VAR4 AND OPEN>CLOSE,LOW,HIGH,0.8,0), , COLORRED;

STICKLINE(VAR3 AND VAR5,OPEN,CLOSE,7,0), , COLORFFCC99;

STICKLINE(VAR5 AND OPEN>CLOSE,OPEN,CLOSE,7,0), , COLORFFCC99;

STICKLINE(VAR5 AND OPEN<CLOSE,OPEN,CLOSE,7,1), , COLORFFCC99;

STICKLINE(VAR5 AND OPEN<=CLOSE,HIGH,LOW,0.8,0), , COLORFFCC99;

STICKLINE(VAR5 AND OPEN>CLOSE,OPEN,HIGH,0.8,1), , COLORFFCC99;

STICKLINE(VAR5 AND OPEN>CLOSE,LOW,CLOSE,0.8,0), , COLORFFCC99;

通达信超跌反弹指标公式