老师麻烦你可以吗 [文华财经]
-
咨询内容:
帮我把压力线 所有颜色的压力线 水平的都去除/谢谢 N:=1;
VAR1:=AVPRICE/100;
VAR2:=REF(CLOSE,1)/CLOSE>1.04;
STICKLINE1(VAR2,OPEN,CLOSE,1,0),COLORWHITE;
VAR3:=OPEN>CLOSE AND VAR1>REF(CLOSE,1);
STICKLINE1(VAR3,OPEN,CLOSE,1,0),COLORRED;
VAR4:=LOW>REF(HIGH,1) AND NOT(HIGH=LOW);
VAR5:=BARSLAST(VAR4);
//DRAWLINE1(VAR5=0,LOW,VAR5=1,REF(LOW,1),1),DOT,RGB(128,64,64),LINETHICK2;
DRAWSL(REFX(VAR5,2)=0,VALUEWHEN(VAR5=0,L),0,-BARSLAST(VAR5=0),0,RGB(128,64,64) ),LINETHICK2;
DRAWSL(ISLASTBAR,VALUEWHEN(VAR5=0,L),0,-BARSLAST(VAR5=0),0,RGB(128,64,64) ),LINETHICK2;
VAR6:=REF(LOW,1)>HIGH;
VAR7:=BARSLAST(VAR6);
//DRAWLINE1(VAR7=0,HIGH,VAR7=1,REF(HIGH,1),1),DOT,COLORMAGENTA,LINETHICK2;
DRAWSL(REFX(VAR7,2)=0,VALUEWHEN(VAR7=0,H),0,-BARSLAST(VAR7=0),0,COLORMAGENTA),LINETHICK2;
DRAWSL(ISLASTBAR,VALUEWHEN(VAR7=0,H),0,-BARSLAST(VAR7=0),0,COLORMAGENTA),LINETHICK2;
VAR8:=CLOSE>REF(CLOSE,4);
VAR9:=BARSLASTCOUNT(VAR8);
VAR10:=VAR9=9;
VAR11:=ISLASTBAR AND BETWEEN(VAR9,1,8);
VAR12:=(BACKSET(VAR10>0,9) OR BACKSET(VAR11>0,VAR9))*VAR9;
DRAWNUMBER(VAR12>0 AND N=1,HIGH*1.005,VAR12,0,COLORYELLOW);
DRAWNUMBER(VAR9=9 AND N=1,HIGH*1.005,1,0,COLORGREEN);
VAR13:=CLOSE<REF(CLOSE,4);
VAR14:=BARSLASTCOUNT(VAR13);
VAR15:=VAR14=9;
VAR16:=ISLASTBAR AND BETWEEN(VAR14,1,8);
VAR17:=(BACKSET(VAR15>0,9) OR BACKSET(VAR16>0,VAR14))*VAR14;
DRAWNUMBER(VAR17>0 AND N=1,LOW*0.995,VAR17,0,COLORMAGENTA),PRECIS0;
DRAWNUMBER(VAR14=9 AND N=1,LOW*0.995,1,0,COLORGREEN),PRECIS0;
VAR18:=MIN(LOW,REF(CLOSE,1));
VAR19:=MAX(HIGH,REF(CLOSE,1));
VAR20:=IF(VAR12,HIGH+(VAR19-VAR18),0);
VAR21:=IF(VAR17,LOW+(VAR19-VAR18),0);
VAR22:=BARSLAST(VAR20);
//DRAWLINE1(VAR22=0,HIGH,VAR22=1,REF(HIGH,1),1),COLORGREEN,LINETHICK2;
DRAWSL(REFX(VAR22,2)=0,VALUEWHEN(VAR22=0,H),0,-BARSLAST(VAR22=0),0,COLORGREEN),LINETHICK2;
DRAWSL(ISLASTBAR,VALUEWHEN(VAR22=0,H),0,-BARSLAST(VAR22=0),0,COLORGREEN),LINETHICK2;
VAR23:=BARSLAST(VAR21);
//DRAWLINE1(VAR23=0,LOW,VAR23=1,REF(LOW,1),1),COLORRED,LINETHICK2;
DRAWSL(REFX(VAR23,2)=0,VALUEWHEN(VAR23=0,L),0,-BARSLAST(VAR23=0),0,COLORRED),LINETHICK2;
DRAWSL(ISLASTBAR,VALUEWHEN(VAR23=0,L),0,-BARSLAST(VAR23=0),0,COLORRED),LINETHICK2;
//DRAWLINE1(HIGH=HHV(HIGH,20),HIGH,LOW=LLV(LOW,5),HHV(HIGH,5),1),DOT,COLORWHITE;
VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
/*
VAR25:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24>=4.945;
VAR26:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24<=(-4.945);
涨停价:IF(VAR25,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(VAR26,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
VAR27:=NAMELIKE(2)=1 OR NAMELIKE(3)=1 OR NAMELIKE(5)=1 OR NAMELIKE(6)=1 OR NAMELIKE(7)=1;
VAR28:=CLOSE/REF(CLOSE,1)>1.095 OR (CLOSE/REF(CLOSE,1)>1.0495 AND VAR27);
VAR29:=REF(CLOSE,1)/CLOSE>1.0995 AND REF(CLOSE,1)/CLOSE<1.1 OR (REF(CLOSE,1)/CLOSE>1.0495 AND VAR27);
STICKLINE1(VAR28,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE1(VAR29,CLOSE,OPEN,3,0),COLORGREEN;
*/
DRAWICON(HIGH=REF(C,1)*1.1 AND CLOSE<>HIGH,LOW*0.965,'CO1';来源:程序化99
-
文华技术人员:
参考:
N:=1;
VAR1:=AVPRICE/100;
VAR2:=REF(CLOSE,1)/CLOSE>1.04;
STICKLINE1(VAR2,OPEN,CLOSE,1,0),COLORWHITE;
VAR3:=OPEN>CLOSE AND VAR1>REF(CLOSE,1);
STICKLINE1(VAR3,OPEN,CLOSE,1,0),COLORRED;
VAR4:=LOW>REF(HIGH,1) AND NOT(HIGH=LOW);
VAR5:=BARSLAST(VAR4);
//DRAWSL(REFX(VAR5,2)=0,VALUEWHEN(VAR5=0,L),0,-BARSLAST(VAR5=0),0,RGB(128,64,64) ),LINETHICK2;
//DRAWSL(ISLASTBAR,VALUEWHEN(VAR5=0,L),0,-BARSLAST(VAR5=0),0,RGB(128,64,64) ),LINETHICK2;
VAR6:=REF(LOW,1)>HIGH;
VAR7:=BARSLAST(VAR6);
//DRAWSL(REFX(VAR7,2)=0,VALUEWHEN(VAR7=0,H),0,-BARSLAST(VAR7=0),0,COLORMAGENTA),LINETHICK2;
//DRAWSL(ISLASTBAR,VALUEWHEN(VAR7=0,H),0,-BARSLAST(VAR7=0),0,COLORMAGENTA),LINETHICK2;
VAR8:=CLOSE>REF(CLOSE,4);
VAR9:=BARSLASTCOUNT(VAR8);
VAR10:=VAR9=9;
VAR11:=ISLASTBAR AND BETWEEN(VAR9,1,8);
VAR12:=(BACKSET(VAR10>0,9) OR BACKSET(VAR11>0,VAR9))*VAR9;
DRAWNUMBER(VAR12>0 AND N=1,HIGH*1.005,VAR12,0,COLORYELLOW);
DRAWNUMBER(VAR9=9 AND N=1,HIGH*1.005,1,0,COLORGREEN);
VAR13:=CLOSE<REF(CLOSE,4);
VAR14:=BARSLASTCOUNT(VAR13);
VAR15:=VAR14=9;
VAR16:=ISLASTBAR AND BETWEEN(VAR14,1,8);
VAR17:=(BACKSET(VAR15>0,9) OR BACKSET(VAR16>0,VAR14))*VAR14;
DRAWNUMBER(VAR17>0 AND N=1,LOW*0.995,VAR17,0,COLORMAGENTA),PRECIS0;
DRAWNUMBER(VAR14=9 AND N=1,LOW*0.995,1,0,COLORGREEN),PRECIS0;
VAR18:=MIN(LOW,REF(CLOSE,1));
VAR19:=MAX(HIGH,REF(CLOSE,1));
VAR20:=IF(VAR12,HIGH+(VAR19-VAR18),0);
VAR21:=IF(VAR17,LOW+(VAR19-VAR18),0);
VAR22:=BARSLAST(VAR20);
//DRAWSL(REFX(VAR22,2)=0,VALUEWHEN(VAR22=0,H),0,-BARSLAST(VAR22=0),0,COLORGREEN),LINETHICK2;
//DRAWSL(ISLASTBAR,VALUEWHEN(VAR22=0,H),0,-BARSLAST(VAR22=0),0,COLORGREEN),LINETHICK2;
VAR23:=BARSLAST(VAR21);
//DRAWSL(REFX(VAR23,2)=0,VALUEWHEN(VAR23=0,L),0,-BARSLAST(VAR23=0),0,COLORRED),LINETHICK2;
//DRAWSL(ISLASTBAR,VALUEWHEN(VAR23=0,L),0,-BARSLAST(VAR23=0),0,COLORRED),LINETHICK2;
VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
DRAWICON(HIGH=REF(C,1)*1.1 AND CLOSE<>HIGH,LOW*0.965,'CO1';
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容