N:=120; K:=BARSLAST(CURRBARSCOUNT=N); GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高點(diǎn)} DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低點(diǎn)} KJ:=GD-DD;{高低點(diǎn)差值=分區(qū)高度} GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL); 高區(qū):IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINETHICK2; 低區(qū):IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LINETHICK2; 平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW; 低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF00; 高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FFFF; 支撐:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLOR00FFFF; 強(qiáng)勢(shì): IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF; 突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR0000FF; 警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLOR00FFFF; 壓力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLOR00FF00; 低漲:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW; 天數(shù):BARSLAST(L=DD),COLORCYAN,NODRAW; 頂點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSSDOT; 低點(diǎn):IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,CROSSDOT; STICKLINE(CCI>=200 AND H>=頂點(diǎn),O,C,2,0),COLORBLUE; STICKLINE(CCI<=100 AND L<=低點(diǎn),O,C,2,0),COLORYELLOW; DRAWBAND(高區(qū),RGB(120,20,0),平衡,RGB(0,0,0)); DRAWBAND(平衡,RGB(80,0,100),低區(qū),RGB(0,0,0)); DRAWBAND(高,RGB(100,100,0),壓力,RGB(0,0,0)); DRAWBAND(壓力,RGB(0,80,0),警示,RGB(0,0,0)); DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0)); DRAWBAND(突破,RGB(120,0,120),強(qiáng)勢(shì),RGB(0,0,0)); DRAWBAND(強(qiáng)勢(shì),RGB(120, 0,0),支撐,RGB(0,0,0)); DRAWBAND(支撐,RGB(80,80,80),低,RGB(0,0,0)); STICKLINE(CURRBARSCOUNT=N,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR408080; STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN; STICKLINE(CURRBARSCOUNT<=N/2,支撐,支撐,2,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/2,強(qiáng)勢(shì),強(qiáng)勢(shì),2,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLORABABAB; STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR00FFFF; STICKLINE(CURRBARSCOUNT<=N/2,壓力,壓力,2,0),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=10,壓力,'壓力-0.809'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=10,強(qiáng)勢(shì),'強(qiáng)勢(shì)-0.382'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=10,支撐,'支撐-0.191'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【風(fēng)險(xiǎn)區(qū)】--高拋避險(xiǎn)'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示區(qū)】--逢高減倉'),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破區(qū)】--主力拉升'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升區(qū)】--強(qiáng)勢(shì)畜銳'),COLORFFFF80; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【關(guān)注區(qū)】--逢低買入'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸區(qū)】--大膽買入'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=N/2+40,GD-KJ*0.25,'【拉升區(qū)】'),COLORRED; DRAWTEXT(CURRBARSCOUNT=N/2+40,DD+KJ*0.25,'【持股區(qū)】'),COLORYELLOW; 第一防線:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4; 第二防線:REFDATE(支撐,DATE),POINTDOT,COLORWHITE,LINETHICK4; {今日保護(hù)價(jià):(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;} DRAWKLINE(H,O,L,C); AHC1:=CLOSE*VOL; AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34); 上軌:=1.06*AHC22,COLOR40FF00,LINETHICK1; 下軌:=AHC22*0.94; {STICKLINE(上軌>下軌,上軌,下軌,5,0),COLOR555555;} ZT:=REF(C,1)*1.1-C<0.01 AND H=C; 啟爆:=CROSS(C,上軌) OR CROSS(C,下軌) AND ZT; DRAWTEXT(啟爆,L,'啟爆'),COLORCYAN; STICKLINE(啟爆,C,O,3,1),COLORWHITE; STICKLINE(啟爆,C,O,1,0),COLORGREEN;
1.股價(jià)高于平均線,視為強(qiáng)勢(shì);股價(jià)低于平均線,視為弱勢(shì)
2.平均線向上漲升,具有助漲力道;平均線向下跌降,具有助跌力道;
3.二條以上平均線向上交叉時(shí),買進(jìn);
4.二條以上平均線向下交叉時(shí),賣出;
5.移動(dòng)平均線的信號(hào)經(jīng)常落后股價(jià),若以EXPMA 、VMA 輔助,可以改善。
|