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XB_08:=TDXB_03>TDXB_04 AND TDXAB_Z18>TDXAB_Z19; TDXB_09:=TDXAB_O1<TDXAB_Z18 AND TDXAB_C1>TDXAB_O1; TDXB_10:=TDXAB_O1>TDXAB_Z18 AND TDXAB_C1>TDXAB_O1 AND TDXAB_C1/REF(TDXAB_C1,1)<1.09; TDXB_11:=TDXAB_O1>TDXAB_Z18 AND TDXAB_C1<TDXAB_O1; 买点:=TDXB_08 AND TDXB_09 ; 减仓:=TDXB_08 AND TDXB_10; 清仓:=TDXB_08 AND TDXB_11; DRAWTEXT(买点,TDXAB_L1*0.98,'↑买进'),COLORRED; DRAWTEXT(减仓,TDXAB_H1*1.02,'↓减仓'),COLORFFFF00; DRAWTEXT(清仓,TDXAB_H1*1.03,'↓清仓'), COLOR00FF00; DRAWTEXT_FIX(1,0.1,1,0,FGBLOCK),COLORFF00FF; DRAWTEXT_FIX(1,0.935,1,0,HYBLOCK),COLORFF00FF; DRAWTEXT_FIX(1,0.87,1,0,DYBLOCK),COLORFF00FF; DRAWTEXT_FIX(ISLASTBAR,0.05,0.05,0,GNBLOCK),COLORFF00FF,LINETHICK2;