老师好,麻烦把通达信的均线指标改下能在文华财经里使用,谢谢! [文华财经]
-
咨询内容:
假阳真阴:=C>O AND C<REF(C,1);STICKLINE(假阳真阴,O,C,1,0),COLORGREEN;
均价:=AMOUNT/VOL/100;TJ01:=C<O AND 均价>REF(C,1);{假阴真阳}; TJ02:=C<O AND C>REF(C,1); STICKLINE(TJ01 OR TJ02,O,C,1,0),COLORRED;{假阴柱};
人线:=MA(CLOSE,13),COLOR4080FF,LINETHICK2;
人和:IF(人线>REF(人线,1),人线,DRAWNULL), COLORRED,LINETHICK2;人熊:IF(人线<REF(人线,1),人线,DRAWNULL),COLORGREEN,LINETHICK2;
地线:MA(CLOSE,55),COLOR5080FF,LINETHICK3;地利1:IF(地线>REF(地线,1),地线,DRAWNULL), COLORYELLOW,LINETHICK3;地熊1:IF(地线<REF(地线,1),地线,DRAWNULL),COLORGRAY,LINETHICK3;
天线:MA(CLOSE,3),COLOR5080FF,LINETHICK1;天时2:IF(天线>REF(天线,1),天线,DRAWNULL),COLORMAGENTA,LINETHICK1;天熊2:IF(天线<REF(天线,1),天线,DRAWNULL),COLORBLUE,LINETHICK1;{CYAN}
长牛线:MA(CLOSE,188),COLOR5080FF,LINETHICK1;牛线3:IF(长牛线>REF(长牛线,1),长牛线,DRAWNULL), COLORFF6EC7,LINETHICK4;熊线3:IF(长牛线<REF(长牛线,1),长牛线,DRAWNULL),COLORCYAN,LINETHICK4;
DRAWTEXT(CROSS(长牛线,人线 ) AND 人线>=REF(人线,1) ,L*1,'买11',COLORMAGENTA;DRAWTEXT(CROSS(长牛线,地线 ) AND 地线>=REF(地线,1),L*1,'买12',COLORRED;DRAWTEXT(CROSS(长牛线,天线) AND 天线>=REF(天线,1),L*1,'买13',COLORMAGENTA;DRAWTEXT(CROSS(人线,地线) AND 地线>=REF(地线,1),L*1,'买22',COLORRED;DRAWTEXT(CROSS(人线,天线 ) AND 天线>=REF(天线,1),L*1,'买23',COLORMAGENTA;DRAWTEXT(CROSS(地线,天线 )AND 天线>=REF(天线,1),L*1,'买31',COLORRED;
DRAWTEXT(CROSS(人线,长牛线 ) AND C>MA(C,人线),L*1,'卖11',COLORBLUE;DRAWTEXT(CROSS(地线,长牛线) AND C>MA(C,人线),L*1,'卖12',COLORGREEN;DRAWTEXT(CROSS(天线,长牛线) AND C>MA(C,人线),L*1,'卖13',COLORWHITE;
DRAWTEXT(CROSS(地线,人线),L*1,'熊1',COLORBLUE;DRAWTEXT(CROSS(天线,人线),L*1,'熊2',COLORGREEN;
DRAWTEXT(CROSS(天线,地线),L*1,'熊3',COLORWHITE;
STICKLINE(C/REF(C,1)>=1.045 AND C/REF(C,1)<=1.095,C,O,2.5,0),COLORB0B0FF;{涨停变黄颜色}STICKLINE(C>1.095*REF(C,1),C,O,2.5,0),COLORYELLOW;
{二线}WH1:=IF(L=LLV(L,9),L,0);WH2:=CONST(BARSLAST(WH1!=0));WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORYELLOW,DOTLINE;DRAWTEXT(ISLASTBAR,WH7,'-----,起涨',COLORFF00FF;{必杀线}N1:=10;T11:=CONST(LLVBARS(LOW,N1));T11HIGH:=CONST(REF(HIGH,T11));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T11)) AND (HIGH>T11HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));一线: DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLOR0000FF;DRAWTEXT(ISLASTBAR, T3HIGH, '突破'LINETHICK1,COLORRED;
TT:=IF(ISLASTBAR,240/FROMOPEN,1); NN:=120; HH:=HHV(V*TT,NN); LL:=LLV(V,NN);最高:=CONST(HH);最低:=CONST(LL);最高2:=CONST(HHV(H,NN));最低2:=CONST(LLV(L,NN)); PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW; RCC1:=最高2*0.9-(最高2-最低2)*PP;最低3:=MIN(RCC1,最低2); AA:=最低3;{股海网提供:WWW.GUHAI.COM.CN}周J:=MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFFFF00,LINETHICK2; AA1:=周J<0 AND 周J<REF(周J,1) ; FF1:=周J<0 AND 周J>REF(周J,1); BB1:=周J>=0 AND 周J<85 AND 周J>REF(周J,1); DD1:=周J>=REF(周J,1) AND 周J>=85 ; EE1:=周J<REF(周J,1) AND 周J>0; ZJ1:=MA("KDJ.J#WEEK"(9,3,3) ,5); YK:=MA("KDJ.K#MONTH"(9,3,3),20),LINETHICK0; YD:=MA("KDJ.D#MONTH"(9,3,3),20),LINETHICK0; YJ:=MA("KDJ.J#MONTH"(9,3,3),20); ZK:=MA("KDJ.K#WEEK"(9,3,3) ,5),LINETHICK0; ZD:=MA("KDJ.D#WEEK"(9,3,3) ,5),LINETHICK0; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1),LINETHICK0; D:=SMA(K,3,1),LINETHICK0; J:=3*K-2*D,LINETHICK0; GG1:=C>0; RJC:DRAWICON(CROSS(K,D),L*0.95,0); DRAWTEXT(RJC,L*0.96,'',COLORFF00FF; RSC:DRAWICON(CROSS(D,K),H*1.03,0),; DRAWTEXT(RSC,H*1.03,'',COLORFFFFFF; ZJC: DRAWICON (CROSS(ZK,ZD), L*0.98,0); DRAWTEXT(ZJC,L*0.98,'',COLORFF00FF; ZSC: DRAWICON (CROSS(ZD,ZK), H*1.03,2),; DRAWTEXT(ZSC,H*1.03,'',COLOR00FFFF; YJC: DRAWICON (CROSS(YK,YD), L*0.98,1); DRAWTEXT(YJC,L*0.98,'',COLORFF0000; YSC: DRAWICON (CROSS(YD,YK), H*1.03,2),; DRAWTEXT(YSC,H*1.03,'',COLORFFFF00;
STICKLINE(C/REF(C,1)>=1.045 AND C/REF(C,1)<=1.095,C,O,2.5,0),COLORB0B0FF;{涨停变黄颜色}STICKLINE(C>1.095*REF(C,1),C,O,2.5,0),COLORYELLOW;
卖:=J<100 AND REF(J,1)>100;大于30:=J-K>30;STICKLINE(卖,REF(LOW,1),REF(LOW,1),20,0),COLORBLUE;DRAWICON(大于30,HIGH,2);大于230:=K-J>30;刹:=J>0 AND REF(J,1)<0;DRAWICON(大于230,LOW,1);STICKLINE(刹,REF(CLOSE,1),REF(CLOSE,1),20,0),COLORYELLOW;DRAWTEXT(刹,L*0.99,'',COLORYELLOW,LINETHICK2;所属地域:DRAWTEXT_FIX(ISLASTBAR ,0.88,1,1,DYBLOCK),COLORYELLOW;所属行业:DRAWTEXT_FIX(ISLASTBAR ,0.91,1,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.00,0.18,0,'题投资:'COLORWHITE;DRAWTEXT_FIX(1,0.09,0.18,0,EXTERNSTR(0,1))COLORWHITE;DRAWTEXT_FIX(1,0.00,0.26,0,'营业务:'COLORFF00FF;DRAWTEXT_FIX(1,0.09,0.26,0,EXTERNSTR(0,2))COLORFF00FF;DRAWTEXT_FIX(1,0.00,1,0,'大股东:'COLORYELLOW;DRAWTEXT_FIX(1,0.07,1,0,EXTERNSTR(0,3))COLORYELLOW;
{成交量比大于昨天一倍} 大量:=VOL>REF(VOL,1)*1.1; 新高:=C>REF(C,1);RJC1:=DRAWICON(CROSS(K,D) AND 大量 ,L*0.98,0);DRAWTEXT(REF(RJC,1) AND 新高 AND 大量 ,L*0.98,'',COLOR00FFFF;来源:程序化99
-
文华技术人员:
不同软件函数机制处理不同,加载效果可能略有差异是正常的,改写参考
假阳真阴:=C>O AND C<REF(C,1); STICKLINE(假阳真阴,O,C,1,0),COLORGREEN; AMOUNT:=AVPRICE*V; 均价:=AMOUNT/VOL/100; TJ01:=C<O AND 均价>REF(C,1); TJ02:=C<O AND C>REF(C,1); STICKLINE(TJ01 OR TJ02,O,C,1,0),COLORRED;
人线:=MA(CLOSE,13),COLOR4080FF,LINETHICK2;
人和:IF(人线>REF(人线,1),人线,NULL), COLORRED,LINETHICK2; 人熊:IF(人线<REF(人线,1),人线,NULL),COLORGREEN,LINETHICK2;
地线:MA(CLOSE,55),COLOR5080FF,LINETHICK3; 地利1:IF(地线>REF(地线,1),地线,NULL), COLORYELLOW,LINETHICK3; 地熊1:IF(地线<REF(地线,1),地线,NULL),COLORGRAY,LINETHICK3;
天线:MA(CLOSE,3),COLOR5080FF,LINETHICK1; 天时2:IF(天线>REF(天线,1),天线,NULL),COLORMAGENTA,LINETHICK1; 天熊2:IF(天线<REF(天线,1),天线,NULL),COLORBLUE,LINETHICK1; {CYAN}
长牛线:MA(CLOSE,188),COLOR5080FF,LINETHICK1; 牛线3:IF(长牛线>REF(长牛线,1),长牛线,NULL), COLORFF6EC7,LINETHICK4; 熊线3:IF(长牛线<REF(长牛线,1),长牛线,NULL),COLORCYAN,LINETHICK4;
DRAWTEXT(CROSS(长牛线,人线 ) AND 人线>=REF(人线,1) ,L*1,'↑买11'),COLORMAGENTA; DRAWTEXT(CROSS(长牛线,地线 ) AND 地线>=REF(地线,1),L*1,'↑买12'),COLORRED; DRAWTEXT(CROSS(长牛线,天线) AND 天线>=REF(天线,1),L*1,'↑买13'),COLORMAGENTA; DRAWTEXT(CROSS(人线,地线) AND 地线>=REF(地线,1),L*1,'↑买22'),COLORRED; DRAWTEXT(CROSS(人线,天线 ) AND 天线>=REF(天线,1),L*1,'↑买23'),COLORMAGENTA; DRAWTEXT(CROSS(地线,天线 ) AND 天线>=REF(天线,1),L*1,'↑买31'),COLORRED;
DRAWTEXT(CROSS(人线,长牛线 ) AND C>MA(C,人线),L*1,'↑卖11'),COLORBLUE; DRAWTEXT(CROSS(地线,长牛线) AND C>MA(C,人线),L*1,'↑卖12'),COLORGREEN; DRAWTEXT(CROSS(天线,长牛线) AND C>MA(C,人线),L*1,'↑卖13'),COLORWHITE;
DRAWTEXT(CROSS(地线,人线),L*1,'↑熊1'),COLORBLUE; DRAWTEXT(CROSS(天线,人线),L*1,'↑熊2'),COLORGREEN;
DRAWTEXT(CROSS(天线,地线),L*1,'↑熊3'),COLORWHITE;
STICKLINE(C/REF(C,1)>=1.045 AND C/REF(C,1)<=1.095,C,O,2.5,0),COLORB0B0FF; STICKLINE(C>1.095*REF(C,1),C,O,2.5,0),COLORYELLOW;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1; WH1:=IF(L=LLV(L,9),L,0); WH2:=REFX1(BARSLAST(WH1<>0),10000); WH3:=REFX1(IF(WH2=0,H,REF(H,WH2)),10000); WH4:=REFX1(REF(BARSLAST(H>WH3),WH2+1)+WH2+1,10000); WH5:=REFX1(IF(WH4=0,H,REF(H,WH4)),10000); WH6:=REFX1(REF(BARSLAST(H>WH5),WH4+1)+WH4+1,10000); WH7:IF(CURRBARSCOUNT<=WH2+10,REFX1(IF(WH6=0,H,REF(H,WH6)),10000),NULL),COLORYELLOW,DOT; DRAWTEXT(ISLASTBAR,WH7,'------,起涨'),COLORFF00FF; {必杀线} N1:=10; T11:=REFX1(LLVBARS(LOW,N1),10000); T11HIGH:=REFX1(REF(HIGH,T11),10000); CC:=REFX1(CURRBARSCOUNT,10000); T2:=REFX1(BARSLAST((CURRBARSCOUNT >(CC+T11)) AND (HIGH>T11HIGH)),10000); T2HIGH:=REFX1(REF(HIGH,T2),10000); T3:=REFX1(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)),10000); T3HIGH:=REFX1(REF(HIGH,T3),10000); 一线: TRENDLINES(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH),LINETHICK2,COLOR0000FF; DRAWTEXT(ISLASTBAR, T3HIGH, ' 突破'),LINETHICK1,COLORRED;
FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE); TT:=IF(ISLASTBAR,240/FROMOPEN,1);
NN:=120; HH:=HHV(V*TT,NN); LL:=LLV(V,NN); 最高:=REFX1(HH,10000); 最低:=REFX1(LL,10000); 最高2:=REFX1(HHV(H,NN),10000); 最低2:=REFX1(LLV(L,NN),10000); PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>REFX1(LLV(L,20),10000),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>REFX1(LLV(L,50),10000),0.7,0.6)),NODRAW; RCC1:=最高2*0.9-(最高2-最低2)*PP; 最低3:=MIN(RCC1,最低2); AA:=最低3; RSV2:=(CLOSE-LLV(LOW,9*5))/(HHV(HIGH,9*5)-LLV(LOW,9*5))*100; K2:=SMA(RSV2,3*5,1); D2:=SMA(K2,3*5,1); J2:=3*K2-2*D2; RSV1:=(CLOSE-LLV(LOW,9*5*4))/(HHV(HIGH,9*5*4)-LLV(LOW,9*5*4))*100; K1:=SMA(RSV1,3*5*4,1); D1:=SMA(K1,3*5*4,1); J1:=3*K1-2*D1; 周J:=MA(J2,5),COLORFFFF00,LINETHICK2; AA1:=周J<0 AND 周J<REF(周J,1) ; FF1:=周J<0 AND 周J>REF(周J,1); BB1:=周J>=0 AND 周J<85 AND 周J>REF(周J,1); DD1:=周J>=REF(周J,1) AND 周J>=85 ; EE1:=周J<REF(周J,1) AND 周J>0; ZJ1:=MA(J2,5); YK:=MA(K1,20),NODRAW; YD:=MA(D1,20); YJ:=MA(J1,20); ZK:=MA(K2,5); ZD:=MA(D2,5); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; GG1:=C>0; DRAWICON(CROSS(K,D),L*0.95,0); DRAWTEXT(CROSS(K,D),L*0.96,'换'),COLORFF00FF; DRAWICON(CROSS(D,K),H*1.03,0); DRAWTEXT(CROSS(D,K),H*1.03,'倒'),COLORFFFFFF; DRAWICON (CROSS(ZK,ZD), L*0.98,0); DRAWTEXT(CROSS(ZK,ZD),L*0.98,'周'),COLORFF00FF; DRAWICON (CROSS(ZD,ZK), H*1.03,2); DRAWTEXT(CROSS(ZD,ZK),H*1.03,'周'),COLOR00FFFF; DRAWICON (CROSS(YK,YD), L*0.98,1); DRAWTEXT(CROSS(YK,YD),L*0.98,'月'),COLORFF0000; DRAWICON (CROSS(YD,YK), H*1.03,2); DRAWTEXT(CROSS(YD,YK),H*1.03,'月'),COLORFFFF00;
STICKLINE(C/REF(C,1)>=1.045 AND C/REF(C,1)<=1.095,C,O,2.5,0),COLORB0B0FF;
STICKLINE(C>1.095*REF(C,1),C,O,2.5,0),COLORYELLOW;
卖:=J<100 AND REF(J,1)>100; 大于30:=J-K>30; STICKLINE(卖,REF(LOW,1),REF(LOW,1),20,0),COLORBLUE; DRAWICON(大于30,HIGH,2); 大于230:=K-J>30; 刹:=J>0 AND REF(J,1)<0; DRAWICON(大于230,LOW,1); STICKLINE(刹,REF(CLOSE,1),REF(CLOSE,1),20,0),COLORYELLOW; DRAWTEXT(刹,L*0.99,'刹'),COLORYELLOW,LINETHICK2;
大量:=VOL>REF(VOL,1)*1.1; 新高:=C>REF(C,1); DRAWICON(CROSS(K,D) AND 大量 ,L*0.98,0); DRAWTEXT(REF(CROSS(K,D),1) AND 新高 AND 大量 ,L*0.98,'加'),COLOR00FFFF;来源: WWW.CXH99.COM
-
文华客服:
老师你好,这个指标的“换”,熊1,熊2.熊3分别代表什么信号?
-
网友回复:
天线人线的金叉 地线人线的金叉 天线地线的金叉
- 网友回复:
- 网友回复: 老师你好,这个指标的“换”,熊1,熊2.熊3分别代表什么信号?笑脸与哭脸代表什么?谢谢老师
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容