/* CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAAB:=(3*C+H+L+O)/6;
VVAR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(AAAB,3)+4*REF(AAAB,4)+3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AAAB,8))/36;
VVAR6:=(LLV(VVAR1,2)+LLV(VVAR1,4)+LLV(VVAR1,6))/3;
短线:IF(KK=0, VVAR1, NULL),COLORWHITE;
中线:IF(KK=0,VVAR6, NULL),COLORYELLOW;
FILLRGN1(短线>中线,中线,短线),RGB(200,10,10);
FILLRGN1(短线<=中线,中线,短线),RGB(200,10,10),RGB(10,200,10);
下跌:IF(KK=0 AND VVAR1=VVAR6,VVAR6, NULL),COLORGREEN;
中:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
上轨:IF(KK=1,中+3*STD(中,10),NULL),COLOR000088,LINETHICK1;
P2:=PEAK(1,1,2,1);
WP1:=PEAKBARS(1,1,1,1);
WP2:=PEAKBARS(1,1,2,1);
T1:=TROUGH(2,1,1,1);
T2:=TROUGH(2,1,2,1);
WT1:=TROUGHBARS(2,1,1,1);
WT2:=TROUGHBARS(2,1,2,1);
TJ1:=P1>T1 AND P2>T2 ;
ZD:=MAX(T1,T2);
ZG:=MIN(P1,P2);
LL:=MIN(T1,T2);
HH:=MAX(P1,P2);
TJ2:=FILTER(ZG>ZD,2);
TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));
TJ4:=TJ1&&TJ2&&NOT(TJ3);
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));
TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);
ZSD:=IF(TJ8,ZD,NULL);
ZSG:=IF(TJ8,ZG,NULL);
ZSH:=IF(TJ8,HH,NULL);
ZSL:=IF(TJ8,LL,NULL);
STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;
STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;
DRAWTEXT(DISP=2,ZSH
文华期货软件指标公式文华财经期货软件指标公式波段多空买卖点指标 来自淘豆网m.daumloan.com转载请标明出处.