DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK); N:=150;判断高低:=3; 高:=REF(HHV(H,N),判断高低); 近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3; 低:=REF(LLV(L,N),判断高低); 近期底:REFDATE(低,DATE),COLORRED,LINETHICK3; 涨跌:=REF(C,1); 涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0); DRAWICON(涨停,H*0.97,23); LAST3K:=CURRBARSCOUNT>4; |