[股票指标公式下载][通达信]优化组合(获利线、动态成本、主力成本、取舍线)_第1页
[股票指标公式下载][通达信]优化组合(获利线、动态成本、主力成本、取舍线)_第2页
[股票指标公式下载][通达信]优化组合(获利线、动态成本、主力成本、取舍线)_第3页
[股票指标公式下载][通达信]优化组合(获利线、动态成本、主力成本、取舍线)_第4页
[股票指标公式下载][通达信]优化组合(获利线、动态成本、主力成本、取舍线)_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、通达信】优化组合(获利线、动态成本、主力成本、取舍线)-指标公式源码利:WINNER(CLOSE)*100,NODRAW,COLORRED;马:DRAWLINE(HIGH=HHV(HIGH,10),HIGH,LOW=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW,LINETHICK2;获利线:COST(98);动态成本:COST(50),COLORBLUE;主力成本:COST(5),COLORGREEN;KDJ_K:=KDJ.K(9,3,3);KDJ_D:=KDJ.D(9,3,3);KDJ_J:=KDJ.J(9,3,3);买1:=CROSS(KDJ_J,0)OR(C

2、ROSS(KDJ_J,KDJ_K)ANDKDJ_D1,买0,0);掏底:IF(买,L*0.9978-0.03,DRAWNULL),P0INTD0T,C0L0R00FFFF,LINETHICK5;选股:=FILTER(CROSS(KDJ.K,KDJ.D)&CROSS(MACD.DIF,MACD.DEA),50);低吸:IF(股丄*0.988-0.01,DRAWNULL),P0INTD0T,C0L0RFF00FF,LINETHICK7;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,

3、3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20)/210,LINETHICK1,COLORYELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,

4、5),COLORLIBLUE;水平面:MA(CLOSE,60),COLORGREEN;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,l)/REF(WYA004,l)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1:二MA(CLOSE,1);WY分时21:=MA(CLOSE,21

5、);DRAWICON(WYA线10.25ANDWYA线20.25ANDCROSS(WYA线1,WYA2),HIGH*1.0128,6);DRAWICON(WYA线10ANDWYA线20ANDCROSS(WYA线1,WYA2),HIGH*1.0128,6);DRAWICON(CROSS(WY21,WY分时1),HIGH*1.0128,6);DRAWICON(WYA线1-0.25ANDWYA线20ANDWYA线20ANDCROSS(WYA线2,WYA1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21),L0W*0.99,5),C0L0RY

6、ELL0W;蓝STICKLINE(OPEN=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;STICKLINE(OPEN=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;红STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSEOPEN,CLOSE,OPEN,2.2,0),COLOR0

7、000CC;STICKLINE(CLOSEOPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(CLOSEOPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;VAR1:=AMOUNT/VOL/100;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR=2099ANDMONTH2,0,1);VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);散户:=EMA(VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)

8、*VAR3;DRAWTEXT(CROSS(散户,庄家)AND散户70,H+0.05,叮抛),COLORGREEN;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1);B1:=REF(C,A1+1)CANDREF(DIFF,A1+1)0,5),L*0.94,10);DRAWTEXT(FILTER(B10,5),L*0.94,M底),COLORGREEN;MACD底背离A2:=BARSLAST(REF(CROSS(KDJ.K,KDJ.D),

9、1);B2:=REF(C,A2+1)CANDREF(KDJ.K,A2+1)0,5),L*0.96,10);DRAWTEXT(FILTER(B20,5),L*0.96,K底),COLORYELLOW;KDJ底背离C1:=BARSLAST(REF(CROSS(DEA,DIFF),1);D1:=REF(C,C1+1)DIFFANDCROSS(DEA,DIFF);DRAWICON(FILTER(D10,5),H*1.07,12);DRAWTEXT(FILTER(D10,5),H*1.07,M顶),C0L0R0066FF;MACD顶背离C2:=BARSLAST(REF(CROSS(KDJ.D,KDJ.K

10、),1);D2:=REF(C,C2+1)KDJ.KANDCROSS(KDJ.D,KDJ.K);DRAWICON(FILTER(D20,5),H*1.05,12);DRAWTEXT(FILTER(D20,5),H*1.05,K顶),COLORRED;KDJ顶背离C3:=BARSLAST(REF(CROSS(RSI.RSI2,RSI.RSI1),1);D3:=REF(C,C3+1)RSI.RSI1ANDCROSS(RSI.RSI2,RSI.RSI1);DRAWICON(FILTER(D30,5),H*1.03,12),;DRAWTEXT(FILTER(D30,5),H*1.03,R顶),COLOR

11、MAGENTA,;RSI顶背离;ST:=MCST;QQ:=FILTER(CST,22);IF(QQ,L*0.998-0.01,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;IF(QQ,L*0.998-0.04,DRAWNULL),POINTDOT,LINETHICK5,COLOR55FF33;IF(QQ,L*0.998-0.07,DRAWNULL),POINTDOT,LINETHICK5,COLORFF00FF;RSI背A3:=BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1);B3:=REF(C,A3+1)CANDREF(RSI.

12、RSI1,A3+1)REF(R11,1);DRAWLINE(W1,H,S11,H,1),COLORBLUE;Z2:=REF(L,8)=LLV(L,2*8+1);Y2:=FILTER(Z2,8);X2:=BACKSET(Y2,8+1);W2:=FILTER(X2,8);低点T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1);U11:=T11REF(T11,1);DRAWLINE(W2,L,U11,L,1),COLORBLUE;M:=INTPART(3*8/5);Z12:=REF(H,M)=HHV(H,2*M+1);Y12:=FILTER(Z12,M);X12:=BACK

13、SET(Y12,M+1);W12:=FILTER(X12,M);高点R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1);S112:=R112REF(R112,1);DRAWLINE(W12,H,S112,H,1),COLORRED;Z22:=REF(L,M)=LLV(L,2*M+1);Y22:=FILTER(Z22,M);X22:=BACKSET(Y22,M+1);W22:=FILTER(X22,M);低点T112:=BACKSET(ISLASTBAR,BARSLAST(W22)+1);U112:=T112REF(T112,1);DRAWLINE(W22,L,U1

14、12,L,1),COLORRED;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力:=REF(HIGH,BARSLAST(VAR2222);STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222),REF(HIGH,BARSLAST(VAR2222),0.5,1),COLOREA91B5,LINETHICK3;STICKLINE(

15、CLOSE,REF(LOW,BARSLAST(VAR4444),REF(LOW,BARSLAST(VAR4444),0.5,1),COLOR00B4FF,LINETHICK3;下档线:=(CLOSE-LLV(LOW,13)/(HHV(HIGH,13)-LLV(LOW,13)*100);RRRSV:二SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDD:=(3*RRRSV)-(2*KKK);JJ12:=(CLOSE-LLV(LOW,55)/(HHV(HIGH,55)-LLV(LOW,55)*100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);W24:=(3*RSV24)-(2*K24);压力2:=IF(CROSS(W24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(W24,DDD),COLORFFFFFF;位:=IF(ISLASTBAR,压力2,DRAWNULL);STICKLINE(ISLASTBAR

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论