時間:=TIME=100000; N:=BARSLAST(時間),COLOR808080; 常數(shù):CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE; CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLOR808080; CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR808080; STICKLINE(時間=1,CS1,CS2,-1,0),COLOR808080; H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE; DRAWTEXT(CURRBARSCOUNT=1,阻力,'阻力'),COLOR00FFFF; 支撐:L1+P1*0.5/8,COLORRED,DOTLINE; DRAWTEXT(CURRBARSCOUNT=1,支撐,'支撐'),COLORA2A2FF; 中:(支撐+阻力)/2,COLORC0C0C0,DOTLINE; 現(xiàn)價:CLOSE,COLORWHITE,LINETHICK1; QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2; VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2; VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2; VAR3:=(VAR1+VAR2)/2; VAR4:=EMA(VAR3,30); VAR5:=EMA(VAR3,60); VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5); DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30)); 牽引線:VAR1,COLORYELLOW; 趨勢關(guān)注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED; 量價關(guān)注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE; 沖擊量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW; STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF; STICKLINE(沖擊量=1,QZS,VAR1,1,0),COLORYELLOW; DRAWTEXT(趨勢關(guān)注=1,EMA(VAR1,60),'多'),COLORRED; DRAWTEXT(量價關(guān)注=1,EMA(VAR1,60),'L0V'),COLORWHITE; MR:=C<支撐 AND CROSS(C,REF(C,2)); STICKLINE(CROSS(現(xiàn)價,支撐),C,中,2,0),COLOR00F0F0; STICKLINE(MR=1,支撐,中,2,0),COLOR00F0F0; DRAWICON(MR=1 OR CROSS(現(xiàn)價,支撐),中,34); STICKLINE(CROSS(支撐,現(xiàn)價),支撐,(支撐-中)/5+支撐,2,0),COLOR00F0F0; MC:=C>阻力 AND CROSS(REF(C,2),C); STICKLINE(CROSS(阻力,現(xiàn)價),C,中,2,0),COLORFFFF00; STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00; DRAWICON(MC=1 OR CROSS(阻力,現(xiàn)價),中,35); STICKLINE(CROSS(現(xiàn)價,阻力),阻力,阻力-(支撐-中)/5,2,0),COLORFFFF00; DRAWTEXT(ISLASTBAR,(支撐+阻力)/2,'中'),COLORWHITE; 均價:SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE; DRAWTEXT(CURRBARSCOUNT=4,均價,'均'),COLORFFFFFF,LINETHICK2; 最新:C,LINETHICK9,COLORFFFF00; IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED; AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C)); BB:=BETWEEN(C/AA,C+H,C-H); DRAWICON(ISLASTBAR AND C>REF(C,1),C,1); DRAWICON(ISLASTBAR AND C<REF(C,1),C,2); {分時均線} W:=BARSLAST(DAY-REF(DAY,1))+1; FSJX:SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW; IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN; |
|