修改成文华用 [文华财经]
-
咨询内容:
筹码集中度:=COST(10)/(COST(80)-COST(10)),NODRAW;
{高低点均线 N=1,500,10}HH:=MA(REF(H,1),N);LL:=MA(REF(L,1),N);
STICKLINE(C>HH AND C>O,O,C,-1,1),COLOR0000DD;STICKLINE(C>HH AND C>O,H,C,0,0),COLOR0000DD;STICKLINE(C>HH AND C>O,O,L,0,0),COLOR0000DD;STICKLINE(C>HH AND C<=O,O,C,-1,0),COLOR0000DD;STICKLINE(C>HH AND C<=O,H,O,0,0),COLOR0000DD;STICKLINE(C>HH AND C<=O,C,L,0,0),COLOR0000DD;
STICKLINE(C<LL AND C>O,O,C,-1,1),COLORFFBB00; STICKLINE(C<LL AND C>O,H,C,0,0),COLORFFBB00;STICKLINE(C<LL AND C>O,O,L,0,0),COLORFFBB00;STICKLINE(C<LL AND C<=O,O,C,-1,0),COLORFFBB00;STICKLINE(C<LL AND C<=O,H,O,0,0),COLORFFBB00;STICKLINE(C<LL AND C<=O,C,L,0,0),COLORFFBB00;
STICKLINE(C>LL AND C<HH AND C>O,C,O,-1,1),COLORAAAAAA;STICKLINE(C>LL AND C<HH AND C>O,H,C,0,0),COLORAAAAAA;STICKLINE(C>LL AND C<HH AND C>O,O,L,0,0),COLORAAAAAA;STICKLINE(C>LL AND C<HH AND C<=O,C,O,-1,0),COLORAAAAAA;STICKLINE(C>LL AND C<HH AND C<=O,H,O,0,0),COLORAAAAAA;STICKLINE(C>LL AND C<HH AND C<=O,C,L,0,0),COLORAAAAAA;
UP:HH;DN:LL;BIAS:IF(C>HH,(C-HH)/HH*100,IF(C<LL,(C-LL)/LL*100,0)),NODRAW;
{突破上轨,在该K线的最高价画红点、向右画横线}TP:=CROSS(C,HH) AND EVERY(REF(C,1)<REF(HH,1),3);{突破上轨}TC:=BARSLAST(TP);STICKLINE(TC>0,REF(H,TC),REF(H,TC),8,-1),COLORLIRED;{突破上轨,在该K线的最高价向右画横线};●:IF(TP,H,DRAWNULL),POINTDOT,COLORRED,LINETHICK4; {突破上轨,在该K线的最高价画红点};
{突破上轨、突破横线 选股}TPUP:=TP AND CROSS(C,REF(H,TC+1));{突破上轨AND前高}{TPUP:=TP AND CROSS(C>REF(H,TC+1),0.5);} {两个TPUP式等同}
TPHX:=CROSS(C,REF(H*1.004,TC)) AND C>HH; {突破横线};{TPHX:=CROSS(C>REF(H*1.004,TC),0.5) AND C>HH;} {两个TPHX式等同}
XG:=FILTER(({TPUP OR }TPHX),2);DRAWICON(XG,L*0.998,1);
{倒数第2、第3根 K线高低点划线}{HH2:=HHV(H,2);LL2:=LLV(L,2);T1:=BARSLAST(CURRBARSCOUNT=2);T2:=BARSLAST(CURRBARSCOUNT=3);DRAWLINE(REF(H,T1)=HH2,H,ISLASTBAR,REF(H,T1),0),COLORGREEN;DRAWLINE(REF(L,T1)=LL2,L,ISLASTBAR,REF(L,T1),0),COLORYELLOW;DRAWLINE(REF(H,T2)=REFX(HH2,1),H,ISLASTBAR,REF(H,T2),0),COLORGREEN;DRAWLINE(REF(L,T2)=REFX(LL2,1),L,ISLASTBAR,REF(L,T2),0),COLORYELLOW;};
来源:程序化99
-
文华技术人员:
不同软件机制不同,加载效果可能略有差异,参考:
筹码集中度:=COST(10)/(COST(80)-COST(10)),NODRAW; //{高低点均线 N=1,500,10} N:=1;//N需自行定义 HH:=MA(REF(H,1),N); LL:=MA(REF(L,1),N); STICKLINE1(C>HH AND C>O,O,C,-1,1),COLOR0000DD; STICKLINE1(C>HH AND C>O,H,C,0,0),COLOR0000DD; STICKLINE1(C>HH AND C>O,O,L,0,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,O,C,-1,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,H,O,0,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,C,L,0,0),COLOR0000DD; STICKLINE1(C<LL AND C>O,O,C,-1,1),COLORFFBB00; STICKLINE1(C<LL AND C>O,H,C,0,0),COLORFFBB00; STICKLINE1(C<LL AND C>O,O,L,0,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,O,C,-1,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,H,O,0,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,C,L,0,0),COLORFFBB00; STICKLINE1(C>LL AND C<HH AND C>O,C,O,-1,1),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C>O,H,C,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C>O,O,L,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,C,O,-1,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,H,O,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,C,L,0,0),COLORAAAAAA; UP:HH; DN:LL; BIAS:IF(C>HH,(C-HH)/HH*100,IF(C<LL,(C-LL)/LL*100,0)),NODRAW; //{突破上轨,在该K线的最高价画红点、向右画横线} TP:=CROSS(C,HH) AND EVERY(REF(C,1)<REF(HH,1),3); //{突破上轨} TC:=BARSLAST(TP); STICKLINE1(TC>0,REF(H,TC),REF(H,TC),8,-1),COLORRED; //{突破上轨,在该K线的最高价向右画横线}; ●:IF(TP,H,NULL),POINTDOT,COLORRED,LINETHICK4; /*{突破上轨,在该K线的最高价画红点}; {突破上轨、突破横线 选股}*/ TPUP:=TP AND CROSS(C,REF(H,TC+1)); /*{突破上轨AND前高} {TPUP:=TP AND CROSS(C>REF(H,TC+1),0.5); } {两个TPUP式等同}*/ TPHX:=CROSS(C,REF(H*1.004,TC)) AND C>HH; //{突破横线}; //{TPHX:=CROSS(C>REF(H*1.004,TC),0.5) AND C>HH; //} {两个TPHX式等同} XG:=FILTER(({TPUP OR }TPHX),2); DRAWICON(XG,L*0.998,1); /*{倒数第2、第3根 K线高低点划线} {HH2:=HHV(H,2); LL2:=LLV(L,2); T1:=BARSLAST(CURRBARSCOUNT=2); T2:=BARSLAST(CURRBARSCOUNT=3); DRAWLINE(REF(H,T1)=HH2,H,ISLASTBAR,REF(H,T1),0),COLORGREEN; DRAWLINE(REF(L,T1)=LL2,L,ISLASTBAR,REF(L,T1),0),COLORYELLOW; DRAWLINE(REF(H,T2)=REFX(HH2,1),H,ISLASTBAR,REF(H,T2),0),COLORGREEN; DRAWLINE(REF(L,T2)=REFX(LL2,1),L,ISLASTBAR,REF(L,T2),0),COLORYELLOW; }; */
来源: WWW.CXH99.COM
-
文华客服:
第45行大括号不配对
-
网友回复:
这样看一下:
筹码集中度:=COST(10)/(COST(80)-COST(10)),NODRAW; //{高低点均线 N=1,500,10} N:=1;//N需自行定义 HH:=MA(REF(H,1),N); LL:=MA(REF(L,1),N); STICKLINE1(C>HH AND C>O,O,C,-1,1),COLOR0000DD; STICKLINE1(C>HH AND C>O,H,C,0,0),COLOR0000DD; STICKLINE1(C>HH AND C>O,O,L,0,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,O,C,-1,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,H,O,0,0),COLOR0000DD; STICKLINE1(C>HH AND C<=O,C,L,0,0),COLOR0000DD; STICKLINE1(C<LL AND C>O,O,C,-1,1),COLORFFBB00; STICKLINE1(C<LL AND C>O,H,C,0,0),COLORFFBB00; STICKLINE1(C<LL AND C>O,O,L,0,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,O,C,-1,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,H,O,0,0),COLORFFBB00; STICKLINE1(C<LL AND C<=O,C,L,0,0),COLORFFBB00; STICKLINE1(C>LL AND C<HH AND C>O,C,O,-1,1),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C>O,H,C,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C>O,O,L,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,C,O,-1,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,H,O,0,0),COLORAAAAAA; STICKLINE1(C>LL AND C<HH AND C<=O,C,L,0,0),COLORAAAAAA; UP:HH; DN:LL; BIAS:IF(C>HH,(C-HH)/HH*100,IF(C<LL,(C-LL)/LL*100,0)),NODRAW; //{突破上轨,在该K线的最高价画红点、向右画横线} TP:=CROSS(C,HH) AND EVERY(REF(C,1)<REF(HH,1),3); //{突破上轨} TC:=BARSLAST(TP); STICKLINE1(TC>0,REF(H,TC),REF(H,TC),8,-1),COLORRED; //{突破上轨,在该K线的最高价向右画横线}; ●:IF(TP,H,NULL),POINTDOT,COLORRED,LINETHICK4; /*{突破上轨,在该K线的最高价画红点}; {突破上轨、突破横线 选股}*/ TPUP:=TP AND CROSS(C,REF(H,TC+1)); /*{突破上轨AND前高} {TPUP:=TP AND CROSS(C>REF(H,TC+1),0.5); } {两个TPUP式等同}*/ TPHX:=CROSS(C,REF(H*1.004,TC)) AND C>HH; //{突破横线}; //{TPHX:=CROSS(C>REF(H*1.004,TC),0.5) AND C>HH; //} {两个TPHX式等同} XG:=FILTER(TPHX,2); DRAWICON(XG,L*0.998,1); /*{倒数第2、第3根 K线高低点划线} {HH2:=HHV(H,2); LL2:=LLV(L,2); T1:=BARSLAST(CURRBARSCOUNT=2); T2:=BARSLAST(CURRBARSCOUNT=3); DRAWLINE(REF(H,T1)=HH2,H,ISLASTBAR,REF(H,T1),0),COLORGREEN; DRAWLINE(REF(L,T1)=LL2,L,ISLASTBAR,REF(L,T1),0),COLORYELLOW; DRAWLINE(REF(H,T2)=REFX(HH2,1),H,ISLASTBAR,REF(H,T2),0),COLORGREEN; DRAWLINE(REF(L,T2)=REFX(LL2,1),L,ISLASTBAR,REF(L,T2),0),COLORYELLOW; }; */
-
网友回复:
文件名:tim截图20181210141619.png
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容