麻烦老师改成文华指标 [文华财经]
-
咨询内容:
MA1:MA(CLOSE,5);MA2:MA(CLOSE,20),COLORFF00FF;
XA_1:=CLOSE;XA_2:=REF(XA_1,10)=HHV(XA_1,2*10+1);XA_3:=FILTER(XA_2,10);XA_4:=BACKSET(XA_3,10+1);XA_5:=FILTER(XA_4,10);XA_6:=REF(XA_1,10)=LLV(XA_1,2*10+1);XA_7:=FILTER(XA_6,10);XA_8:=BACKSET(XA_7,10+1);XA_9:=FILTER(XA_8,10);XA_10:=REF(CLOSE,BARSLAST(XA_5));XA_11:=REF(LOW,BARSLAST(XA_9));XA_12:=BARSLAST(XA_5)<BARSLAST(XA_9) AND NOT(XA_5);XA_13:=BARSLAST(XA_5)>BARSLAST(XA_9) AND NOT(XA_9);压力:IF(XA_12,XA_10,XA_10),POINTDOT,COLORYELLOW,LINETHICK6;STICKLINE(CLOSE,压力,压力,8,0),COLORRED;支撑:IF(XA_13,XA_11,XA_11),POINTDOT,COLORGREEN,LINETHICK4;STICKLINE(CLOSE,支撑,支撑,8,0),COLORGREEN;XA_14:=BARSLAST(YEAR!=REF(YEAR,1));XA_15:=BARSLAST(HHV(VOL,XA_14+1)=VOL);XA_16:=BARSLAST(LLV(VOL,XA_14+1)=VOL);STICKLINE(FILTERX(XA_15=0,XA_14+1),OPEN,CLOSE,1,0),COLOR009900;STICKLINE(FILTERX(XA_16=0,XA_14+1),OPEN,CLOSE,1,0),COLORGREEN;XA_17:=CONST(XA_15);天量:IF(CURRBARSCOUNT<=XA_17+3,CONST(IF(XA_17=0,OPEN,REF(OPEN,XA_17))),DRAWNULL),DOTLINE,COLORGREEN,LINETHICK2;IF(CURRBARSCOUNT=XA_17+1,天量,DRAWNULL),CIRCLEDOT,COLORYELLOW;明涨停价:CLOSE*1.1,NODRAW;上次涨停天数:BARSLAST(CLOSE/REF(CLOSE,1)>=1.098),NODRAW;XA_18:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);XA_19:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);STICKLINE(XA_18,OPEN,CLOSE,3,0),COLORAA00AA;STICKLINE(XA_18,OPEN,CLOSE,1,0),COLORBLACK;STICKLINE(XA_18,HIGH,LOW,0,1),COLORCC00CC;STICKLINE(XA_18,OPEN,CLOSE,3,1),COLORCC00CC;跌停板:STICKLINE(XA_19,OPEN,CLOSE,3,0),COLORFF1100;STICKLINE(XA_19,OPEN,CLOSE,2.5,0),COLORFF3300;STICKLINE(XA_19,OPEN,CLOSE,2,0),COLORFF4400;STICKLINE(XA_19,OPEN,CLOSE,1.5,0),COLORFF5500;STICKLINE(XA_19,OPEN,CLOSE,1,0),COLORFF6600;STICKLINE(XA_19,OPEN,CLOSE,0.5,0),COLORFF7700;STICKLINE(XA_19,LOW,HIGH,0,0),COLORFF7700;XA_20:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03;STICKLINE(XA_20,OPEN,CLOSE,2.5,0),COLOR0000A5;STICKLINE(XA_20,OPEN,CLOSE,2,0),COLOR0000C5;STICKLINE(XA_20,OPEN,CLOSE,1.5,0),COLOR0000D5;STICKLINE(XA_20,OPEN,CLOSE,1,0),COLOR0000E5;STICKLINE(XA_20,LOW,HIGH,0,0),COLOR0000F5;STICKLINE(XA_20,CLOSE,(OPEN+CLOSE)/2,2.5,0),COLOR008CFD;XA_21:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;XA_22:=(MAX(CLOSE,OPEN)-REF(CLOSE,1))/REF(CLOSE,1)*100;STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),MAX(CLOSE,OPEN),HIGH,0,0),COLORGREEN;STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),CLOSE,OPEN,3.1,0),COLORRED;XA_23:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);STICKLINE(XA_23,OPEN,CLOSE,2.8,1),COLOR0000CC;XA_24:=OPEN>CLOSE AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);假阴线:STICKLINE(XA_24,OPEN,CLOSE,2,0),COLORLIRED;来源:程序化99
-
文华技术人员:
参考:
MA1:MA(CLOSE,5); MA2:MA(CLOSE,20),COLORFF00FF;
XA_1:=CLOSE; XA_2:=REF(XA_1,10)=HHV(XA_1,2*10+1); XA_3:=FILTER(XA_2,10); XA_4:=BACKSET(XA_3,10+1); XA_5:=FILTER(XA_4,10); XA_6:=REF(XA_1,10)=LLV(XA_1,2*10+1); XA_7:=FILTER(XA_6,10); XA_8:=BACKSET(XA_7,10+1); XA_9:=FILTER(XA_8,10); XA_10:=REF(CLOSE,BARSLAST(XA_5)); XA_11:=REF(LOW,BARSLAST(XA_9)); XA_12:=BARSLAST(XA_5)<BARSLAST(XA_9) AND NOT(XA_5); XA_13:=BARSLAST(XA_5)>BARSLAST(XA_9) AND NOT(XA_9); 压力:IF(XA_12,XA_10,XA_10),POINTDOT,COLORYELLOW,LINETHICK6; STICKLINE(CLOSE,压力,压力,8,0),COLORRED; 支撑:IF(XA_13,XA_11,XA_11),POINTDOT,COLORGREEN,LINETHICK4; STICKLINE(CLOSE,支撑,支撑,8,0),COLORGREEN; XA_14:=BARSLAST(YEAR<>REF(YEAR,1)); XA_15:=BARSLAST(HHV(VOL,XA_14+1)=VOL); XA_16:=BARSLAST(LLV(VOL,XA_14+1)=VOL);
XA_17:=REFX1(XA_15,10000); CURRBARSCOUNT:=REFX1(BARPOS,9999)-BARPOS+1; 天量:IF(CURRBARSCOUNT<=XA_17+3,REFX1(IF(XA_17=0,OPEN,REF(OPEN,XA_17)),10000),NULL),DOT,COLORGREEN,LINETHICK2; IF(CURRBARSCOUNT=XA_17+1,天量,NULL),CIRCLEDOT,COLORYELLOW; 明涨停价:CLOSE*1.1,NODRAW; 上次涨停天数:BARSLAST(CLOSE/REF(CLOSE,1)>=1.098),NODRAW; XA_18:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0); XA_19:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0); STICKLINE(XA_18,OPEN,CLOSE,3,0),COLORAA00AA; STICKLINE(XA_18,OPEN,CLOSE,1,0),COLORBLACK; STICKLINE(XA_18,HIGH,LOW,0,1),COLORCC00CC; STICKLINE(XA_18,OPEN,CLOSE,3,1),COLORCC00CC; STICKLINE(XA_19,OPEN,CLOSE,3,0),COLORFF1100; STICKLINE(XA_19,OPEN,CLOSE,2.5,0),COLORFF3300; STICKLINE(XA_19,OPEN,CLOSE,2,0),COLORFF4400; STICKLINE(XA_19,OPEN,CLOSE,1.5,0),COLORFF5500; STICKLINE(XA_19,OPEN,CLOSE,1,0),COLORFF6600; STICKLINE(XA_19,OPEN,CLOSE,0.5,0),COLORFF7700; STICKLINE(XA_19,LOW,HIGH,0,0),COLORFF7700; XA_20:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03; STICKLINE(XA_20,OPEN,CLOSE,2.5,0),COLOR0000A5; STICKLINE(XA_20,OPEN,CLOSE,2,0),COLOR0000C5; STICKLINE(XA_20,OPEN,CLOSE,1.5,0),COLOR0000D5; STICKLINE(XA_20,OPEN,CLOSE,1,0),COLOR0000E5; STICKLINE(XA_20,LOW,HIGH,0,0),COLOR0000F5; STICKLINE(XA_20,CLOSE,(OPEN+CLOSE)/2,2.5,0),COLOR008CFD; XA_21:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100; XA_22:=(MAX(CLOSE,OPEN)-REF(CLOSE,1))/REF(CLOSE,1)*100; STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),MAX(CLOSE,OPEN),HIGH,0,0),COLORGREEN; STICKLINE(XA_21-XA_22>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),CLOSE,OPEN,3.1,0),COLORRED; XA_23:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1); STICKLINE(XA_23,OPEN,CLOSE,2.8,1),COLOR0000CC; XA_24:=OPEN>CLOSE AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1); STICKLINE(XA_24,OPEN,CLOSE,2,0),COLORLIGHTRED;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容