N:=20,200,50; TS:=BARSLAST(L=LLV(L,N)); 開(kāi)始信號(hào):=FILTERX(TS=0,BARSSINCE(C)); 開(kāi)始天數(shù):=BARSLAST(開(kāi)始信號(hào)); 天數(shù)橫線:=CONST(開(kāi)始天數(shù)); 低點(diǎn):DRAWLINE(L=LLV(L,N),L,ISLASTBAR,REF(L,TS),1),COLOR00CC00; 高點(diǎn):DRAWLINE(L=LLV(L,N),CONST(HHV(H,天數(shù)橫線)),ISLASTBAR,REF(CONST(HHV(H,天數(shù)橫線)), TS),1),COLOR00CCCC; STICKLINE(開(kāi)始信號(hào),L,CONST(HHV(H,天數(shù)橫線)),0,0),COLOR00AA00; STICKLINE(ISLASTBAR,低點(diǎn),高點(diǎn),0,0),COLOR00AA00; C2:=REF(C,1); 漲停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW; STICKLINE(漲停,OPEN,CLOSE,1,0),COLORRED; STICKLINE(漲停,H,L,0,0),COLORRED; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW; STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN; 差:=(高點(diǎn)-低點(diǎn))/天數(shù)橫線; 收盤差:=CONST(C)-低點(diǎn); 對(duì)角差:=高點(diǎn)-低點(diǎn); 對(duì)角角度:ATAN((對(duì)角差/(對(duì)角差*((天數(shù)橫線-1)/天數(shù)橫線))-1)*100)*57.3,COLORFFFF00,NODRAW; 差60度:=(高點(diǎn)-低點(diǎn))*60/對(duì)角角度; 差45度:=(高點(diǎn)-低點(diǎn))*45/對(duì)角角度; 差55度:=(高點(diǎn)-低點(diǎn))*55/對(duì)角角度; 差50度:=(高點(diǎn)-低點(diǎn))*50/對(duì)角角度; 差65度:=(高點(diǎn)-低點(diǎn))*65/對(duì)角角度; 角度65:IF(TS>=0 AND 低點(diǎn)+(差65度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差65度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 角度50:IF(TS>=0 AND 低點(diǎn)+(差50度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差50度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 角度55:IF(TS>=0 AND 低點(diǎn)+(差55度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差55度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 對(duì)角線:IF(TS>=0 AND 低點(diǎn)+差*TS<=高點(diǎn),低點(diǎn)+差*TS,DRAWNULL),COLORYELLOW,LINETHICK2; 角度60:IF(TS>=0 AND 低點(diǎn)+(差60度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差60度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 角度45:IF(TS>=0 AND 低點(diǎn)+(差45度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差45度/天數(shù)橫線)*TS,DRAWNULL),COLORGREEN,LINETHICK1; 收盤角度:(收盤差*對(duì)角角度)/對(duì)角差,NODRAW; 收盤線:=IF(TS>=0 AND 低點(diǎn)+(收盤差/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(收盤差/天數(shù)橫線)*TS,DRAWNULL); 差40度:=(高點(diǎn)-低點(diǎn))*40/對(duì)角角度; 差35度:=(高點(diǎn)-低點(diǎn))*35/對(duì)角角度; 差30度:=(高點(diǎn)-低點(diǎn))*30/對(duì)角角度; 差25度:=(高點(diǎn)-低點(diǎn))*25/對(duì)角角度; 差20度:=(高點(diǎn)-低點(diǎn))*20/對(duì)角角度; 差15度:=(高點(diǎn)-低點(diǎn))*15/對(duì)角角度; 角度40:IF(TS>=0 AND 低點(diǎn)+(差40度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差40度/天數(shù)橫線)*TS,DRAWNULL),COLOR008080,LINETHICK1; 角度35:IF(TS>=0 AND 低點(diǎn)+(差35度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差35度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 角度30:IF(TS>=0 AND 低點(diǎn)+(差30度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差30度/天數(shù)橫線)*TS,DRAWNULL),COLORWHITE,LINETHICK1; 角度25:IF(TS>=0 AND 低點(diǎn)+(差25度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差25度/天數(shù)橫線)*TS,DRAWNULL),COLORLIBLUE,DOTLINE; 角度20:IF(TS>=0 AND 低點(diǎn)+(差20度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差20度/天數(shù)橫線)*TS,DRAWNULL),COLORGREEN,LINETHICK2; 角度15:IF(TS>=0 AND 低點(diǎn)+(差15度/天數(shù)橫線)*TS<=高點(diǎn),低點(diǎn)+(差15度/天數(shù)橫線)*TS,DRAWNULL),COLORWHITE,LINETHICK1; |
|
來(lái)自: 昵稱18509697 > 《指標(biāo)公式》