/*
A1:=BARSLAST(极顶);
CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1;
B1:=CURRBARSCOUNT=REFX1(A1,99999)+1;
D1:=BARSLAST(B1);
高1:=REFX1(REF(H,D1),99999);
A2:=REF(A1,A1+1)+A1+1;
B2:=CURRBARSCOUNT=REFX1(A2,99999)+1;
D2:=BARSLAST(B2);
高2:=REFX1(REF(H,D2),99999);
A3:=REF(A2,A1+1)+A1+1;
B3:=CURRBARSCOUNT=REFX1(A3,99999)+1;
D3:=BARSLAST(B3);
高3:=REFX1(REF(H,D3),99999);
DA1:=BARSLAST(极底);
DB1:=CURRBARSCOUNT=REFX1(DA1,99999)+1;
DD1:=BARSLAST(DB1);
低1:=REFX1(REF(L,DD1),99999);
DA2:=REF(DA1,DA1+1)+DA1+1;
DB2:=CURRBARSCOUNT=REFX1(DA2,99999)+1;
DD2:=BARSLAST(DB2);
低2:=REFX1(REF(L,DD2),99999);
DA3:=REF(DA2,DA1+1)+DA1+1;
DB3:=CURRBARSCOUNT=REFX1(DA3,99999)+1;
DD3:=BARSLAST(DB3);
低3:=REFX1(REF(L,DD3),99999);
三角型放大A:=低1<低2 AND 高2>高1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND REFX1(C,99999)>低2;
中枢A1:=IF(三角型放大A AND REFX1(C,99999)<高1,DB2,NULL);
STICKLINE(中枢A1,REFX1(C,99999),低2,0,0),COLORMAGENTA;
中枢A2:=IF(三角型放大A AND REFX1(C,99999)<高1,ISLASTBAR,NULL);
STICKLINE(中枢A2,REFX1(C,99999),低2,0,0),COLORMAGENTA;
DRAWLINE1(中枢A1=1,REFX1(C,99999),中枢A2=1,REFX1(C,99999),0),DOT,COLORMAGENTA;
DRAWLINE1(中枢A1=1,低2,中枢A2=1,低2,0),COLORMAGENTA;
{成立}
中枢AC1:=IF(三角型放大A AND REFX1(C,99999)>=高1,DB2,NULL);
STICKLINE(中枢AC1,高1,低1,0,0),COLORMAGENTA;
中枢AC2:=IF(三角型放大A AND REFX1(C,99999)>=高1,ISLASTBAR,NULL);
STICKLINE(中枢AC2,高1,低1,0,0),COLORMAGENTA;
DRAWLINE1(中枢AC1=1,高1,中枢AC2=1,高1,0),COLORMAGENTA;
DRAWLIN
文华财经期货软件指标公式源码多空分界指标 来自淘豆网m.daumloan.com转载请标明出处.