{公式名称:FF}
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'所属板块:'+BLKNAME),ALIGN4,colorgreen; CHECK1:=CHECKUSER(0);{ CHECK2:=USERNAME='liudong'; CHECK3:=IF(DATE>1110110,DATE<900101,DATE>900101);} M:=IF(DATATYPE=0 OR DATATYPE=1 OR DATATYPE=2 OR DATATYPE=3,0,1); A:=55; B:=34; E:=LLVBARS(CLOSE,A)+A; F:=HHVBARS(CLOSE,B)+B; JA:=SUM(CLOSE,E)/E; JB:=SUM(CLOSE,F)/F; AA:=IF(JA<>0,JA,CLOSE); BB:=IF(JB<>0,JB,CLOSE); KFZL:IF(BARSCOUNT(CLOSE)>=LLVBARS(CLOSE,A)+A,AA,REF(CLOSE,E)),CIRCLEDOT,colorFFFFFF; DFZL:IF(BARSCOUNT(CLOSE)>=HHVBARS(CLOSE,B)+B,BB,REF(CLOSE,F)),CIRCLEDOT,colorFFFF; KFYL:IF(BARSCOUNT(CLOSE)>=HHVBARS(CLOSE,B)+B,BB*(1.015+0.135*M),REF(CLOSE,F)),LINEDASH,colorFF00FF; DFZC:IF(BARSCOUNT(CLOSE )>=LLVBARS(CLOSE,A)+A,AA*(0.985-0.135*M),REF(CLOSE,E)),LINEDASH,colorFF00; |
