MA3:MA(C,3),COLORWHITE,LINETHICK2;{IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED;}MA13:MA(C,13),COLORYELLOW;MA18:MA(C,18),COLORMAGENTA,LINETHICK2;MA34:MA(C,34),COLOREA9E00;MA55:MA(C,55),COLORGREEN,LINETHICK2;MA118:MA(C,118),COLOR55AAFF,COLORBLUE;MA233:MA(C,233),COLORRED,COLORLIGRAY;JXB:(MA(CLOSE,5)-MA(CLOSE,18))/MA(CLOSE,18)*100,COLORGREEN,NODRAW;{IF(JXB>REF(JXB,1),JXB,DRAWNULL),COLORRED,LINETHICK2,NODRAW;}{MA1:MA(JXB,5),COLORYELLOW,NODRAW;}EXPMA5:EMA(CLOSE,5),DOTLINE,COLORBLACK,NODRAW;EXPMA6:EMA(CLOSE,6),DOTLINE,COLORWHITE;EXPMA12:EMA(CLOSE,12),DOTLINE,COLORLIGREEN;EXPMA21:EMA(CLOSE,21),DOTLINE,NODRAW;EXPMA50:EMA(CLOSE,50),DOTLINE,COLORBROWN;关注:CROSS(EXPMA5,EXPMA21),COLOR00FFFF,NODRAW;DRAWTEXT(关注,(H+ 0.16),'关'),COLORYELLOW;黄金线:EMA(CLOSE,225),POINTDOT,LINETHICK4,COLORYELLOW;成交均价:AMOUNT/VOL/100,COLORYELLOW,NODRAW;假阴真阳:=O>C AND L>REF(O,1) AND 成交均价>REF(C,1) ;DRAWTEXT(假阴真阳,H+0.09,'假'),COLORRED;单日量比:V/(REF(MA(V,5),1)/233*FROMOPEN),COLORLIRED,NODRAW;DRAWICON( CROSS(MA18,MA55),H+0.15,5); DRAWICON( CROSS(EXPMA12,EXPMA50),H+0.09,15); 立桩量:=VOL=HHV(VOL,5) AND VOL>2*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH+0.05,'立'),COLORGREEN;AA1:=BARSLAST(MA55>MA34 AND (MA34<MA18 OR MA34<MA13));BB1:=REF(COUNT(C<MA55,AA1)=AA1,1);CC1:=CROSS(C,MA55) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1;DRAWTEXT(芙蓉出水,H+0.14,'芙'),COLORFF00FF;C2:=REF(C,1); 非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); 涨停:=非ST涨停; STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR00FFFF; STICKLINE(涨停,H,L,0,0),COLOR00FFFF; 非ST跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); 跌停:=非ST跌停; STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN; 半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0); 半涨2:=IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); JRS:=半涨1 AND 半涨2 AND FINANCE(33)>0; STICKLINE(JRS,OPEN,CLOSE,2,0),COLOR0066FF; STICKLINE(JRS,H,L,0,0),COLOR0066FF; NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.58,0,0,NUMBER),COLORYELLOW;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.72,0.06,0,NUMBER),COLORYELLOW; VOL5:=MA(VOL,3),COLORWHITE;VOL10:=MA(VOL,13),COLORYELLOW;VOL40:=MA(VOL,34),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.05,'量托'),COLORWHITE; QA:=REF(H,10)=HHV(H,2*10+1);QB:=BACKSET(QA,10+1);QC:=FILTER(QB,10) AND H=HHV(H,10+1);QD:=BARSLAST(QC);QE:=IF(QC,CURRBARSCOUNT,0);QF:=IF(QD,REF(QE,QD),QE);QG:=CONST(QF);QH:=REF(QF,QD+1);QW:=CONST(QH);DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORRED;{DRAWLINE(CURRBARSCOUNT=QW,H,ISLASTBAR,REF(H,QW-1),1),COLORWHITE,DOTLINE;}{DRAWLINE(CURRBARSCOUNT=QG,H,ISLASTBAR,REF(H,QG-1),1),COLORWHITE,DOTLINE;} 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1));百日低量:=(VOL=LLV(VOL,100));倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1));四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4));四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩);前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORFF00FF{,COLORYELLOW};DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW,COLORLIGREEN; K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW; 总股本:=FINANCE(1)/100000000,POINTDOT,COLOR0000FF;流通股本:=FINANCE(7)/100000000,POINTDOT,COLORYELLOW;解禁股:=IF((流通股本-REF(流通股本,1))>0,(流通股本-REF(流通股本,1)),0),COLORYELLOW;{流通股增加}DRAWTEXT(解禁股>0, HIGH*1.05,'解禁'),COLORLIGREEN; A11:=CLOSE<OPEN;A12:=OPEN-CLOSE;{第一个阴线的实柱长}B11:=BARSLAST(CLOSE>=OPEN);B12:=REF(CLOSE,B11)-REF(OPEN,B11);{第一个阳线的实柱长}C10:=B11<3;C11:=A12-B12>0;C12:=VOL<REF(VOL,B11);C13:=VOL<REF(VOL,B11) AND REF(VOL,1)<REF(VOL,2);C14:=IF(B11=2,C13,C12);CC:=C10 AND C11 AND C13;{必须条件}G11:=VOL<SUM(VOL,5)/5;{好,不坏}G17:=VOL<(REF(VOL,B11)*1/4+REF(VOL,12)*3/4);{有副作用,禁用}G21:=VOL<(1/3*SUM(VOL,5)/5+1/3*REF(VOL,B11)+1/3*LLV(VOL,5));{好,不坏}G22:=10.00>100*SUM(DYNAINFO(37),5)/5;{小测试无副作用}G23:=10000000*(HIGH-LOW)/VOL;G24:=10000000*(REF(HIGH,B11)-REF(LOW,B11))/REF(VOL,B11);G241:=SUM(G24,12)/12;G25:=G23>G241;GG:=G11 AND G21 AND G22 AND G25;{重要的限制条件}F11:=CC AND GG;
DRAWICON(F11,HIGH*1.01,27);{输出三:长阴短柱};
|