黄金K线主图(通达信源码)下载后直接用
通达信黄金柱主图公式源码
通达信黄金柱主图公式源码M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=120;M7:=240;MA5攻击线:EMA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10操盘线:EMA(CLOSE,10),LINETHICK2,COLOR00FFFF;MA20月线:EMA(CLOSE,20),LINETHICK2,COLORFF00FF;MA30生命线:EMA(CLOSE,M4),LINETHICK2,COLORFF6600;MA60决策线:EMA(CLOSE,M5),LINETHICK1,COLOR009933;MA120趋势线:EMA(CLOSE,M6),COLOR006699,LINETHICK1;MA240年线:EMA(CLOSE,M7),COLOR002299,LINETHICK1;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);AA11:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB11:=REF(COUNT(C<MA60,AA11)=AA11,1);CC11:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB11 AND CC11;DRAWTEXT(芙蓉出水,H,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.1,0),COLORFF00FF;STICKLINE(芙蓉出水,O,C,1.1,1),LINETHICK1,COLORFF00FF;ZJ:=AMOUNT/10000;TM:=V-MA(V,10);一穿三:=MA5>O AND MA10>O AND MA30>O AND MA5<C AND MA10<C AND MA30<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L,'◆一穿三'),COLORFFFFFF;STICKLINE(一穿三,OPEN,CLOSE,5,0),COLORCC0066;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND(REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱 OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破))AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3);BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;{重绘K线}DRAWKLINE(H,O,L,C);{重绘K线显示大阳\大阴\涨停\跌停\假阴,适用于通达信}RC1:=REF(C,1);涨停率10:=10-1/RC1;{178448-WEN98编写}涨停率5:=5-1/RC1;比前涨率:=(C-RC1)*100/RC1;比前跌率:=(RC1-C)*100/RC1;ST:=NAMELIKE('ST') OR NAMELIKE('*ST');涨停:= IF(ST, (比前涨率>=涨停率5), (比前涨率>=涨停率10));本日涨率:=(C-O)*100/O;本日跌率:=(O-C)*100/O;STICKLINE((H-RC1)*100/RC1>=涨停率10,H,MAX(C,O),1,0),COLORYELLOW;{涨停后回落}STICKLINE((RC1-L)*100/RC1>=涨停率10,L,MIN(C,O),1,0),COLORBLUE;{跌停后回升}跌停:= IF(NAMELIKE('ST'), (比前跌率>=涨停率5), (比前跌率>=涨停率10));STICKLINE(跌停,O,C,1,0),COLORLIBLUE;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5)AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,0.5,0),COLORFF99FF;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,1,0),COLOR009933;{假阴柱}假阴:=C<O AND C>REF(C,1);STICKLINE(假阴,O,C,1,0),COLORRED;{假阳柱}假阳:=C>O AND C<REF(C,1);STICKLINE(假阳,O,C,1,0),COLORGREEN;{涨停}AAAA:=CLOSE/REF(C,1)>=1.09;STICKLINE(AAAA,O,C,1,0),COLORYELLOW;STICKLINE(AAAA,L,H,1,0),COLORYELLOW;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,1,0),COLORBLUE;DRAWTEXT(立桩量成立,HIGH,'←立柱'),COLORGREEN;DRAWTEXT(FILTER101,LOW,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER104,LOW,'↖将军柱'),COLORRED;STICKLINE(FILTER104,OPEN,CLOSE,0.1,1),COLORYELLOW;{设立参数:百分比(2,20,5), 右数峰序(2,20,2)}{ZIG(3,5);}百分比:=5;右数峰序:=2;波谷值: CONST(TROUGH(2,百分比,1)),NODRAW;波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;波峰值:= CONST(PEAK(1,百分比,右数峰序));允许误差:=0.024;XG:= ABS(波峰值-波谷值)<=允许误差{AND BARSCOUNT(V)>60};波峰距离:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW;距离:=CURRBARSCOUNT;DRAWLINE(距离=波峰距离AND XG,波谷值,距离=1,波谷值,-1),COLORFF0099;DRAWTEXT(距离=波谷距离AND XG,L,' ↖精准峰谷线'),COLORFF0099;DRAWICON(距离=波峰距离,H,2);{波峰位置}DRAWICON(距离=波谷距离,L,1);{波谷位置}精准点:=(ABS(H-波谷值)<=允许误差OR ABS(L-波谷值)<=0.024) {AND 距离<=120};STICKLINE(精准点,波谷值,波谷值,40,-1),COLORFF6600;{画精准谷底线}波谷值2:= CONST(TROUGH(2,百分比,2));波谷值3:= CONST(TROUGH(2,百分比,3));波谷值4:= CONST(TROUGH(2,百分比,4));波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2));波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3));波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4));XG2:= ABS(波谷值-波谷值2)<=允许误差;XG3:= ABS(波谷值-波谷值3)<=允许误差;XG4:= ABS(波谷值-波谷值4)<=允许误差;XGL:=(距离=波谷距离2 AND XG2) OR (距离=波谷距离3 AND XG3)OR (距离=波谷距离4 AND XG4);DRAWLINE(XGL,波谷值,距离=1,波谷值,-1),COLORFFFF33;DRAWTEXT(XGL,L,' -------↖精准谷底线'),COLORFFFF33;{精准线WEN98的}N110:=3;L0:=0.00;{点位差参数}{底精准线}L1:=ABS(L-REF(L,1))<=L0;L2:=ABS(L-REF(L,2))<=L0;L3:=ABS(L-REF(L,3))<=L0;L4:=ABS(L-REF(L,4))<=L0;L5:=ABS(L-REF(L,5))<=L0;精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;精准左:=FILTER(精准线首次,N110) ;天数:=BARSLAST(精准左);LTS:=REF(L,天数);精准右:=ABS(L-LTS)<=L0;STICKLINE(精准左,L,L,30,-1),COLORMAGENTA;{顶精准线}G1:=ABS(H-REF(H,1))<=L0;G2:=ABS(H-REF(H,2))<=L0;G3:=ABS(H-REF(H,3))<=L0;G4:=ABS(H-REF(H,4))<=L0;G5:=ABS(H-REF(H,5))<=L0;精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;精准左1:=FILTER(精准线首次1,N110) ;天数1:=BARSLAST(精准左1);HTS:=REF(H,天数1);精准右1:=ABS(H-HTS)<=L0;STICKLINE(精准左1,H,H,30,-1),COLOR00FF00;{必杀线}N:=10;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));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),LINETHICK5,COLOR0000FF;杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLOR00FFFF;DRAWTEXT(ISLASTBAR, T3HIGH, ' 必杀线')LINETHICK1,COLOR002299;。
黄金分时买卖主图指标通达信指标公式源码
一个黄金分时买卖,用着感觉还不错"GG.CDP#DAY"COLORYELLOWDOTLINE;DRAWNUMBER(CURRBARSCOUNT=1,"GG.CDP#DAY","GG.CDP#DAY"),COLORY ELLOW;"GG.AH#DAY",COLORRED;DRAWNUMBER(CURRBARSCOUNT=1,"GG.AH#DAY","GG.AH#DAY"),COLORMAGENTA; "GG.NH#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NH#DAY","GG. NH#DAY"),COLORCYAN;"GG.NL#DAY",COLORYELLOW;DRAWNUMBER(CURRBARSCOUNT=1,"GG.NL#DAY","GG.N L#DAY"),COLORLICYAN;"GG.AL#DAY",COLORLIRED;DRAWNUMBER(CURRBARSCOUNT=1,"GG.AL#DAY","GG.AL# DAY"),COLORLIMAGENTA;{黄金分割}HH:=CONST(HHV(C,0));LL:=CONST(LLV(C,0));HL:=HH-LL;A76:=0.764*HL+LL,COLORCYAN,POINTDOT;A61:=0.618*HL+LL,COLORCYAN,POINTDOT;A38:=0.382*HL+LL,COLORCYAN,POINTDOT;A23:=0.236*HL+LL,COLORCYAN,POINTDOT;A51:=0.495*HL+LL,COLORCYAN,POINTDOT;A52:=0.505*HL+LL,COLORCYAN,POINTDOT;DRAWBAND(HH,RGB(0,30,30),A76,RGB(0,30,30));DRAWBAND(A23,RGB(0,30,30),LL,RGB(0,30,30));DRAWBAND(A76,RGB(100,30,100),A61,RGB(100,30,100));DRAWBAND(A38,RGB(100,30,100),A23,RGB(100,30,100));DRAWBAND(A61,RGB(100,90,0),A38,RGB(100,90,0));DRAWBAND(A51,RGB(180,100,100),A52,RGB(180,100,100));DRAWTEXT(CURRBARSCOUNT=240,HH*0.999,'高'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=240,LL*1.001,'低'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A76,'压'),COLORCYAN; DRAWTEXT(CURRBARSCOUNT=240,A23,'撑'),COLORMAGENTA; DRAWTEXT(CURRBARSCOUNT=240,A52,'中'),COLOR00FFFF;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前4:="FSKY.前4#DAY";前5:="FSKY.前5#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);DRAWRECTREL(0,160,MM*预测量,190,RGB(90,90,90)); DRAWRECTREL(0,160,MM*今量,190,RGB(A1,A2,A3)); DRAWRECTREL(0,160,MM*主买,190,RGB(250,250,280));ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";A4:=IF(ZC>=ZO,255,0);A5:=IF(ZC>=ZO,0,255);A6:=IF(ZC>=ZO,0,255);DRAWRECTREL(0,120,MM*昨量,150,RGB(A4,A5,A6));JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";A7:=IF(JC>=JO,255,0);A8:=IF(JC>=JO,0,255);A9:=IF(JC>=JO,0,255);DRAWRECTREL(0,80,MM*前量,110,RGB(A7,A8,A9));JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";A10:=IF(JC3>=JO3,255,0);A11:=IF(JC3>=JO3,0,255);A12:=IF(JC3>=JO3,0,255);DRAWRECTREL(0,40,MM*前4,70,RGB(A10,A11,A12));JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";A13:=IF(JC4>=JO4,255,0);A14:=IF(JC4>=JO4,0,255);A15:=IF(JC4>=JO4,0,255);DRAWRECTREL(0,0,MM*前5,30,RGB(A13,A14,A15)); {分时K}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*1200;CL:=500-(ZX/ZS-1)*1200;HI:=500-(ZG/ZS-1)*1200;LO:=500-(ZD/ZS-1)*1200;N1:=IF(TIME>=130000 OR TIME<91500,360,860);Z1:=IF(ZX>=KP,255,0);Z2:=IF(ZX>=KP,0,255);Z3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1+35,HI,N1+35,LO,RGB(Z1,Z2,Z3)); Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1+25,OP,N1+45,CL,RGB(Q1,Q2,Q3)); ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*1200;ZCP:=500-(ZC/ZS-1)*1200;ZZG:=500-(ZH/ZS-1)*1200;ZZD:=500-(ZL/ZS-1)*1200;Z4:=IF(ZC>=ZO,255,0);Z5:=IF(ZC>=ZO,0,255);Z6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1+5,ZZG,N1+5,ZZD,RGB(Z4,Z5,Z6)); Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-5,ZKP,N1+15,ZCP,RGB(Q4,Q5,Q6)); JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*1200;ZZCP:=500-(JC/ZS-1)*1200;ZZZG:=500-(JH/ZS-1)*1200;ZZZD:=500-(JL/ZS-1)*1200;Z7:=IF(JC>=JO,255,0);Z8:=IF(JC>=JO,0,255);Z9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-25,ZZZG,N1-25,ZZZD,RGB(Z7,Z8,Z9));Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-35,ZZKP,N1-15,ZZCP,RGB(Q7,Q8,Q9));JH3:="FSKY.JH3#DAY";JL3:="FSKY.JL3#DAY";ZZKP3:=500-(JO3/ZS-1)*1200;ZZCP3:=500-(JC3/ZS-1)*1200;ZZZG3:=500-(JH3/ZS-1)*1200;ZZZD3:=500-(JL3/ZS-1)*1200;Z10:=IF(JC3>=JO3,255,0);Z11:=IF(JC3>=JO3,0,255);Z12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-55,ZZZG3,N1-55,ZZZD3,RGB(Z10,Z11,Z12)); Q10:=IF(JC3>=JO3,255,0);Q11:=IF(JC3>=JO3,0,255);Q12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-65,ZZKP3,N1-45,ZZCP3,RGB(Q10,Q11,Q12)); JH4:="FSKY.JH4#DAY";JL4:="FSKY.JL4#DAY";ZZKP4:=500-(JO4/ZS-1)*1200;ZZCP4:=500-(JC4/ZS-1)*1200;ZZZG4:=500-(JH4/ZS-1)*1200;ZZZD4:=500-(JL4/ZS-1)*1200;Z13:=IF(JC4>=JO4,255,0);Z14:=IF(JC4>=JO4,0,255);Z15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-85,ZZZG4,N1-85,ZZZD4,RGB(Z13,Z14,Z15)); Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-95,ZZKP4,N1-75,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*1200;ZZCP5:=500-(JC5/ZS-1)*1200;ZZZG5:=500-(JH5/ZS-1)*1200;ZZZD5:=500-(JL5/ZS-1)*1200;Z16:=IF(JC5>=JO5,255,0);Z17:=IF(JC5>=JO5,0,255);Z18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-115,ZZZG5,N1-115,ZZZD5,RGB(Z16,Z17,Z18)); Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-125,ZZKP5,N1-105,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*1200;ZZCP6:=500-(JC6/ZS-1)*1200;ZZZG6:=500-(JH6/ZS-1)*1200;ZZZD6:=500-(JL6/ZS-1)*1200;Z19:=IF(JC6>=JO6,255,0);Z20:=IF(JC6>=JO6,0,255);Z21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-145,ZZZG6,N1-145,ZZZD6,RGB(Z19,Z20,Z21)); Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-155,ZZKP6,N1-135,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*1200;ZZCP7:=500-(JC7/ZS-1)*1200;ZZZG7:=500-(JH7/ZS-1)*1200;ZZZD7:=500-(JL7/ZS-1)*1200;Z22:=IF(JC7>=JO7,255,0);Z23:=IF(JC7>=JO7,0,255);Z24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-175,ZZZG7,N1-175,ZZZD7,RGB(Z22,Z23,Z24)); Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-185,ZZKP7,N1-165,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*1200;ZZCP8:=500-(JC8/ZS-1)*1200;ZZZG8:=500-(JH8/ZS-1)*1200;ZZZD8:=500-(JL8/ZS-1)*1200;Z25:=IF(JC8>=JO8,255,0);Z26:=IF(JC8>=JO8,0,255);Z27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-205,ZZZG8,N1-205,ZZZD8,RGB(Z25,Z26,Z27));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-215,ZZKP8,N1-195,ZZCP8,RGB(Q25,Q26,Q27));JO9:="FSKY.JO9#DAY";JC9:="FSKY.JC9#DAY";JH9:="FSKY.JH9#DAY";JL9:="FSKY.JL9#DAY";ZZKP9:=500-(JO9/ZS-1)*1200;ZZCP9:=500-(JC9/ZS-1)*1200;ZZZG9:=500-(JH9/ZS-1)*1200;ZZZD9:=500-(JL9/ZS-1)*1200;Z28:=IF(JC9>=JO9,255,0);Z29:=IF(JC9>=JO9,0,255);Z30:=IF(JC9>=JO9,0,255);DRAWRECTREL(N1-235,ZZZG9,N1-235,ZZZD9,RGB(Z28,Z29,Z30));Q28:=IF(JC9>=JO9,255,0);Q29:=IF(JC9>=JO9,0,255);Q30:=IF(JC9>=JO9,0,255);DRAWRECTREL(N1-245,ZZKP9,N1-225,ZZCP9,RGB(Q28,Q29,Q30));MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*1200;DRAWRECTREL(N1+28,XMA5,N1+42,XMA5,RGB(255,255,255));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*1200;DRAWRECTREL(N1+18,XMA10,N1+52,XMA10,RGB(250,250,280));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*1200;DRAWRECTREL(N1+10,XMA20,N1+60,XMA20,RGB(0,0,255)),COLORC0C0C0; MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*1200;DRAWRECTREL(N1+0,XMA60,N1+70,XMA60,RGB(0,255,0)),COLOR808000; 阻力:REFDATE(REF(HHV(C,60),FROMOPEN-60),DATE)DOTLINE,COLORCYAN; H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力1:=L1+P1*7/8,COLOR663300,DOTLINE;支撑:=L1+P1*0.5/8,COLOR663300,DOTLINE;现价:=CLOSE;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW; DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*0.999,'买★'),COLORRED;{吸} DRAWTEXT(LONGCROSS(现价,阻力1,2),现价,'跑啊★'),COLORCYAN;{抛}; 输赢线:EMA(C,120),COLORBLACK,LINETHICK1;分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;D:CLOSE,LINETHICK2,COLORWHITE;TT:=BARSCOUNT(C);ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT);ZZ1:=BETWEEN(C/ZZ,1.05,0.95);均线1:=IF(ZZ1=0,MA(C,TT),ZZ);涨幅:=(C/DYNAINFO(3)-1)*100;均线涨幅:=(均线1/DYNAINFO(3)-1)*100;涨幅差:=涨幅-均线涨幅;IF(涨幅差>4.5,C,DRAWNULL),COLORGREEN,LINETHICK5;IF(涨幅差<-4.5,C,DRAWNULL),COLORRED,LINETHICK5;。
通达信很准的黄金线主图指标
通达信很准的黄金线主图指标通达信很准的黄金线主图指标日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;V AR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;V AR2:=(EMA(VOL,10)+EMA(VOL,32))/2;V AR3:=(V AR1+V AR2)/2;V AR4:=EMA(V AR3,30);V AR5:=EMA(V AR3,60);V AR6:=EVERY(V AR1>REF(V AR1,1),5) ANDEVERY(V AR4>REF(V AR4,1),5);DRAWBAND(V AR1,RGB(150,30,30),EMA(V AR1,60),RGB(0, 110,30));牵引线:V AR1,COLORF29540;强弱线:EMA(V AR1,日时转换),POINTDOT,COLORWHITE; 趋势关注:IF(CROSS(V AR1,EMA(V AR1,60)) ANDV AR6,1,0),NODRAW,COLORRED;量价关注:IF(CROSS(V AR3,V AR5) ANDV AR6,1,0),NODRAW,COLORWHITE;冲击量:IF(V AR3>V AR5 ANDV AR6,1,0),NODRAW,COLORYELLOW;强势区:IF(V AR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(V AR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS>V AR1,QZS,V AR1,1,0),COLORF29540;STICKLINE(冲击量=1,QZS,V AR1,1,0),COLOR0F26FB; DRAWICON(趋势关注=1,EMA(V AR1,60),13);DRAWTEXT(量价关注=1,EMA(V AR1,60),'关注' ),COLORWHITE;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORC C66FF;力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLOR GREEN;DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 ORMA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C ANDMA2<C AND MA3<C AND CLOSE>OPEN ; DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF; TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND(VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) ANDREF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) ORREF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND(REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱)AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱)AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER(BACKSET103,3); BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4); FILTER105:=FILTER(BACKSET105,3); BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O, 3))ANDMIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0 ;黄金线上影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF( O,3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O, 3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O, 3))AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O, 3))AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3))AND L=MIN(MIN(L,REF(L,1)),REF(L,2)); BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER203));。
黄金K线主图(通达信源码)
黄金K线主图(通达信源码)TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);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;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED;DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;A1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRA WNULL)COLORRED,LINETHICK1;休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAW NULL)COLORGREEN,LINETHICK1;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;STICKLINE(CROSS(A1X,0)ORCROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COL ORWHITE;STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0. 998,5,0)COLORWHITE;工作线:=EMA(C,14);止盈线:EMA(C,7),LINETHICK1,COLORGRAY;工作区:IF(C>=工作线AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED,LINETHICK2;生命线:EMA(C,25),COLORYELLOW;{DRAWICON(CROSS(工作线,生命线),工作线*0.95,5);原句}IF(CROSS(工作线,生命线),工作线*0.975,DRAWNULL),CIRCLEDOT,COLORRED;DRAWICON(CROSS(C,生命线) AND C>EMA(C,14),L*0.99,1);DRAWICON(COUNT(C<EMA(C,7),2)=2 AND EMA(C,7)>EMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2);DRAWICON(CROSS(工作线,C) AND EMA(C,14)>EMA(C,25),H*1.01,8);{止损位}IF(CROSS(生命线,工作线),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN;TT2赋值:以0.9为权重(((最高价+最低价)+(收盘价*2))/4.15)的动态移动平均TT1赋值:昨日TT2的3日指数移动平均RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100K赋值:RSV的3日[1日权重]移动平均D赋值:K的3日[1日权重]移动平均J赋值:3*K-2*DLC赋值:昨收RSI赋值:(((收盘价-LC)和0的较大值的3日[1日权重]移动平均/ (收盘价-LC)的绝对值的3日[1日权重]移动平均) * 100)FF赋值:收盘价的3日指数移动平均AA1赋值:成交额(元)/成交量(手)BB1赋值:最低价<AA1*0.9CC1赋值:(收盘价-昨收)/昨收*100>1.2DD1赋值:最低价<收盘价的5日简单移动平均*0.921EE1赋值:成交量(手)<成交量(手)的5日简单移动平均*1.5FF1赋值:BB1 AND CC1 AND DD1 AND EE1F赋值:100*(收盘价-昨收)/昨收P1赋值:如果收盘价<昨日开盘价ANDF<0,返回1,否则返回0P2赋值:如果收盘价<2日前的开盘价ANDF<0,返回1,否则返回0 TT3赋值:P1=0 AND 昨日P1=1 AND P2=0 AND 昨日P2=1 TT4赋值:P1=1 AND 昨日P1=0 AND P2=1 AND 昨日P2=0 Z1赋值:收盘价的13日简单移动平均ZX赋值:13/2+1日前的Z1当满足条件ZX上穿收盘价时,在最高价*1.01位置画2号图标当满足条件收盘价上穿TT1ANDJ<55时,在最低价位置书写文字,画红色当满足条件88上穿RSI时,在最高价*1.02位置书写文字,COLOR00FFFF当满足条件TT3时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFF00FFA1赋值:收盘价的14日指数移动平均画白色,线宽为1A1X赋值:(A1-昨日A1)/昨日A1*100,NODRAW输出出击:如果A1X>=0,返回上次A1X上穿0距今天数+1日前的收盘价的14日指数移动平均,否则返回无效数画红色,线宽为1 输出休假:如果A1X<0,返回上次0上穿A1X距今天数+1日前的收盘价的14日指数移动平均,否则返回无效数画绿色,线宽为1 当满足条件A1X上穿0时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.画黄色当满足条件0上穿A1X时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.画绿色当满足条件A1X上穿0ORCROSS(0,A1X)时,在昨日收盘价的14日指数移动平均和昨日收盘价的14日指数移动平均*0.998位置之间画柱状线,宽度为2,0不为0则画空心柱.画白色当满足条件是否最后一个周期时,在昨日收盘价的14日指数移动平均和昨日收盘价的14日指数移动平均*0.998位置之间画柱状线,宽度为5,0不为0则画空心柱.画白色工作线赋值:收盘价的14日指数移动平均输出止盈线:收盘价的7日指数移动平均,线宽为1,画深灰色输出工作区:如果收盘价>=工作线ANDEMA(收盘价,14)>=收盘价的25日指数移动平均,返回工作线,否则返回无效数, 画红色,线宽为2 输出生命线:收盘价的25日指数移动平均,画黄色如果工作线上穿生命线,返回工作线*0.975,否则返回无效数,CIRCLEDOT,画红色当满足条件收盘价上穿生命线ANDC>收盘价的14日指数移动平均时,在最低价*0.99位置画1号图标当满足条件统计2日中满足收盘价<收盘价的7日指数移动平均的天数=2ANDEMA(收盘价,7)>收盘价的14日指数移动平均ANDCOUNT(收盘价>止盈线,6)>=3时,在最高价*1.03位置画2号图标当满足条件工作线上穿收盘价ANDEMA(收盘价,14)>收盘价的25日指数移动平均时,在最高价*1.01位置画8号图标如果生命线上穿工作线,返回最高价*1.04,否则返回无效数,CIRCLEDOT,画绿色。
黄金主升浪主图指标通达信指标公式源码
看图是不是主升浪M3:= EMA(CLOSE,3);M8: EMA(CLOSE,8), , COLORGREEN;M13: EMA(M8,13), , COLORRED;VAR1:=EMA(M13,62);VAR2:=(CLOSE+HIGH+LOW)/3;VAR3:=EMA(VAR2,10);VAR4:=REF(VAR3,1);STICKLINE(VAR3>VAR4,VAR3,VAR4,4,0), , COLORYELLOW; STICKLINE(VAR3<VAR4,VAR3,VAR4,4,0), , COLORBLUE;VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);DRAWTEXT(CROSS(VAR3,VAR4),VAR3*0.98,''),COLORYELLOW;DRAWTEXT(CROSS(VAR5,VAR6),HIGH*1.04,'↓高位'), , COLORGREEN;VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),N1,1)/SMA(ABS(CLOSE-VAR7),N1,1)*100;VAR9:=CROSS(N2,VAR8);VARA:=FILTER(VAR9,4);DRAWTEXT(VARA,HIGH*1.04,''), , COLORWHITE;VARB:=(2*CLOSE+HIGH+LOW)/4;VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VARE>=VARF,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'), , {00010001};DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VARE>VARF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW,'●买进'), , COLORYELLOW;VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'), , COLORRED;BB:=HHV(HHV(LOW,14),60);X:=HHV(MA((L+H+C)/3,8),60),COLORFF6600;。
黄金波动主图指标通达信指标公式源码
STICKLINE(启爆,C,O,3,1),COLORWHITE;
STICKLINE(启爆,C,O,1,0),COLORGREEN;
STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;
STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止赢:1.05*CC,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF;
通达信指标公式源码黄金柱成本均线主图指标
通达信指标公式源码黄金柱成本均线主图指标展开全文做价值的传播者,一路同行,一起成长问题:怎样才能每天都收到这类文章!答案:只需点击上方《通达信公式指标》P1:=5;MA135:=MA(VOL,135);TJ1:=VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND VOL<=MA135*3.5;LJL:=FILTER(TJ1,3);TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0);ST:=TJ3=1;CL:=FILTER(ST,3);STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),2,0), COLORYELLOW;STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL )),2,0),COLORCYAN;STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW;DRAWTEXT(LJL,L*0.99,'支撑'),COLORF00FF0;JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO( 8),DYNAINFO(3));DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));CYC1:IF(JJJT,0.01*EXPMA(AMOUNT,P1)/EXPMA(VOL,P1),EM A((HIGH+LOW+CLOSE)/3,P1));风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。
通达信指标公式源码黄金分割+单阳不破+黄金均线主图(源码 主图)
用法:1.黄金分割线结合均线判断支持和压力,均线为5日8日和55日144日。
短线60分钟来分析判断买卖。
2.选股尽量选在55日和144日均线以上的票,利用单阳不破,选缩量回调到黄金分割和这2条均线支持时买入,获利概率较大。
N的参数:N 10 10000 150源码如下:MA5:MA(C,5);MA10:MA(C,8),LINETHICK1,COLORYELLOW ;MA55:MA(C,55),LINETHICK3,COLORLIMAGENTA;MA144:MA(C,144),LINETHICK2,COLORGREEN;高1:=HHV(H,N);低1:=LLV(L,N);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;高:REFDATE(高1,DATE);低:REFDATE(低1,DATE);一:REFDATE(H1,DATE);二:REFDATE(H2,DATE);{涨停标注}STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;{财务数据}DRAWTEXT_FIX(ISLASTBAR,0.18,0.01,1,'上市日期:'),COLOR00FF00; DRAWNUMBER_FIX(ISLASTBAR,0.18,0.01,0,FINANCE(42)),COLOR00FF00; DRAWTEXT_FIX(1,0.01,0.13,0,EXTERNSTR(0,1)),COLORRED; DRAWTEXT_FIX(1,0.26,0.01,0,EXTERNSTR(0,2)),COLORDD00DD; DRAWTEXT_FIX(1,0.01,0.066,0,EXTERNSTR(0,3)),COLOR00DD00; DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;三:REFDATE(H3,DATE);四:REFDATE(H4,DATE),COLORRED;五:REFDATE(H5,DATE);{DRAWTEXT(CURRBARSCOUNT=1.00,一,'一(0.191)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,二,'二(0.382)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,三,'三(0.50)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,四,'四(0.618'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,五,'五(0.809)'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=1.00,高,'高'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=1.00,低,'低'),COLORYELLOW; DRAWKLINE(H,O,L,C);};盘整天数:=5;{盘整天数自己调,以5--7日为最佳}下探幅度:=5;上冲幅度:=25;涨停:=(C-REF(C,1))/REF(C,1)>0.09;{涨幅大于9个点}缩量:=HHV(VOL,盘整天数-2)<REF(VOL,盘整天数-1) AND SUM(VOL, 盘整天数)>2* SUM(VOL, 盘整天数-2);七伤拳:=缩量AND REF(涨停,盘整天数) AND COUNT(涨停,盘整天数+1)=1 AND (HHV(H,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100<上冲幅度AND (LLV(L,盘整天数)-REF(C,盘整天数))/REF(C,盘整天数)*100>(下探幅度*-1);DRAWTEXT(七伤拳,LOW*0.98,'七伤拳'),COLORRED;阳涨幅:=3.5;阳倍量:=1.9;单阳收:=C;单阳开:=O;单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量; DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))=低不破价); STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN; STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED;STICKLINE(单阳,单阳开,单阳收,2,0),COLORYELLOW;DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;。
黄金主升浪主图指标通达信指标公式源码
看图是不是主升浪M3:= EMA(CLOSE,3);M8: EMA(CLOSE,8), , COLORGREEN;M13: EMA(M8,13), , COLORRED;VAR1:=EMA(M13,62);VAR2:=(CLOSE+HIGH+LOW)/3;VAR3:=EMA(VAR2,10);VAR4:=REF(VAR3,1);STICKLINE(VAR3>VAR4,VAR3,VAR4,4,0), , COLORYELLOW; STICKLINE(VAR3<VAR4,VAR3,VAR4,4,0), , COLORBLUE;VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);DRAWTEXT(CROSS(VAR3,VAR4),VAR3*0.98,''),COLORYELLOW;DRAWTEXT(CROSS(VAR5,VAR6),HIGH*1.04,'↓高位'), , COLORGREEN;VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),N1,1)/SMA(ABS(CLOSE-VAR7),N1,1)*100;VAR9:=CROSS(N2,VAR8);VARA:=FILTER(VAR9,4);DRAWTEXT(VARA,HIGH*1.04,''), , COLORWHITE;VARB:=(2*CLOSE+HIGH+LOW)/4;VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VARE>=VARF,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'), , {00010001};DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VARE>VARF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW,'●买进'), , COLORYELLOW;VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'), , COLORRED;BB:=HHV(HHV(LOW,14),60);X:=HHV(MA((L+H+C)/3,8),60),COLORFF6600;。
通达信自用最牛最全的K线主图源码
通达信自用最牛最全的K线主图源码MA5:MA(C,5);MA6:=MA(C,6);MA10:MA(C,10);MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);乖离2:=(MA20-MA30)/MA30*100;VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);MAX1:=MAX(MA20,MA30);MAX2:=MAX(MAX1,MA60);MIN11:=MIN(MA20,MA30);MIN2:=MIN(MIN11,MA60);K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}VAR2:=IF(K1<=8,1,0);上火车轨:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND MA20-MA30>REF((MA20-MA30),1) ;STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;神枪手:=DRAWTEXT(FILTER(上火车轨 AND "MACD.DIF"<0.15 AND "MACD.DIF">REF("MACD.DIF",1) AND MA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND J1>REF(J1,1) AND( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20)) ),5),L*0.98,'←神枪手');神枪手选股:=FILTER(上火车轨AND "MACD.DIF"<0.15 AND "MACD.DIF">REF("MACD.DIF",1) AND MA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND J1>REF(J1,1) AND( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20)) ),5);{44.40%15240}短线暴张:DRAWTEXT(FILTER( (VAR1 OR VAR2) AND MA10>REF(MA10,1) AND COUNT(MA30>REF(MA30,1),3)=3 AND MA30>MA60 AND COUNT(CROSS(MA5,MA30),3) AND J1>MJ1 AND MA(V,5)>MA(V,60)AND MA(V,60)>REF(MA(V,60),1),5),MA60*0.99,'短线暴张'),COLORRED;DRAWTEXT(CROSS("KDJ.K"(5,2,3),"KDJ.D"(5,2,3)) AND "KDJ.D"(5,2,3)<30 AND J1>MJ1 AND MA60>REF(MA60,1) AND COUNT(J1<1,3)>=1 ,L*0.995,'←买入'),COLORYELLOW;DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3)) AND "KDJ.D"(5,2,3)>65 AND J1<MJ1 AND COUNT(J1>1,3)>=1,H*1.005,'←卖出'),COLORGREEN;DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6)) AND "KDJ.D"(18,9,6)>60 AND "KDJ.J"(45,15,15)>90,H*1.03,'←顶'),COLORRED;DRAWTEXT(CROSS(MA5,MA6) AND "KDJ.K"(5,3,3)>=50 AND "KDJ.J"(5,3,3)<31 ,L*0.92,'←再买'),COLORMAGENTA;XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点');DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部');X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;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:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);{ 好股票网指标公式}VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。
K线主图源码通达信指标公式源码
增加了暖气带,抓主升更靠谱,信号出现就是买点。
买卖提示准确度高。
T1:=MA(C,21)>REF(MA(C,21),1);T2:=EXIST(C>REF(C,1)*1.093,21);T3:=C<O AND C<REF(C,1) AND EVERY(MA(C,5)<REF(MA(C,5),1),3);T5:=EVERY(V<REF(V,1),2) AND EVERY(V<MA(V,5),2);T6:=MA(C,5)>MA(C,21);XGG:=T1 AND T2 AND T3 AND T5 AND T6;DRAWTEXT(XGG,L*0.99,'伏击'),COLOR00FF00;AAAA:=MA(C,1);AAA0:=SMA(SMA(SMA(AAAA,2,1),2,1),2,1);BBB:=MA(AAA0,3);DRAWBAND(AAA0,RGB(255,193,193),BBB,RGB(34,139,34));MA05:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN; 三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) ANDMA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORRED;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'←风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.98,'←买入'),COLORYELLOW;{牛马线买点公式升级版}{红底绿顶}低:=REF(LLV(L,150),3);近期底:=REFDATE(低,DATE);最底:=REFDATE(近期底,DATE);高:=REF(HHV(H,150),3);近期顶:=REFDATE(高,DATE);最顶:=REFDATE(近期顶,DATE),NODRAW;出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;STICKLINE(出,O,(C+O)/2,3,0),COLORBLUE;STICKLINE(出,H,L,0.2,0),COLORBLUE;DRAWTEXT(出,H*0.998,'--蓝顶'),COLORGREEN;A2:=REF(MA(C,20),1);J1:=(MA(C,20)-A2)/A2*100;MJ1:=MA(J1,3);乖离2:=(MA(C,20)-MA(C,30))/MA(C,30)*100;VAC1:=IF(BETWEEN(乖离2,-2,5),2,0);XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.0014),'●买点');X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9,(HIGH * 0.9989),'-●出货'),COLORGREEN;M10:=MA(C,10);M13:=MA(C,13);VVVV5:=CROSS(M10,M13);WWF1:DRAWICON(VVVV5,H,11);QQQQ1:STICKLINE(VVVV5<C,REF(C,BARSLAST(CROSS(M10,M13))),REF(C,BARSLAST(C ROSS(M10,M13))),-1,-1),COLORWHITE;RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O}; MTM:=MA(C,6)-MA(C,13)+C;MTMMA:MA(MTM,5),NODRAW;AAA:=(3*C+H+L+O)/6;VAR21:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(A AA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR21;立桩量:=FILTER(TJ1,5);D1:REF(LOW,BARSLAST(立桩量)),COLORYELLOW,NODRAW,LINETHICK1;买线:=EMA(C,4);卖线:=EMA(SLOPE(C,20)*10+C,35);DRAWICON(CROSS(卖线,买线),HIGH*1.02,8);均价线:=AMOUNT/V/100;C2:=REF(C,1);涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;B1:='┄┄┄┄┄';DRAWTEXT(均价线AND 涨停,均价线,B1),COLORGREEN;B3:='┄┄┄┄┄';DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;B2:='┄┄┄┄┄';DRAWTEXT(涨停,L,B2),COLORGRAY;支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,NODRAW;除业绩后退股:=FINANCE(30)>=REF(FINANCE(30),130);D0:=除业绩后退股;D2:=IF(NAMELIKE('S'),0,1);D3:=IF(NAMELIKE('*'),0,1);D4:=DYNAINFO(17)>0;去除大盘股:=CAPITAL/1000000<50;去高价:=C<=75;去掉:=D0 AND D2 AND D3 AND D4 AND 去除大盘股AND 去高价ANDNOT(C>=REF(C,1)*1.097 AND C=O AND H=L);MA5:=EMA(C,5);YCXN:=MA5>=REF(MA5,1);AA1:=REF(CLOSE,1)<(LLV(LOW,10)+(HHV(HIGH,10)-LLV(LOW,10))*1);AA2:=CLOSE<HHV(HIGH,5) AND CROSS(C,MA(C,5)) AND CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20))AND CROSS(C,MA(C,34)) AND C/REF(C,1)>=1;AA3:=CLOSE>=HHV(HIGH,5) AND YCXN AND C/REF(C,1)>=1;涨停狙击:=DYNAINFO(4)>0AND HHV(HIGH,5)/LLV(LOW,5)<3.4 AND AA1 AND (AA2 OR AA3);L0:=(LLV(LOW,10));L10:=(LLV(LOW,60));L2:=(LLV(LOW,120));A1:=REF(CLOSE,1);B10:=COUNT(L10,13)>=8;B20:=SUM(L10,13)>=6;B30:=COUNT(-B20,13)>=10;B4:=1;B5:=COUNT(B20,13)>=1;C1:=(((CLOSE-A1)/A1)*100)>2.5;D10:=(((CLOSE-LOW)/LOW)*100)>2;火牛:=IF((D10 AND L2 AND C1)*2,10,0);金牛:=IF((D10 AND L0 AND C1)*2.5,10,0);陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1);NN:=IF((陡峭度> 0.35),6,65);VAR17:=((-((100)*(HHV(HIGH,NN) - CLOSE))/(HHV(HIGH,NN) - LLV(LOW,NN))))*((DATE< 20070110));狂喜:=(30)*(CROSS(VAR17,(-2)));最牛妖股:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,3))/MA((2*CLOSE+HIGH+LOW)/4,3)*1 50,2);XG:=CROSS(最牛妖股,3);黑马显形:=金牛AND 火牛AND 涨停狙击AND 狂喜AND 去掉;DRAWTEXT(黑马显形,LOW,'妖股'),COLORGREEN;DRAWTEXT_FIX(1,0.50,5,0,'~☆~牛长老优化518754178~☆~'),COLORGREEN;。
通达信黄金分割操盘主图源码
通达信黄金分割操盘主图源码以下是通达信黄金分割操盘主图源码(无源码的请下载附件导入)网1:=EXPMA(C,5),COLORYELLOW; 网2:=EXPMA(网1,2);网3:=EXPMA(网2,2);网13:EXPMA(CLOSE,13),COLORGRAY,LINETHICK3;网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK4;TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;TJ2A:IF(网1>网3,网1,网3),COLORGREEN;TJ3A:网1,COLORYELLOW,LINETHICK2;{QS}网A:=EXPMA(CLOSE,5),COLORWHITE;网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网B<>IF(网B<>IF(网1<>< p=""> <>{黄金分割线}顶1:=REFDATE(HHV(H,M),DATE);底1:=REFDATE(LLV(L,M),DATE);H1:=顶1-(顶1-底1)*0.191;H2:=顶1-(顶1-底1)*0.382;H3:=顶1-(顶1-底1)*0.5;H4:=顶1-(顶1-底1)*0.618;H5:=顶1-(顶1-底1)*0.809;顶部:REFDATE(顶1,DATE),COLOR666666;.8:REFDATE(H1,DATE),COLOR666666;8.2:REFDATE(H2,DATE),COLOR666666;P:REFDATE(H3,DATE),COLOR666666;a.8:REFDATE(H4,DATE),COLOR666666;.9:REFDATE(H5,DATE),COLOR666666;底部:REFDATE(底1,DATE),COLOR666666;DRAWTEXT(ISLASTBAR,顶部,' 顶部'),COLORGREEN;DRAWTEXT(ISLASTBAR,.8,' 19.8%'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,8.2,' 38.2%'),COLORYELLOW;DRAWTEXT(ISLASTBAR,P,' 50%'),COLORWHITE;DRAWTEXT(ISLASTBAR,a.8,' 61.8%'),COLORYELLOW;DRAWTEXT(ISLASTBAR,?.9,' 80.9%'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,底部,' 底部'),COLORRED;{BS标志}DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7);DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);{箱体}{箱顶:PEAK(CLOSE,N,1)*0.98,POINTDOT,LINETHICK3,COLORYELLO W;箱底:TROUGH(CLOSE,N,1)*1.02,POINTDOT,LINETHICK3,COLORFFFF 00;箱高:100*(箱顶-箱底)/箱底,NODRAW;};HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.76,0.04));HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.80,0.08));HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.84,0.12));HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.88,0.16));HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.92,0.20));HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH LL)/2),0.96,0.24));DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"} DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"} DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"} 总额:=AMOUNT;买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.78,0.05,0,'1日'),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.83,0.05,0,'3日'),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.88,0.05,0,'5日'),COLORMAGENTA,LINETHICK1;DRAWTEXT_FIX(1,0.93,0.05,0,'10日'),COLORMAGENTA,LINETHICK1;DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW;DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW;DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW;DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10: =MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5))AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 ANDMA10>REF(MA10,1);DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1 0.05,'牛起步'),COLOR00FF00;{过左峰提示粉色}VAR121:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR141:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR161:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR181:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);卖:=(VAR121 VAR141 VAR161 VAR181),LINETHICK2;SQ:DRAWLINE(卖,H,BARSLAST(卖)>=1,REF(H,BARSLAST(卖)), 1),COLORWHITE,LINETHICK2;过峰:=C>SQ AND REF(C,1)<>VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;预量:=VVOL/REF(V,1)>1.8;现量:=V/REF(V,1)>1.5;过峰1:STICKLINE( 过峰,C,O,5,0)COLORFF00FF;预量1:DRAWICON(过峰 AND 预量, H*1.01,14);现量1:DRAWICON(过峰 AND 现量,(O C)/2,23);前次低点:LLV(L*1,250)POINTDOT,COLORFF00FF,LINETHICK4;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
黄金K线主图(通达信源码)
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
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;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWICON(CROSS(ZX,C),H*1.01,2);
DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED;
DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;
A1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1; 休
假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(A1X,0)OR
CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;
工作线:=EMA(C,14);
止盈线:EMA(C,7),LINETHICK1,COLORGRAY;
工作区:IF(C>=工作线AND EMA(C,14)>=EMA(C,25),工作线,DRAWNULL), COLORRED,LINETHICK2; 生命线:EMA(C,25),COLORYELLOW;
{DRAWICON(CROSS(工作线,生命线),工作线*0.95,5);原句}
IF(CROSS(工作线,生命线),工作线*0.975,DRAWNULL),CIRCLEDOT,COLORRED;
DRAWICON(CROSS(C,生命线) AND C>EMA(C,14),L*0.99,1);
DRAWICON(COUNT(C<EMA(C,7),2)=2 AND EMA(C,7)>EMA(C,14) AND COUNT(C>止盈线,6)>=3,H*1.03,2);
DRAWICON(CROSS(工作线,C) AND EMA(C,14)>EMA(C,25),H*1.01,8);{止损位}
IF(CROSS(生命线,工作线),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN;。