个人爱好分享
改博易大师SAR如下:
X:=SAR(4,2,20);
PARTLINE(CX,X),COLORMAGENTA,CIRCLEDOT,LINETHICK3;
PARTLINE(CX,X),COLORGREEN,CIRCLEDOT,LINETHICK3;
文华有SAR
[img]*** A(VOL,Q,1); Q是参数,在参数栏填写你取的周期值。
如果使用WH3版本,在系统工具下-指标管理器-系统一栏中找到MV指标双击打开-在源码中加入 上述语句,填写好参数。
扩展资料:
公司背景:
品牌经过十几年的不断创新和发展,始终坚持技术改变生活的理念,产品汇集了多种独家的创新技术和 *** ,让产品一直引领着行业的进步,公司的产品“文华Mytrader”获得中国软件行业协会颁发的“中国金软件奖”。
产品融入了信息技术与金融智慧,创造出专业期货软件的品牌形象。多年被《期货日报》评为“更佳软件服务商”,也被上海市软件行业协会评为“软件明星企业”,还被中国软件行业协会评为“2010-2011年度中国软件和信息服务十大新锐企业”。
发展到今天,文华财经已经是期货行业的主要软件系统服务商,为投资者提供交易软件、交易策略工具软件,以及相关交易信息。引入文华软件服务的期货公司数达到150多家,市场覆盖率超过90%。
参考资料来源:百度百科-文华财经
1.
HH1:=IFELSE(HREF(H,2)REF(H,1)REF(H,2),REF(H,2),0); LL1:=IFELSE(LREF(L,2)REF(L,1)REF(L,2),REF(L,2),0); HH2:=VALUEWHEN(HH10,HH1); LL2:=VALUEWHEN(LL10,LL1); K1:=IFELSE(CLOSEHH2,-3,IFELSE(CLOSELL2,1,0)); K2:=VALUEWHEN(K10,K1); G:=IFELSE(K2=1,HH2,LL2); G1:=VALUEWHEN(ISLASTBAR,G); DRAWNUMBER(L0,G1,G1,0,COLORCYAN); W1:=K2; W2:=OPEN-CLOSE; HT:=IFELSE(OPENCLOSE,OPEN,CLOSE); LT:=IFELSE(OPENCLOSE,OPEN,CLOSE); DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN); DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN); DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED); DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED); STICKLINE(W10,OPEN,CLOSE,COLORCYAN,1); STICKLINE(W1=0,OPEN,CLOSE,COLORRED,1); STICKLINE(W20W1=0,OPEN,CLOSE,COLORRED,0); STICKLINE(W20W10,OPEN,CLOSE,COLORCYAN,0); DRAWLINE(W1=1REF(W1,1)=1,G,W1=1REF(W1,1)=1,REF(G,1),COLORGREEN); DRAWLINE(W1=-3REF(W1,1)=-3,G,W1=-3REF(W1,1)=-3,REF(G,1),COLORYELLOW); DRAWSL(K2=1,G,0,1,0,COLORGREEN); DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);
HH:=IFELSE(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),H-(H-L)*0.333,H); LL:=IFELSE(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),(H-L)*0.333+L,L); H1:=IFELSE(H=REF(H,1)H=REF(H,2)H=REF(H,3)H=REF(H,4)H=REF(H,5) HREFX(H,1)
HREFX(H,2)HREFX(H,3)HREFX(H,4) HREFX(H,5),HH,0); L1:=IFELSE(L=REF(L,1)L=REF(L,2)L=REF(L,3)L=REF(L,4)L=REF(L,5) LREFX(L,1)
LREFX(L,2)LREFX(L,3)LREFX(L,4) LREFX(L,5),LL,0); H2:=BARSLAST(H1); L2:=BARSLAST(L1); H3:=REFX(REF(H1,H2),2); L3:=REFX(REF(L1,L2),2); H4:=ZIGZAG(H3,0,0); L4:=ZIGZAG(L3,0,0); H5:=VALUEWHEN(H4REF(H4,1)REF(H4,1)REF(H4,2),HH); L5:=VALUEWHEN(L4REF(L4,1)REF(L4,1)REF(L4,2),LL); PO *** LINE(H50,H5,COLORWHITE); PO *** LINE(L50,L5,COLORWHITE); DRAWNUMBER(H5REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5); DRAWNUMBER(LOW0,D,D,0,COLORWHITE); DRAWNUMBER(LOW0,E,E,0,COLORWHITE);
=======================================================================================
2.
N:0 50 2
N1:0 5 2
Q:0 1000 0
Q1:0 9000 0
HH:=HHV(HIGH,N);
LH:=LLV(LOW,N);
H1:=IFELSE(HHREF(HH,1)LHREF(LH,1)REF(OPEN,1) CLOSEOPENCLOSE(HHV(OPEN,Q)-CLOSE)Q1,REF(HH,N1),0);
L1:=IFELSE(LHREF(LH,1)HHREF(HH,1)REF(OPEN,1) CLOSEOPENCLOSE(CLOSE-LLV(OPEN,Q))Q1,REF(LH,N1),0);
H2:=VALUEWHEN(H10,H1);
L2:=VALUEWHEN(L10,L1);
K1:=IFELSE(CLOSEH2,-3,IFELSE(CLOSEL2,1,0));
K2:=VALUEWHEN(K10,K1);
G:=IFELSE(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(LH0,G1,G1,0,COLORCYAN);
TMP:=K2;W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPENCLOSE,OPEN,CLOSE);
LT:=IFELSE(OPENCLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W10,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(W20W1=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W20W10,OPEN,CLOSE,COLORCYAN,0);
DRAWLINE(TMP=1REF(TMP,1)=1,G,TMP=1REF(TMP,1)=1,REF (G,1),COLORCYAN);DRAWLINE(TMP=-3REF(TMP,1)=-3,G,TMP=-3REF (TMP,1)=-3,REF(G,1),COLORRED);DRAWSL(K2=1,G,0,1,0,COLORCYAN);DRAWSL (K2=-3,G,0,1,0,COLORRED);
DRAWTEXT(CROSS(TMP,0),HH,'卖↓');
DRAWTEXT(CROSS(0,TMP),LH,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0)CLOSE=MA55,HH,'卖↓');
DRAWTEXT(CROSS(0,TMP)CLOSE=MA55,LH,'买↑');
=======================================================================================
3.
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZHIB: EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IFELSE(VAR6=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,COLORRED,0);
VARA:=IFELSE(VAR9 CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:EMA(VAR7,5)*2,COLORGREEN;
D:EMA(K,5), COLORWHITE;
J:K*3-D*2, COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) J10;
DRAWTEXT(VARA=20,15,'底部');
STICKLINE((VARA=20),0,10,COLORWHITE,0);
VARC:=(ZIGZAG(CLOSE,5,1)REF(ZIGZAG(CLOSE,5,1),1)) (REF(ZIGZAG(CLOSE,5,1),1)=REF(ZIGZAG(CLOSE,5,1),2)) (REF(ZIGZAG
(CLOSE,5,1),2)=REF(ZIGZAG(CLOSE,5,1),3));
VARD:=(ZIGZAG(CLOSE,5,1)REF(ZIGZAG(CLOSE,5,1),1)) (REF(ZIGZAG(CLOSE,5,1),1)=REF(ZIGZAG(CLOSE,5,1),2)) (REF(ZIGZAG
(CLOSE,5,1),2)=REF(ZIGZAG(CLOSE,5,1),3));
STICKLINE((VARC=1),(-14),0,COLORMAGENTA,0);
DRAWTEXT((VARC=1),(-14),'买');
STICKLINE((VARD=1),14,0,COLORGREEN,0);
DRAWTEXT((VARD=1),18,'卖');
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3* *** A((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* *** A( *** A
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3* *** A((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* *** A( *** A
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARFREF(VAR10,1) VOLREF(VOL,1) CLOSEREF(CLOSE,1);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IFELSE(VAR13=150 VAR13200 VAR14=150 VAR14200,10,0);
VAR16:=IFELSE(VAR13=-150 VAR13-200 VAR14=-150 VAR14-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IFELSE(VAR1890,VAR18,100);
VAR1A:=IFELSE(VARE0,VARE,0);
VAR1B:=IFELSE(VAR14=200 VAR13=150,15,IFELSE(VAR14=-200 VAR13=-150,-15,VAR16))+60;
VAR1C:=VAR1A48 VAR1B60 VAR19100;
这个应该是飞狐的, ""通达信里应该是用and
呃……
首先,楼主啊,你确实有创意,但是指标这个东西,不是那么用的啊。
不管KD,MACD,BOLL都是由经济学家经过对无数历史数据的分析、归纳而得出的;又经过了无数人的使用、检验,其使用价值、可靠性都是有目共睹的。
你这个所谓的指标,其实就是分析周期与月K线有个一周的差距,这与人们的习惯、思想就有了一个很大的不同。所谓“差之毫厘,谬之千里”,人们都习惯按日、周、月、年之类的周期结算,所以,可以说,3周作为周期,对股票期货没有现实意义,从而这个指标也就没有实用价值。
至于理论上能否写出来,这样想的话,也就不需考虑了。
当然,写得话是这样的,文华的软件是可执行的,也就说源码经过了包装组合,至于是什么格式包装的,要看是什么语言写的,还要看这个软件用没用什么特殊的“壳”,不是编者,没有源码,想用其数据,就要破译、破解。
所以,楼主你就算再有钱,也没必要做这种大费周章的事。
网站首页:期货手续费网-加1分开户(微信:527209157)
本文链接:http://52ol.cn/post/71735.html
Copyright 2012-2024 期货手续费网-加1分开户 网站地图 邮箱:diyijiaoyi@qq.com 微信:527209157 湘ICP备18014167号