以下是通达信三角循环副图/选股指标
A:=IF(BARSLAST(CROSS(INDEXC,EMA(INDEXC,27)))<BARSLAST(CROSS(EMA(INDEXC,27),INDEXC)),BARSLAST(CROSS(INDEXC,EMA(INDEXC,27)))+1,0);
A1:=IF(BARSLAST(CROSS(C,EMA(C,13)))<BARSLAST(CROSS(EMA(C,13),C)),BARSLAST(CROSS(C,EMA(C,13)))+1,0),COLORYELLOW;
A2:=IF(BARSLAST(CROSS(C,EMA(C,27)))<BARSLAST(CROSS(EMA(C,27),C)),BARSLAST(CROSS(C,EMA(C,27)))+1,0),COLORRED;
A3:=IF(BARSLAST(CROSS(C,EMA(C,60)))<BARSLAST(CROSS(EMA(C,60),C)),BARSLAST(CROSS(C,EMA(C,60)))+1,0),COLORGREEN;
A4:=IF(BARSLAST(CROSS(C,EMA(C,120)))<BARSLAST(CROSS(EMA(C,120),C)),BARSLAST(CROSS(C,EMA(C,120)))+1,0)COLORLIBLUE,LINETHICK2;
A5:=IF(BARSLAST(CROSS(C,EMA(C,250)))<BARSLAST(CROSS(EMA(C,250),C)),BARSLAST(CROSS(C,EMA(C,250)))+1,0),COLORBLUE;
A6:=IF(BARSLAST(CROSS(C,EMA(C,480)))<BARSLAST(CROSS(EMA(C,480),C)),BARSLAST(CROSS(C,EMA(C,480)))+1,0),COLORMAGENTA;
A7:=A<=16 AND A1=0 AND A2=0 AND A3=0 AND A4=0 AND A5=32 AND A6<=300 ;
A8:=A<=19 AND A1=0 AND A2=0 AND A3=0 AND A4=0 AND (A5=0 OR A5=19) OR A6=300 ;
【二】:FILTER(A7 OR A8,15) AND REF(O,1)/REF(L,1)<1.0045 AND REF(C,1)/REF(O,1)>1.015,COLORLIBLUE,LINETHICK3;