{紅綠金盾線} {簡單買和賣} {INPUT:N(1,250,120);} NH:=120; KK:=BARSLAST(CURRBARSCOUNT=NH); GD:=CONST(IF(ISLASTBAR=1,HHV(H,KK),0)); DD:=CONST(IF(ISLASTBAR=1,LLV(L,KK),0)); KJ:=GD-DD; GD4:=IF(CURRBARSCOUNT<=NH/2,GD,DRAWNULL); DRAWBAND(GD4,RGB(80,80,30),DD+KJ/2,RGB(0,0,0));{該行設置背景色} 突破:REF(EMA(C,14),1)COLORRED,LINETHICK2; A1X:=(EMA(C,14)-突破)/突破*100,NODRAW; 多方:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK2; IF(A1X>=0,突破,DRAWNULL),COLORRED,LINETHICK2; 空方:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK2; IF(A1X<0 ,突破,DRAWNULL),COLORGREEN,LINETHICK2; DRAWTEXT_FIX(1,0.00,0.00,0,' 股票下載網 WWW.GPXIAZAI.COM'),COLORRED; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORRED; STICKLINE(CROSS(A1X,0),H,L,0,1)COLORRED; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(0,A1X),H,L,0,1)COLORGREEN; STICKLINE(突破>0,O,C,2,0), COLORRED; STICKLINE(突破>0,H,L,0,0), COLORRED; STICKLINE(A1X<0,O,C,2,0), COLORGREEN; STICKLINE(A1X<0,H,L,0,0), COLORGREEN; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(0,A1X),H,L,0,1)COLORGREEN; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(A1X,0),H,L,0,1)COLORYELLOW; STICKLINE(A1X>=0,多方,突破,0,-1)COLORRED; STICKLINE(A1X<0,空方,突破,0,-1)COLORGREEN; 平衡:IF(CURRBARSCOUNT<=NH,DD+KJ/2,DRAWNULL),COLOR0055FF; 壓力:IF(CURRBARSCOUNT<=NH,GD-KJ*0.191,DRAWNULL),COLOR00FF00; 支撐:IF(CURRBARSCOUNT<=NH,DD+KJ*0.191,DRAWNULL),COLOR00FFFF; 頂點:IF(CURRBARSCOUNT<=NH/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIRED,POINTDOT,LINETHICK3; 低點:IF(CURRBARSCOUNT<=NH/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,POINTDOT,LINETHICK3; STICKLINE(CCI>=200 AND H>=頂點,O,C,2,0),COLORLIRED; STICKLINE(CCI<=100 AND L<=低點,O,C,2,0),COLORMAGENTA; 阿鵬哥:=TOPRANGE(H);你真好:=LOWRANGE(L); 上內:=LLVBARS(H,阿鵬哥);上外:=LLVBARS(L,阿鵬哥); 下內:=HHVBARS(L,你真好);下外:=HHVBARS(H,你真好); 上力度:=HHV(L,上內+1)>LLV(H,上內+1); 下力度:=HHV(L,下內+1)>LLV(H,下內+1); 上包含:=COUNT(L>=REF(L,1),上外)>2 AND COUNT(H>=REF(H,1),上內)>2; 下包含:=COUNT(H<=REF(H,1),下外)>2 AND COUNT(L<=REF(L,1),下內)>2; 頂0:=阿鵬哥 AND 上力度 AND 上包含 AND 上外>3; 底0:=你真好 AND 下力度 AND 下包含 AND 下外>3; 頂分天數:=BARSLAST(頂0); 底分天數:=BARSLAST(底0); 含中間K線:=IF(頂分天數=0,底分天數,頂分天數)>=3; 頂:=頂0 AND 含中間K線 AND H=HHV(H,BARSLAST(底0)); 底:=底0 AND 含中間K線 AND L=LLV(L,BARSLAST(頂0)); NOTEXT上筆劃線:=DRAWLINE(底,L,頂,H,0); NOTEXT下筆劃線:=DRAWLINE(頂,H,底,L,0); 分界點:=NOTEXT上筆劃線 AND NOTEXT下筆劃線; 位置調整:= IF(PERIOD=11,0.02,{年} IF(PERIOD=10,0.02,{季} IF(PERIOD=9,0.02, {多日} IF(PERIOD=8,0.001,{多分鐘} IF(PERIOD=7,0.02, {月} IF(PERIOD=6,0.01, {周} IF(PERIOD=5,0.005, {日} IF(PERIOD=4,0.002,{60F} IF(PERIOD=3,0.001,{30F} IF(PERIOD=2,0.001,{15F} IF(PERIOD=1,0.0003,{5F} IF(PERIOD=0,0.0002,{1F}0)))))))))))); DRAWNUMBER(分界點 AND 頂,H+H*位置調整,H),COLORCYAN; DRAWNUMBER(分界點 AND 底,L,L),COLORLIMAGENTA; HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AAP:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AAP,HIGHN+1); CC2:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC2,H*1.01,2); AAAA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AAAA1,LOWN+1); CC1P:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1P,L*0.99,1); |
|
來自: 昵稱39457200 > 《待分類》