第一部分【碎裂擒牛】1主图
图片
【碎裂擒牛】主图编写如下:
八戒1:=MA(CLOSE,14);
八戒2:=C/REF(C,1)>1.045 AND L=H AND C=H;
八戒3:=DYNAINFO(8)>0 AND V<REF(LLV(V,21),1 AND NOT(C=H AND C=L));
八戒4:=C=HHV(C,10) AND H=HHV(H,10) AND C>O*1.01 AND H<C*1.04;
八戒5:=3*SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1);
八戒6:=八戒5-2*SMA(SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1),3,1);
八戒8:=八戒6>90 AND BARSCOUNT(CLOSE)>30 AND REF(八戒6,2)<REF(八戒6,1);
八戒9:=八戒6<10 AND BARSCOUNT(CLOSE)>30 AND REF(八戒6,2)>REF(八戒6,1);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,1,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.5,2,0,GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0,3,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.07,0,0,'交易收入'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,CON2STR(FINANCE(20)/100000000,2)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.14,0,0,'主营毛利率'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.14,0.06,0,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.233,0,0,'收入同比增长'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.233,0.06,0,CON2STR(FINANCE(44),2)),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.34,0,0,'市销率'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.34,0.06,0,CON2STR(C*FINANCE(1)/FINANCE(20),2)),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,'净利润增长率'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,CON2STR(FINANCE(43),2)),COLORRED;
主力操作线:(EMA(CLOSE,14)),LINETHICK2,COLORLIGRAY;
主力资本线:(EMA(CLOSE,55)),LINETHICK2,COLORRED;
压力:八戒1+2*STD(CLOSE,14),DOTLINE,COLORBLUE;
支抓:八戒1-2*STD(CLOSE,14),DOTLINE,COLORBLUE;
IF(主力操作线>REF(主力操作线,1),主力操作线,DRAWNULL)COLORMAGENTA,LINETHICK2;
IF(主力操作线<REF(主力操作线,1),主力操作线,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(C/REF(C,1)<1.105 AND C/REF(C,1)>1.095 AND C=H,C,O,2,0),COLORLIMAGENTA;
STICKLINE(C/REF(C,1)>1.105 AND O<C ,C,O,2,0),COLORMAGENTA;
STICKLINE(C/REF(C,1)>1.095 AND L=H AND C=H,C,O*0.97,2,0),COLORLIRED;
STICKLINE(C/REF(C,1)>1.19 AND C=H,C,O,2,0),COLORRED;
STICKLINE(C/REF(C,1)>0.895 AND C/REF(C,1)<0.905 AND C=L,C,O,2,0),COLORBLUE;
STICKLINE(C/REF(C,1)<0.895,C,O,2,0),COLORLIBLUE;
STICKLINE(C/REF(C,1)<0.905 AND L=H AND C=H,C,O*0.97,2,0),COLORCYAN;
DRAWICON(八戒3 AND NOT(八戒2),LOW*0.97,16);
DRAWICON((八戒4 AND V>=HHV(V,10) AND V>(REF(V,1)*1.8)),L*0.95,1);
DRAWICON((八戒8 AND 八戒6<REF(八戒6,1)),H*1.05,12);
DRAWICON((八戒9 AND 八戒6>REF(八戒6,1) AND C>REF(C,1) AND C>O),L*0.95,11);
第二部分【MACD破前高】幅图2
图片
【MACD破前高】幅图2编写如下:
DIF:=EMA(VOL,12)-EMA(VOL,26);
DEA:=EMA(DIF,9);
MACD:=DIF-DEA,NODRAW;
STICKLINE(MACD>0,MACD,0,3,1),COLORRED;
STICKLINE(MACD<0,MACD,0,3,1),COLORGREEN;
八戒1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
八戒2:=CROSS(BACKSET(CROSS(0,MACD),REF(八戒1,1)+2),0.5);
八戒:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(八戒1,1)+2),0.5);
前高:DRAWLINE(八戒2,MACD,REF(八戒2,1),REF(MACD,1),1),COLORLIGREEN;
八戒3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
八戒4:=CROSS(BACKSET(CROSS(MACD,0),REF(八戒3,1)+2),0.5);
八戒5:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));
前低:DRAWLINE(八戒4,MACD,REF(八戒4,1),REF(MACD,1),1),COLORMAGENTA;
八戒6:=IF(MACD<0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)),
BARSCOUNT(C)),DRAWNULL);
八戒7:=BARSLAST(八戒6);
八戒8:=FILTERX(MACD<CONST(LLV(MACD,八戒5+1)),BARSCOUNT(C));
八戒9:=BARSLAST(八戒8);
本低:IF(八戒5+1>=1,CONST(LLV(MACD,八戒5+1)),DRAWNULL);
八戒10:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),八戒7)=1,0.5) AND 八戒7>=0;
至极:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,
IF(FILTERX(八戒,BARSCOUNT(C)),2,DRAWNULL));
八戒11:=(至极=1 OR 至极=2) AND MACD>0;
八戒12:=FILTERX(八戒11,BARSCOUNT(C));
本高:DRAWLINE(八戒12,MACD,REF(八戒12,1),REF(MACD,1),1),COLORWHITE;
横线:=CONST(REF(MACD,BARSLAST(八戒12)));
八戒13:=MACD>横线;
肇始点:=FILTERX(REFX(BARSLAST(八戒13),1)=1,BARSCOUNT(C));
天数:BARSLAST(肇始点),COLORYELLOW,NODRAW;
压力:DRAWLINE(肇始点,横线,八戒12,横线,0),COLORWHITE,DOTLINE;
支抓:DRAWLINE(八戒8,CONST(LLV(MACD,八戒5+1)),八戒6=1,MACD,0),COLOR8080FF,DOTLINE;
DRAWNUMBER(八戒6,CONST(LLV(MACD,八戒5+1))*0.9,八戒9);
DRAWNUMBER(八戒12,压力*1.1,天数);
八戒14:=IF(肇始点,BARSNEXT(八戒12),DRAWNULL);
红柱数目:IF(天数>0 AND 天数<=REF(八戒14,天数),SUM(MACD>0,天数),DRAWNULL),COLORRED,NODRAW;
横线肇始价:REF(C,天数),NODRAW;
空间评估:(横线肇始价-C)/C*100,NODRAW;
八戒15:=BARSLAST(八戒12);
八戒16:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),八戒12)=1,0.5) AND 八戒12>=0;
STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 AND MACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;
前高本高二分位:IF(MACD>0 AND 本高!=前高,DRAWLINE(八戒16,(前高+本高)/2,REF(八戒16,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;
八戒17:=STRCAT(STRCAT(STRCAT('〖','飞腾空间'),'〗'),CON2STR(IF(空间评估,空间评估,
DRAWNULL),2));
DRAWTEXT(八戒16,MACD*1.1,'本高征战'),COLORWHITE;
DRAWTEXT(八戒10,MACD*1.1,'本低征战'),COLORWHITE;
STICKLINE(MACD>前高,MACD,前高,1,0),COLORYELLOW;
STICKLINE(八戒16,MACD,0,1,0),COLORGREEN;
STICKLINE(MACD<0 AND MACD<前低 AND 前低<0,MACD,前低,1,0),COLORBLUE;
B1:=IF(CROSS(MACD<0,0.5),BARSNEXT(八戒6),DRAWNULL);
八戒18:=BARSLAST(MACD>0)-1;
STICKLINE(BARSLAST(八戒10)>=0 AND MACD<前低 AND MACD<0,MACD,前低,1,0),COLORGREEN;
STICKLINE(八戒10,MACD,0,1,0),COLORWHITE;
STICKLINE(MACD>前高 AND 本高>前高 AND BARSLAST(八戒16)>0,
MACD,前高,1,0),COLORRED;
DRAWTEXT(八戒2 AND 八戒2!=八戒11,(MACD/10)*9,'前');
DRAWTEXT(八戒2 AND 八戒2!=八戒11,MACD/10,'高');
DRAWTEXT(八戒12,(MACD/10)*9,'本'),COLORWHITE;
DRAWTEXT(八戒12,MACD/10,'高'),COLORWHITE;
DRAWTEXT(八戒6,(MACD/10)*9,'低'),COLORRED;
DRAWTEXT(八戒6,MACD/10,'本'),COLORRED;
IF(BARSLAST(八戒10)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE;
本站仅提供存储工作,通盘本体均由用户发布,如发现存害或侵权本体,请点击举报。