改为文华6使用 [文华财经]
-
咨询内容:
CAPITAL:=GETPRICE1('通股本';
AMOUNT:=AVPRICE*V;
A1:=SUM(
IF(CLOSE>REF(CLOSE,1)&&DAYBARPOS>1,VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1)&&DAYBARPOS>1,-VOL/CAPITAL*100,0)),DAYBARPOS);
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND
(CLOSE>(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS);
A3:=SUM((IF(((成交额/8>20) AND
(CLOSE<(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS);
A4:=SUM((IF(((成交额/8<20) AND
(CLOSE>(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS);
A5:=SUM((IF(((成交额/8<20) AND
(CLOSE<(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);
机构买:(A2),COLORRED,NODRAW; 机构卖:(A3),COLORGREEN,NODRAW;
IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=0,机构买,NULL),LINETHICK6,COLORRED; IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=1,机构买,NULL),LINETHICK6,COLORRED;
IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=0,机构卖,NULL),LINETHICK6,COLORGREEN; IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=1,机构卖,NULL),LINETHICK6,COLORGREEN;
机构进出:机构买-机构卖,NODRAW; 散户买:=(A4),COLOR5555FF; 散户卖:=(A5),COLOR55FF55; 强势:((100*A2)/A6>50); STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW; 拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18; STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;
Q:=BETWEEN(C/(SUM(AMOUNT,DAYBARPOS)/SUM(VOL*100,DAYBARPOS)),1.05,0.95); Q2:=IF(Q=0,MA(C,DAYBARPOS),(SUM(AMOUNT,DAYBARPOS)/SUM(VOL*100,DAYBARPOS))); DRAWICON(CROSS((C/Q2),1.03),机构买,5); DD1:=1;
机构买入:(100*A2)/A6,NODRAW; 机构卖出:(100*A3)/A6,NODRAW; 散户买入:(100*A4)/A6,NODRAW; 散户卖出:(100*A5)/A6,NODRAW; DAYBARPOS>2&&REF(CROSS(机构买入,机构卖出)||DAYBARPOS=2&&机构买入>机构卖出,1),NOTICE;
//前一根K线如果是 : 机构买入 上穿 机构卖出 或者是当日第一根K线 机构买入大于机构卖出 都可以预警
XXZ:CROSS(机构买入,机构卖出)||DAYBARPOS=2&&机构买入>机构卖出,NODRAW;
DAYBARPOS>2&&EXIST(CROSS(机构买入,机构卖出)||DAYBARPOS=2&&机构买入>机构卖出,DAYBARPOS)&&REF( C>LLV( IF(XXZ,C,9999999) ,DAYBARPOS) ,1),NOTICE;
//如果当日存在第一次预警 ,后续价格大于第一次预警的收盘价 则预警
DRAWNUMBER(CLOSEMINUTE<=BARINTERVAL||ISLASTBAR,机构买,机构买/A6*100,2,COLORRED),ALIGN0,FONTSIZE25,VALIGN2; DRAWNUMBER(CLOSEMINUTE<=BARINTERVAL||ISLASTBAR,机构买,机构卖/A6*100,2,COLORGREEN),ALIGN0,FONTSIZE25,VALIGN0; 老师你好,帮忙改为文华6使用可以吗,谢谢来源:程序化99
-
文华技术人员:
参考:
CAPITAL:=GETPRICE1('通股本'; AMOUNT:=AVPRICE*V; A1:=SUM( IF(CLOSE>REF(CLOSE,1)&&DAYBARPOS>1,VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1)&&DAYBARPOS>1,-VOL/CAPITAL*100,0)),DAYBARPOS); 成交额:=V*C/100,NODRAW; A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS); A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS); A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS); A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1))))&&DAYBARPOS>1,成交额,0)),DAYBARPOS); A6:=((A2+A3)+A4)+A5; A7:=IF((ISLASTBAR),((100*A2)/A6),0); A8:=IF((ISLASTBAR),((100*A3)/A6),0); A9:=IF((ISLASTBAR),((100*A4)/A6),0); A10:=IF((ISLASTBAR),((100*A5)/A6),0);
机构买:(A2),COLORRED,NODRAW; 机构卖:(A3),COLORGREEN,NODRAW;
IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=0,机构买,NULL),LINETHICK6,COLORRED; IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=1,机构买,NULL),LINETHICK6,COLORRED;
IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=0,机构卖,NULL),LINETHICK6,COLORGREEN; IF(MOD( COUNT(DAYBARPOS=1,BARPOS),2)=1,机构卖,NULL),LINETHICK6,COLORGREEN;
机构进出:机构买-机构卖,NODRAW; 散户买:=(A4),COLOR5555FF; 散户卖:=(A5),COLOR55FF55; 强势:((100*A2)/A6>50); STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW; 拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18; STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;
Q:=BETWEEN(C/(SUM(AMOUNT,DAYBARPOS)/SUM(VOL*100,DAYBARPOS)),1.05,0.95); Q2:=IF(Q=0,MA(C,DAYBARPOS),(SUM(AMOUNT,DAYBARPOS)/SUM(VOL*100,DAYBARPOS))); DRAWICON(CROSS((C/Q2),1.03),机构买,5); DD1:=1;
机构买入:(100*A2)/A6,NODRAW; 机构卖出:(100*A3)/A6,NODRAW; 散户买入:(100*A4)/A6,NODRAW; 散户卖出:(100*A5)/A6,NODRAW;
//前一根K线如果是 : 机构买入 上穿 机构卖出 或者是当日第一根K线 机构买入大于机构卖出 都可以预警
XXZ:CROSS(机构买入,机构卖出)||DAYBARPOS=2&&机构买入>机构卖出,NODRAW;
//如果当日存在第一次预警 ,后续价格大于第一次预警的收盘价 则预警
DRAWNUMBER(CLOSEMINUTE<=BARINTERVAL||ISLASTBAR,机构买,机构买/A6*100,2,COLORRED),ALIGN0,FONTSIZE25,VALIGN2; DRAWNUMBER(CLOSEMINUTE<=BARINTERVAL||ISLASTBAR,机构买,机构卖/A6*100,2,COLORGREEN),ALIGN0,FONTSIZE25,VALIGN0;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容