STICKLINE(D =HHV(D,21) AND REF(D,1) REF(HHV(D,21),1),趋势J1,趋势J2,2,0);
WH:DRAWLINE(D =HHV(D,21),D,D =LLV(D,21),D,1);
买:IF(CROSS(趋势J1,WH)ANDCROSS(趋势J2,WH),20,0);
WL:DRAWLINE(REF(D,1) =REF(LLV(D,21),1),D,D =HHV(D,21),D,1);
卖:IF(CROSS(WL,趋势J1)ANDCROSS(WL,趋势J2),80,100);