您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

你好老师,帮忙看下 [文华财经]

  • 咨询内容:  这个里面的白色小块怎么去掉,其他不变
    CAPITAL:=GETPRICE1('通股本';C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE1(涨停,OPEN,CLOSE,2,0),COLORRED;STICKLINE1(涨停,H,L,0,0),COLORRED;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE1(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE1(跌停,H,L,0,1),COLORGREEN;圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10,NODRAW;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,NODRAW;石:=SMA(灵,13,8),NODRAW;仙:=CEILING(SMA(石,13,8),1),NODRAW;编著:=SMA(圣,21,8),NODRAW;AABB:=IF(L,REFX1(L,10000),NULL),NODRAW;STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF,NODRAW;//VARZT:=BARSLAST(平台启动);STICKLINE(仙-编著>75,AABB,AABB*0.98,15,1),COLORLIGHTGREY,NODRAW;
    //DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'台启动',COLORYELLOW;
    AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;//DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));FILLRGN(VAR1,H,O,RGB(155,50,50));FILLRGN(VAR6,H,O,RGB(250,250,0));短线:VAR1,COLORWHITE,NODRAW;中线:VAR6,COLORYELLOW,NODRAW;下跌:IF(VAR1=VAR6,VAR6,NULL),COLORGREEN,NODRAW;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5),NODRAW;TJ2:=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))),COLORGREEN,NODRAW;突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0))),COLORGREEN,NODRAW;三天法则:=TJ3=1;成立:=三天法则 AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.99,'#39),COLORYELLOW;/*STICKLINE1(C>=O,C,O,3,0),COLOR000045;STICKLINE1(C>=O,C,O,2.5,0),COLOR000065;STICKLINE1(C>=O,C,O,2,0),COLOR000085;STICKLINE1(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE1(C>=O,C,O,1,0),COLOR0000C5;STICKLINE1(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE1(C>=O,H,L,0,0),COLOR0000F5;STICKLINE1(C<O,C,O,3,0),COLOR353500;STICKLINE1(C<O,C,O,2.5,0),COLOR454500;STICKLINE1(C<O,C,O,2,0),COLOR555500;STICKLINE1(C<O,C,O,1.5,0),COLOR656500;STICKLINE1(C<O,C,O,1,0),COLOR757500;STICKLINE1(C<O,C,O,0.5,0),COLOR858500;STICKLINE1(C<O,H,L,0,0),COLOR959500;*/CURRBARSCOUNT:=DATACOUNT-BARPOS+1;HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);
    DINGBU:=IF(DDD,REF(H,DDD),H);//{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=REFX1(DINGBUTS,10000);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=REFX1(DINGBUTS1,10000);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORBLUE,LINETHICK1;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=REFX1(DDTS1,10000);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=REFX1(DDTS2,10000);DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORRED,LINETHICK1;//ZGSTAR:=(上轨+下轨)/2;//ZGEND:=CONST((上轨+下轨)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);//DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK1;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1,0)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIGZAG(C,3,6)>REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)<=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)<=REF(ZIGZAG(C,3,6),3);VAR12:=ZIGZAG(C,3,6)<REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)>=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)>=REF(ZIGZAG(C,3,6),3);VAR13:=ZIGZAG(C,3,22)>REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)<=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)<=REF(ZIGZAG(C,3,22),3);VAR14:=ZIGZAG(C,3,22)<REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)>=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)>=REF(ZIGZAG(C,3,22),3);VAR15:=ZIGZAG(C,3,51)>REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)<=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)<=REF(ZIGZAG(C,3,51),3);VAR16:=ZIGZAG(C,3,51)<REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)>=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)>=REF(ZIGZAG(C,3,51),3);VAR17:=ZIGZAG(C,3,72)>REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)<=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)<=REF(ZIGZAG(C,3,72),3);VAR18:=ZIGZAG(C,3,72)<REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)>=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)>=REF(ZIGZAG(C,3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF( 买2>0,LOW*0.99,NULL),COLORYELLOW;DRAWTEXT( 买2>0,LOW*0.99,'',COLORYELLOW;S:IF(卖1>0,HIGH*1.01,NULL);DRAWTEXT(卖1>0,HIGH*1.02,'',COLORCYAN;ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2,  COLORFF00FF,NODRAW;D:=EMA(K,5),  COLORWHITE,NODRAW;J:=K*3-D*2,COLORYELLOW,NODRAW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'顶' ,COLORWHITE;

     

     来源:程序化99

  • 文华技术人员:

     修改参考:

     

    CAPITAL:=GETPRICE1('通股本';
    C2:=REF(C,1);
    涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
    STICKLINE1(涨停,OPEN,CLOSE,2,0),COLORRED;
    STICKLINE1(涨停,H,L,0,0),COLORRED;
    跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
    STICKLINE1(跌停,OPEN,CLOSE,2,0),COLORGREEN;
    STICKLINE1(跌停,H,L,0,1),COLORGREEN;
    圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10,NODRAW;
    灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,NODRAW;
    石:=SMA(灵,13,8),NODRAW;
    仙:=CEILING(SMA(石,13,8),1),NODRAW;
    编著:=SMA(圣,21,8),NODRAW;
    AABB:=IF(L,REFX1(L,10000),NULL),NODRAW;
    //DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'台启动',COLORYELLOW;
    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
    VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
    VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
    VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
    VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    //DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
    FILLRGN(VAR1,H,O,RGB(155,50,50));
    FILLRGN(VAR6,H,O,RGB(250,250,0));
    短线:VAR1,COLORWHITE,NODRAW;
    中线:VAR6,COLORYELLOW,NODRAW;
    下跌:IF(VAR1=VAR6,VAR6,NULL),COLORGREEN,NODRAW;
    TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
    立桩量:=FILTER(TJ1,5),NODRAW;
    TJ2:=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))),COLORGREEN,NODRAW;
    突破:=TJ2=1;
    TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0))),COLORGREEN,NODRAW;
    三天法则:=TJ3=1;
    成立:=三天法则 AND 突破;
    条件成立:=FILTER(成立,3);
    DRAWTEXT(条件成立,L*0.99,'#39),COLORYELLOW;
    /*STICKLINE1(C>=O,C,O,3,0),COLOR000045;
    STICKLINE1(C>=O,C,O,2.5,0),COLOR000065;
    STICKLINE1(C>=O,C,O,2,0),COLOR000085;
    STICKLINE1(C>=O,C,O,1.5,0),COLOR0000A5;
    STICKLINE1(C>=O,C,O,1,0),COLOR0000C5;
    STICKLINE1(C>=O,C,O,0.5,0),COLOR0000E5;
    STICKLINE1(C>=O,H,L,0,0),COLOR0000F5;
    STICKLINE1(C<O,C,O,3,0),COLOR353500;
    STICKLINE1(C<O,C,O,2.5,0),COLOR454500;
    STICKLINE1(C<O,C,O,2,0),COLOR555500;
    STICKLINE1(C<O,C,O,1.5,0),COLOR656500;
    STICKLINE1(C<O,C,O,1,0),COLOR757500;
    STICKLINE1(C<O,C,O,0.5,0),COLOR858500;
    STICKLINE1(C<O,H,L,0,0),COLOR959500;
    */
    CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
    HIGHN:=10;
    LOWN:=10;
    HIGHDISPLAY:=0;
    LOWDISPLAY:=0;
    ZGDISPLAY:=0;
    MADISPLAY:=0;
    AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
    QY:=BACKSET(AA,HIGHN+1);
    CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
    DDD:=BARSLAST(CC);
    GDTS:=IF(CC,CURRBARSCOUNT,0);


    DINGBU:=IF(DDD,REF(H,DDD),H);
    //{顶部}
    DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
    DINGBU1:=REF(DINGBU,DDD+1);
    GDCS1:=REFX1(DINGBUTS,10000);
    DINGBUTS1:=REF(DINGBUTS,DDD+1);
    GDCS2:=REFX1(DINGBUTS1,10000);
    DINGBU2:=REF(DINGBU1,DDD+1);
    MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
    DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORBLUE,LINETHICK1;
    DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
    DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
    AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
    QY1:=BACKSET(AA1,LOWN+1);
    CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
    DD1:=BARSLAST(CC1);
    DDTS:=IF(CC1,CURRBARSCOUNT,0);
    YDB:=IF(DD1,REF(L,DD1),L);
    DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
    DDCS1:=REFX1(DDTS1,10000);
    ZDB:=REF(YDB,DD1+1);
    DDTS2:=REF(DDTS1,DD1+1);
    DDCS2:=REFX1(DDTS2,10000);
    DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORRED,LINETHICK1;
    //ZGSTAR:=(上轨+下轨)/2;
    //ZGEND:=CONST((上轨+下轨)/2);
    STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
    //DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK1;
    DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT;
    DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
    VAR7:=0;
    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
    VAR10:=IF(TROUGHBARS(3,16,1,0)=0 AND HIGH>LOW+0.04,4,0);
    VAR11:=ZIGZAG(C,3,6)>REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)<=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)<=REF(ZIGZAG(C,3,6),3);
    VAR12:=ZIGZAG(C,3,6)<REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)>=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)>=REF(ZIGZAG(C,3,6),3);
    VAR13:=ZIGZAG(C,3,22)>REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)<=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)<=REF(ZIGZAG(C,3,22),3);
    VAR14:=ZIGZAG(C,3,22)<REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)>=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)>=REF(ZIGZAG(C,3,22),3);
    VAR15:=ZIGZAG(C,3,51)>REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)<=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)<=REF(ZIGZAG(C,3,51),3);
    VAR16:=ZIGZAG(C,3,51)<REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)>=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)>=REF(ZIGZAG(C,3,51),3);
    VAR17:=ZIGZAG(C,3,72)>REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)<=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)<=REF(ZIGZAG(C,3,72),3);
    VAR18:=ZIGZAG(C,3,72)<REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)>=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)>=REF(ZIGZAG(C,3,72),3);
    VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
    买1:=VAR10;
    买2:=(VAR11+VAR13+VAR15+VAR17);
    卖1:=(VAR12+VAR14+VAR16+VAR18);
    B:IF( 买2>0,LOW*0.99,NULL),COLORYELLOW;
    DRAWTEXT( 买2>0,LOW*0.99,'',COLORYELLOW;
    S:IF(卖1>0,HIGH*1.01,NULL);
    DRAWTEXT(卖1>0,HIGH*1.02,'',COLORCYAN;
    ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
    VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
    K:=EMA(VAR7,5)*2,  COLORFF00FF,NODRAW;
    D:=EMA(K,5),  COLORWHITE,NODRAW;
    J:=K*3-D*2,COLORYELLOW,NODRAW;
    VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
    HS:=VOL/CAPITAL*100, COLORGREEN;
    VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    VAR1A:=IF(VARE>0,VARE,0);
    VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
    VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
    DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'顶' ,COLORWHITE;

     

     

     来源: WWW.CXH99.COM

  • 文华客服: 老师,再 改成很小的方块,用虚线试试,我对照一下,那个更好,辛苦了

     

  • 网友回复:

    方块是一条压力线,给您修改为灰色虚线,您比对一下:

     

    CAPITAL:=GETPRICE1('通股本';
    C2:=REF(C,1);
    涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
    STICKLINE1(涨停,OPEN,CLOSE,2,0),COLORRED;
    STICKLINE1(涨停,H,L,0,0),COLORRED;
    跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
    STICKLINE1(跌停,OPEN,CLOSE,2,0),COLORGREEN;
    STICKLINE1(跌停,H,L,0,1),COLORGREEN;
    圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10,NODRAW;
    灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,NODRAW;
    石:=SMA(灵,13,8),NODRAW;
    仙:=CEILING(SMA(石,13,8),1),NODRAW;
    编著:=SMA(圣,21,8),NODRAW;
    AABB:=IF(L,REFX1(L,10000),NULL),NODRAW;


    AABB1:IF(仙-编著>75,AABB,NULL),DOT,COLORGRAY;

    //DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'台启动',COLORYELLOW;


    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
    VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
    VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
    VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
    VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    //DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
    FILLRGN(VAR1,H,O,RGB(155,50,50));
    FILLRGN(VAR6,H,O,RGB(250,250,0));
    短线:VAR1,COLORWHITE,NODRAW;
    中线:VAR6,COLORYELLOW,NODRAW;
    下跌:IF(VAR1=VAR6,VAR6,NULL),COLORGREEN,NODRAW;
    TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
    立桩量:=FILTER(TJ1,5),NODRAW;
    TJ2:=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))),COLORGREEN,NODRAW;
    突破:=TJ2=1;
    TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0))),COLORGREEN,NODRAW;
    三天法则:=TJ3=1;
    成立:=三天法则 AND 突破;
    条件成立:=FILTER(成立,3);
    DRAWTEXT(条件成立,L*0.99,'#39),COLORYELLOW;
    /*STICKLINE1(C>=O,C,O,3,0),COLOR000045;
    STICKLINE1(C>=O,C,O,2.5,0),COLOR000065;
    STICKLINE1(C>=O,C,O,2,0),COLOR000085;
    STICKLINE1(C>=O,C,O,1.5,0),COLOR0000A5;
    STICKLINE1(C>=O,C,O,1,0),COLOR0000C5;
    STICKLINE1(C>=O,C,O,0.5,0),COLOR0000E5;
    STICKLINE1(C>=O,H,L,0,0),COLOR0000F5;
    STICKLINE1(C<O,C,O,3,0),COLOR353500;
    STICKLINE1(C<O,C,O,2.5,0),COLOR454500;
    STICKLINE1(C<O,C,O,2,0),COLOR555500;
    STICKLINE1(C<O,C,O,1.5,0),COLOR656500;
    STICKLINE1(C<O,C,O,1,0),COLOR757500;
    STICKLINE1(C<O,C,O,0.5,0),COLOR858500;
    STICKLINE1(C<O,H,L,0,0),COLOR959500;
    */
    CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
    HIGHN:=10;
    LOWN:=10;
    HIGHDISPLAY:=0;
    LOWDISPLAY:=0;
    ZGDISPLAY:=0;
    MADISPLAY:=0;
    AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
    QY:=BACKSET(AA,HIGHN+1);
    CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
    DDD:=BARSLAST(CC);
    GDTS:=IF(CC,CURRBARSCOUNT,0);


    DINGBU:=IF(DDD,REF(H,DDD),H);
    //{顶部}
    DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
    DINGBU1:=REF(DINGBU,DDD+1);
    GDCS1:=REFX1(DINGBUTS,10000);
    DINGBUTS1:=REF(DINGBUTS,DDD+1);
    GDCS2:=REFX1(DINGBUTS1,10000);
    DINGBU2:=REF(DINGBU1,DDD+1);
    MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
    DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORBLUE,LINETHICK1;
    DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
    DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
    AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
    QY1:=BACKSET(AA1,LOWN+1);
    CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
    DD1:=BARSLAST(CC1);
    DDTS:=IF(CC1,CURRBARSCOUNT,0);
    YDB:=IF(DD1,REF(L,DD1),L);
    DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
    DDCS1:=REFX1(DDTS1,10000);
    ZDB:=REF(YDB,DD1+1);
    DDTS2:=REF(DDTS1,DD1+1);
    DDCS2:=REFX1(DDTS2,10000);
    DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORRED,LINETHICK1;
    //ZGSTAR:=(上轨+下轨)/2;
    //ZGEND:=CONST((上轨+下轨)/2);
    STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
    //DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK1;
    DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT;
    DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;
    VAR7:=0;
    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
    VAR10:=IF(TROUGHBARS(3,16,1,0)=0 AND HIGH>LOW+0.04,4,0);
    VAR11:=ZIGZAG(C,3,6)>REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)<=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)<=REF(ZIGZAG(C,3,6),3);
    VAR12:=ZIGZAG(C,3,6)<REF(ZIGZAG(C,3,6),1) AND REF(ZIGZAG(C,3,6),1)>=REF(ZIGZAG(C,3,6),2) AND REF(ZIGZAG(C,3,6),2)>=REF(ZIGZAG(C,3,6),3);
    VAR13:=ZIGZAG(C,3,22)>REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)<=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)<=REF(ZIGZAG(C,3,22),3);
    VAR14:=ZIGZAG(C,3,22)<REF(ZIGZAG(C,3,22),1) AND REF(ZIGZAG(C,3,22),1)>=REF(ZIGZAG(C,3,22),2) AND REF(ZIGZAG(C,3,22),2)>=REF(ZIGZAG(C,3,22),3);
    VAR15:=ZIGZAG(C,3,51)>REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)<=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)<=REF(ZIGZAG(C,3,51),3);
    VAR16:=ZIGZAG(C,3,51)<REF(ZIGZAG(C,3,51),1) AND REF(ZIGZAG(C,3,51),1)>=REF(ZIGZAG(C,3,51),2) AND REF(ZIGZAG(C,3,51),2)>=REF(ZIGZAG(C,3,51),3);
    VAR17:=ZIGZAG(C,3,72)>REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)<=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)<=REF(ZIGZAG(C,3,72),3);
    VAR18:=ZIGZAG(C,3,72)<REF(ZIGZAG(C,3,72),1) AND REF(ZIGZAG(C,3,72),1)>=REF(ZIGZAG(C,3,72),2) AND REF(ZIGZAG(C,3,72),2)>=REF(ZIGZAG(C,3,72),3);
    VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
    买1:=VAR10;
    买2:=(VAR11+VAR13+VAR15+VAR17);
    卖1:=(VAR12+VAR14+VAR16+VAR18);
    B:IF( 买2>0,LOW*0.99,NULL),COLORYELLOW;
    DRAWTEXT( 买2>0,LOW*0.99,'',COLORYELLOW;
    S:IF(卖1>0,HIGH*1.01,NULL);
    DRAWTEXT(卖1>0,HIGH*1.02,'',COLORCYAN;
    ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
    VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
    K:=EMA(VAR7,5)*2,  COLORFF00FF,NODRAW;
    D:=EMA(K,5),  COLORWHITE,NODRAW;
    J:=K*3-D*2,COLORYELLOW,NODRAW;
    VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
    HS:=VOL/CAPITAL*100, COLORGREEN;
    VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    VAR1A:=IF(VARE>0,VARE,0);
    VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
    VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
    DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'顶' ,COLORWHITE;

     

  • 网友回复:  老师,不显示

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容