趋势线:MA(C,5),COLORFFEE3C,LINETHICK2;
CG:HHV(趋势线,2),COLORFFEE3C;{COLORFFDE00}
B:=CG,COLORWHITE;
G:MA(B,2),POINTDOT,COLOR333333;
D:=crOSS(B,G)*1000,COLORRED;
W:=CROSS(G,B)*1000,POINTDOT,COLORBLUE;
DRAWTEXT(W=1000, B+0.2,'←做空' ),COLOR00FF00;
DRAWTEXT(D=1000,B-0.07,'←做多'),COLOR0000DD;
DRAWICON(CG>=REF( CG,1),CG,1);
DRAWICON(趋势线<REF( 趋势线,1),趋势线,2);
DRAWICON(CG<REF( CG,1),CG,2);
粉红线做多:IF(CG>REF(CG,1),CG,DRAWNULL),COLORMAGENTA,LINETHICK4;
蓝色线做空:IF(CG<REF(CG,1),CG,DRAWNULL),COLORFFEE3C,LINETHICK2;