26 人贊同了該文章 MA30:=EMA(CLOSE,30); 強(qiáng)弱:=EMA(CLOSE,900); STICKLINE((MA30>強(qiáng)弱),MA30,強(qiáng)弱,0,-1),COLORLIGRAY; STICKLINE((MA30<強(qiáng)弱),MA30,強(qiáng)弱,0,-1),COLORLICYAN; H1:=MAX(DYNAINFO(3),DYNAINFO(5)); L1:=MIN(DYNAINFO(3),DYNAINFO(6)); P1:=H1-L1; 阻力:L1+P1*7/8,COLORLIMAGENTA,DOTLINE; 支撐:L1+P1*0.5/8,COLORCYAN,DOTLINE; 中:(支撐+阻力)/2,COLORLIGRAY,POINTDOT; 均價:SUM(V*C,0)/SUM(V,0),COLORYELLOW,DOTLINE; 現(xiàn)價:CLOSE,COLORWHITE,LINETHICK3; DRAWTEXT(ISLASTBAR AND 現(xiàn)價,現(xiàn)價,STRCAT('←',CON2STR(現(xiàn)價,2))),COLORYELLOW; STICKLINE(CROSS(支撐,現(xiàn)價),支撐,中,0,-1),COLORYELLOW; STICKLINE(CROSS(現(xiàn)價,阻力),阻力,中,0,-1),COLORGREEN; DRAWTEXT(LONGCROSS(支撐,現(xiàn)價,2),C*0.9982,' 買'),COLORYELLOW; DRAWTEXT(LONGCROSS(現(xiàn)價,阻力,2),C*1.0018,' 賣'),COLORCYAN; STICKLINE(C<支撐,支撐,C,1,0),COLORYELLOW; DRAWICON(CROSS(支撐,現(xiàn)價),(支撐-中)/5+支撐,26); STICKLINE(C>阻力,阻力,C,1,0),COLORLIGREEN; DRAWICON(CROSS(現(xiàn)價,阻力),阻力-(支撐-中)/5,15); DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'頂'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=8,支撐-0.003,'底'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=8,(支撐+阻力)/2,'中'),COLORLIRED; 成交額:=V*C/100,NODRAW; A2:=SUM((IF(((成交額/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交額,0)),0); A3:=SUM((IF(((成交額/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交額,0)),0); A6:=(A2+A3); A7:=IF((ISLASTBAR),((100*A2)/A6),0); A8:=IF((ISLASTBAR),((100*A3)/A6),0); DD1:=1; AAA1:=STRCAT(STRCAT('機(jī)構(gòu)買',CON2STR((100*A2)/A6,0)),'%'); AAA2:=STRCAT(STRCAT('機(jī)構(gòu)賣',CON2STR((100*A3)/A6,0)),'%'); AAA3:=STRCAT(STRCAT('機(jī)構(gòu)總買入',CON2STR((100*(A2-A3))/A6,0)),'%'); A000:=DRAWTEXT_FIX(DD1=1,0,0.02,0,AAA1); A001:=DRAWTEXT_FIX(DD1=1,0,0.13,0,AAA2); DRAWTEXT_FIX(DD1=1,0.842,1,0,AAA3),COLORYELLOW; |
|