SJTJ:=DATE<1590301;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK4;
B:=主趋势线>REF(主趋势线,1);
PARTLINE(B-1,主趋势线),COLORBLUE,LINETHICK4;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA AND SJTJ,H,L,0,0),COLORRED;
STICKLINE(AA AND SJTJ,O,C,3,1),COLORRED;
STICKLINE(AA AND SJTJ AND DD,O,C,3,0),COLORRED;
STICKLINE(BB AND SJTJ,H,L,0,0),COLORGREEN;
STICKLINE(BB AND SJTJ,O,C,3,1),COLORGREEN;
STICKLINE(BB AND SJTJ AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND SJTJ AND CC,H,L,0,1),COLORYELLOW;
STICKLINE(BB AND SJTJ AND CC,O,C,3,1),COLORYELLOW;
STICKLINE(BB AND SJTJ AND CC AND DD,O,C,3,0),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1,H,L,0,0),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1,O,C,3,1),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1 AND DD,O,C,3,0),COLORYELLOW;
{均线4}
AAA:=EMA((C+O+50*H+L)/50,4);
趋势线:EMA((C+O+H+12*L)/15.2,4);
PARTLINE(C>趋势线,趋势线),COLORMAGENTA,LINETHICK2;
PARTLINE(H<AAA,AAA),COLORWHITE,LINETHICK2;
PARTLINE(C<趋势线,趋势线),COLORWHITE;
最新价:PARTLINE(SJTJ, C),LINETHICK0,COLORYELLOW;