底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100; 底部成本價:=COST(底部),COLORYELLOW,DOTLINE; 頂部:=100-底部; 頂部成本價:=COST(頂部),COLORGREEN,DOTLINE; 均值:=(底部+頂部)/2; 均值成本:=COST(均值),COLORRED,LINETHICK1,DOTLINE; JJ:=ABS(均值成本/C-1); DD:=DMA(CLOSE,JJ),LINETHICK2,COLORRED; JJ1:=ABS(底部成本價/C-1); DD1:=DMA(CLOSE,JJ1),LINETHICK2,COLORYELLOW; JJ2:=ABS(頂部成本價/C-1); DD2:=DMA(CLOSE,JJ2),LINETHICK2,COLORWHITE; STICKLINE(DD1 >= REF(DD1,1),3,2.1,0,0),COLOR009900; STICKLINE(DD1 >= REF(DD1,1),3,2.1,3.2,0),COLOR009900; STICKLINE(DD1 >= REF(DD1,1),3,2.1,2.5,0),COLOR00BB00; STICKLINE(DD1 >= REF(DD1,1),3,2.1,1.5,0),COLOR00DD00; STICKLINE(DD1 >= REF(DD1,1),3,2.1,0.5,0),COLOR00FF00; STICKLINE(DD1 >= REF(DD1,1),3,2.1,0,0),COLORFFFFFF; STICKLINE(DD >= REF(DD,1),2,1.1,3.2,0),COLOR000066; STICKLINE(DD >= REF(DD,1),2,1.1,2.0,0),COLOR000077; STICKLINE(DD >= REF(DD,1),2,1.1,1.5,0),COLOR000099; STICKLINE(DD >= REF(DD,1),2,1.1,0.9,0),COLOR0000CC; STICKLINE(DD >= REF(DD,1),2,1.1,0.5,0),COLOR0000FF; STICKLINE(DD >= REF(DD,1),2,1.1,0,0),COLORFFFFFF; STICKLINE(DD2 >= REF(DD2,1),1,0,3.2,0),COLORFF77FF; STICKLINE(DD2 >= REF(DD2,1),1,0,2.7,0),COLORFF33FF; STICKLINE(DD2 >= REF(DD2,1),1,0,2.1,0),COLORFF55FF; STICKLINE(DD2 >= REF(DD2,1),1,0,1,6),COLORFF77FF; STICKLINE(DD2 >= REF(DD2,1),1,0,0.8,0),COLORFF99FF; STICKLINE(DD2 >= REF(DD2,1),1,0,0.5,0),COLORFFBBFF; STICKLINE(DD2 >= REF(DD2,1),1,0,0.1,0),COLORFFDDFF; |
|