HGW1:=(REF(OPEN,1)+REF(CLOSE,1))/2;
HGW2:=CLOSE;
HGW3:=MAX(HIGH,HGW1);
HGW4:=MIN(LOW,HGW1);
HGW5:=MA(HGW3-HGW4,5);
龙线:MA(HGW2,13)+HGW5/2;
凤线:MA(HGW2,13)-HGW5/2;
HGW6:=CROSS(HGW2,龙线);
HGW7:=CROSS(凤线,HGW2);
HGW8:=BARSLAST(HGW6);
HGW9:=BARSLAST(HGW7);
HGW10:=REF(HGW8,1)>HGW9 AND CROSS(CLOSE>龙线,0.5);
HGW11:=REF(HGW8,1)>HGW9 AND HGW8=0;
HGW12:=REF(HGW9,1)>HGW8 AND HGW9=0;
HGW18:=HGW2>HGW1 AND HGW8<HGW9;
HGW19:=HGW2<=HGW1 AND HGW8<HGW9;
DRAWICON(HGW10,HGW4*0.98,17);
DRAWTEXT(HGW11,HGW4*0.95,'买'),COLOR00FFFF;
DRAWICON(HGW12,HGW3,6);
DRAWTEXT(HGW12,HGW3*1.05,'卖'),COLORFFFF00;
STICKLINE(HGW18,HGW2,HGW1,2.7,0),COLORFF00FF;
STICKLINE(HGW18,HGW3,HGW2,0,0),COLORFF00FF;
STICKLINE(HGW18,HGW1,HGW4,0,0),COLORFF00FF;
STICKLINE(HGW19,HGW2,HGW1,2.7,0),COLORYELLOW;
STICKLINE(HGW19,HGW3,HGW1,0,0),COLORYELLOW;
STICKLINE(HGW19,HGW2,HGW4,0,0),COLORYELLOW;