黄星买卖点主图指标通达信指标公式源码

合集下载

黄金分时买卖主图指标通达信指标公式源码

黄金分时买卖主图指标通达信指标公式源码

一个黄金分时买卖,用着感觉还不错"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;。

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式

通达信公式:黄金分割+单阳不破+趋势飘带+买卖点主图指标公式均线25:MA(CLOSE,25);均线43:MA(CLOSE,43);均线50:MA(CLOSE,50),COLOR0000FF;均线88:MA(CLOSE,88);N8:=STRCAT(CON2STR(YEAR,0),'年');Y8:=STRCAT(CON2STR(MONTH,0),'月');R8:=STRCAT(CON2STR(DAY,0),'日');N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL);低:IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLORFFFF00;高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;支撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF; 强势: IF(CURRBARSCOUNT<=N/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF; 突破:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR0000FF;警示:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.618,DRAWNULL),COLOR00FFFF; 压力:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.809,DRAWNULL),COLOR00FF00; 低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0 000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE; 低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE; STICKLINE(CCI>=200 AND H>=顶点,O,C,3,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,3,0),COLORYELLOW;DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,强势,强势,4,0),COLORFF00FF; STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,4,0),COLORABABAB; STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,4,0),COLOR00FFFF; STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=1,警示,'0.618'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=1,突破,'0.500'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=1,强势,'0.382'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;DA:(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+ 15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9) +10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14 )+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORRED;DC:MA(DB,5),COLORF0F000,LINETHICK1;{DRAWBAND(DB,RGB(255,0,0),DC,RGB(0,255,0));}DRAWBAND(DB,RGB(155,50,50),DC,RGB(83,123,68));STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED; STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;地量:=FILTER(LLV(AMOUNT,120)=AMOUNT,10);STICKLINE(地量,CLOSE,OPEN,4,0),COLORGREEN;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);DRAWTEXT(地量,LOW,' ↖地量'),COLORGREEN;{价画直线指标};STICKLINE(ISLASTBAR,C,C,3333,-1),COLORWHITE;{止盈止损}买入价格:IF(CROSS((MACD.DIF),(MACD.DEA)),C,DRAWNULL),NODRAW; AAA:=STICKLINE(买入价格,0,C,2,0),COLORRED;AAC:=BARSLAST(AAA);止盈价格:IF(C>=REF(C,AAC)*1.1,REF(C,AAC)*1.1,DRAWNULL),COLORMAGENTA,NO DRAW;止损价格:IF(C<=REF(C,AAC)*0.95,REF(C,AAC)*0.95,DRAWNULL),COLORGREEN,NO DRAW;{庄家成本}A:=SUMBARS(V ,CAPITAL*1);{累计换手=100%的周期}A1:=SUM(COST(10),A)/A;{在A周期里获利10%的平均价}A2:=SUM(COST(20),A)/A;{在A周期里获利20%的平均价}A3:=SUM(COST(30),A)/A;{在A周期里获利30%的平均价}A4:=SUM(COST(40),A)/A;{在A周期里获利40%的平均价}A5:=SUM(COST(50),A)/A;{在A周期里获利50%的平均价}庄家成本:(5*A1+4*A2+3*A3+2*A4+A5)/15,DOTLINE,COLORWHITE;IF(庄家成本>REF(庄家成本,1),庄家成本,DRAWNULL),COLORFF00FF,LINETHICK2; {3D立体K线}STICKLINE(C>O,C,O,3.2,0),COLOR000066;STICKLINE(C>O,C,O,2.0,0),COLOR000077;STICKLINE(C>O,C,O,1.5,0),COLOR000099;STICKLINE(C>O,C,O,0.9,0),COLOR0000CC;STICKLINE(C>O,C,O,0.5,0),COLOR0000FF;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;STICKLINE(C<O,L,H,0,0),COLOR009900;STICKLINE(C<O,C,O,3.2,0),COLOR009900;STICKLINE(C<O,C,O,2.5,0),COLOR00BB00;STICKLINE(C<O,C,O,1.5,0),COLOR00DD00;STICKLINE(C<O,C,O,0.5,0),COLOR00FF00;STICKLINE(C<O,C,O,0,0),COLORFFFFFF;阳涨幅:=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;PP1:=H>=MA(C,5)*(100+8)/100 AND NOT(C/REF(C,1)>1.095); DRAWICON(PP1,H*1.02,15);MA2:=MA(C,2);布林上轨:=MA(CLOSE,20)+2*STD(CLOSE,20);XG1:=CROSS(MA2,布林上轨);XG2:=L<=MA(C,26) AND C>=MA(C,26);XG0:=COUNT(XG1,30)=1 AND XG2 AND FILTER(XG2,10);DRAWTEXT(XG0,L*0.98,'↖回踩买'),COLORYELLOW;。

通达信黄金买卖点主图指标公式

通达信黄金买卖点主图指标公式

通达信黄金买卖点主图指标公式JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,COLOR0000FF,NODRAW;致远离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=致远离场,COLORFF99FF,NODRAW;今离场价:REF(致远离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;致远短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+1 6*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7) +12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL, 11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YT SL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YT SL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(致远短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(致远短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(致远短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(致远短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(致远短买,O,O+CO/3,0,0),COLOR33EEEE;DRAWTEXT(致远短买,REF(CLOSE,1),'←致远短买'),COLOR33FFCC;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←致远离场'),COLORFF99FF;。

买卖强主图通达信指标公式源码

买卖强主图通达信指标公式源码

此指标在出现'★'时买进后再等到出现“卖”时卖出必有丰厚的回报;黄柱出现时买进一路持有至绿柱时卖出,不要理会一时的得失,做足波段。

N:=20;N1:=7;N2:=69;T1:=IF((DATE<=1341231),1,0);M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),COLOR008000;M13:EMA(M8,13),COLOR0000FF;M62:EMA(M8,55),COLORF0F000;VAR1:=EMA(M13,62);M81:EMA(M62,81),COLOR00FFFF;M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;VAR2:=(CLOSE+HIGH+LOW)/(3);VAR3:=(EMA(VAR2,10))*(T1);VAR4:=(REF(VAR3,1))*(T1);STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;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))*(T1);DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);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,'●买进'),COLORFF00FF;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) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;。

通达信指标公式源码精确买卖点指标

通达信指标公式源码精确买卖点指标

NN:=120;主买:=CONST("FSKY.主买#DAY"),NODRAW;前量:=CONST("FSKY.前量#DAY");前主:=CONST("FSKY.前主#DAY");昨量:=CONST("FSKY.昨量#DAY"),NODRAW;昨主:=CONST("FSKY.昨主#DAY");今量:=CONST("FSKY.今量#DAY"),NODRAW;前4:=CONST("FSKY.前4#DAY");主4:=CONST("FSKY.主4#DAY");前5:=CONST("FSKY.前5#DAY");主5:=CONST("FSKY.主5#DAY");CMM:=MAX(前5,前4),NODRAW;BMM1:=MAX(前量,昨量),NODRAW;BMM:=MAX(CMM,BMM1),NODRAW;AMM:=IF(今量/BMM>2,今量,BMM),NODRAW;MM:=CONST(500/AMM),NODRAW;DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0);AAAX:=(3*C+H+L+O)/6;中长:IF(C,(8*AAAX+7*REF(AAAX,1)+6*REF(AAAX,2)+5*REF(AAAX,3)+4*REF(AAAX,4)+3*REF(AAAX,5)+2*REF(AAAX,6)+REF(AAAX,8))/36,DRAWNULL),COLOR00FF00; IF(中长> REF(中长,1),中长,DRAWNULL),COLORMAGENTA,LINETHICK2;MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00,LINETHICK1;EE:LLV(LOW,18),COLORFFFFFF;DRAWKLINE(H,O,L,C);最高:=CONST(HHV(H,NN));最低:=CONST(LLV(L,NN));RCC:=最高*0.9-(最高-最低);RCC1:=最高-(最高-最低)/2;RHL:=RCC;TT:=IF(ISLASTBAR,240/FROMOPEN,1);HH:=HHV(V*TT,NN);LL:=LLV(V,NN);V最高:=CONST(HH);V最低:=CONST(LL);V最高2:=CONST(HHV(H,NN));V最低2:=CONST(LLV(L,NN));P:=(V最高-V最低)/(V最高2-V最低2)*1.5,NODRAW;比:=TT;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);买卖差:=买盘-卖盘;STICKLINE(C>=O,RCC,(买盘+卖盘)/P+RCC,2.8,1),COLORRED;STICKLINE(C<O,RCC,(买盘+卖盘)/P+RCC,2.8,1),COLORFFFF00;STICKLINE(买卖差>=0,RCC,买盘/P+RCC,2.5,0),COLORRED;STICKLINE(买卖差>=0 AND C>=MA(C,30),RCC,买盘/P+RCC,3.0,0),COLORRED; STICKLINE(买卖差>=0,RCC,卖盘/P+RCC,1.1,0),COLOR998800;STICKLINE(买卖差>=0 AND C>=MA(C,30),RCC,卖盘/P+RCC,1.5,0),COLORDDCC00; STICKLINE(买卖差<0,RCC,买盘/P+RCC,2.5,0),COLORRED;STICKLINE(买卖差<0 AND C>=MA(C,30),RCC,买盘/P+RCC,3.0,0),COLORRED; STICKLINE(买卖差<0,RCC,卖盘/P+RCC,1.1,0),COLOR998800;STICKLINE(买卖差<0 AND C>=MA(C,30),RCC,卖盘/P+RCC,1.5,0),COLORDDCC00; S1:=IF(CODELIKE('300'),0,1);{创业板}S2:=IF(NAMELIKE('S'),0,1);S3:=IF(NAMELIKE('*'),0,1);{去掉停牌>=}S4:=DYNAINFO(17)>0;去掉:=S1 AND S2 AND S3 AND S4;MV3:=EMA(V,3);MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;MV5:=EMA(V,5);MA5:=EMA(C,5);MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;MV10:=EMA(V,10);MA10:=EMA(C,10);MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;强弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF; QBD:=CROSS(强弱度,50) AND COUNT(强弱度>50,7)<=3;启爆点:=IF(QBD AND COUNT(QBD,4)=1,50,0),COLOR00FFFF;半月相对价位:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*10;半月相对价位M:=SMA(半月相对价位,3,2);半月相对价位MM:=SMA(半月相对价位M,10,6);K13:=MA(半月相对价位MM,3);福缘:=半月相对价位MM>=K13,COLORRED;启爆福缘:=启爆点AND 福缘;HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);AK:=EMA((DMP-DMM)*1,3)*100+50,COLORFFFFFF;AD:=EMA((MA(DMP,3)-MA(DMM,3))*1,3)*100+50,COLORFFFFFF;DRAWICON(CROSS(AK,AD) AND 启爆点AND 福缘,L*0.99 ,9);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(主买>=今量/2,255,255);A2:=IF(主买>=今量/2,0,0);A3:=IF(主买>=今量/2,0,255);DRAWRECTREL(0,160,MM*今量,190,RGB(0,250,250));DRAWRECTREL(0,160,MM*主买,190,RGB(A1,A2,A3));DRAWRECTREL(0,160,MM*ABS(主买-(今量-主买)),190,RGB(A3,255,00));ZO:=CONST("FSKY.ZO#DAY");ZC:=CONST("FSKY.ZC#DAY");A4:=IF(昨主>=昨量/2,255,255);A5:=IF(昨主>=昨量/2,0,0);A6:=IF(昨主>=昨量/2,0,255);DRAWRECTREL(0,120,MM*昨量,150,RGB(0,250,250));DRAWRECTREL(0,120,MM*昨主,150,RGB(A4,A5,A6));DRAWRECTREL(0,120,MM*ABS(昨主-(昨量-昨主)),150,RGB(A6,255,00));JO:=CONST("FSKY.JO#DAY");JC:=CONST("FSKY.JC#DAY");A7:=IF(前主>=前量/2,255,255);A8:=IF(前主>=前量/2,0,0);A9:=IF(前主>=前量/2,0,255);DRAWRECTREL(0,80,MM*前量,110,RGB(0,250,250));DRAWRECTREL(0,80,MM*前主,110,RGB(A7,A8,A9));DRAWRECTREL(0,80,MM*ABS(前主-(前量-前主)),110,RGB(A9,255,00));JO3:=CONST("FSKY.JO3#DAY");JC3:=CONST("FSKY.JC3#DAY");A10:=IF(主4>=前4/2,255,255);A11:=IF(主4>=前4/2,0,0);A12:=IF(主4>=前4/2,0,255);DRAWRECTREL(0,40,MM*前4,70,RGB(0,250,250));DRAWRECTREL(0,40,MM*主4,70,RGB(A10,A11,A12));DRAWRECTREL(0,40,MM*ABS(主4-(前4-主4)),70,RGB(A12,255,00));JO4:=CONST("FSKY.JO4#DAY");JC4:=CONST("FSKY.JC4#DAY");A13:=IF(主5>=前5/2,255,255);A14:=IF(主5>=前5/2,0,0);A15:=IF(主5>=前5/2,0,255);DRAWRECTREL(0,0,MM*前5,30,RGB(0,250,250));DRAWRECTREL(0,0,MM*主5,30,RGB(A13,A14,A15));DRAWRECTREL(0,0,MM*ABS(主5-(前5-主5)),30,RGB(A15,255,00));五纯%:=CONST(IF(1 ,"FSKY2.五纯%#DAY",DRAWNULL)),NODRAW;一纯%:=CONST(IF(1,"FSKY2.一纯%#DAY",DRAWNULL)),NODRAW;三纯%:=CONST(IF(1 ,"FSKY2.三纯%#DAY",DRAWNULL)),NODRAW;DRAWRECTREL(0,345,200,600,RGB(80,80,80));DRAWTEXT_FIX(五纯%>=0,0.0,1-0.65,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(五纯%<0,0.0,1-0.65,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFF00;DRAWTEXT_FIX(三纯%>=0,0.0,1-0.56,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(三纯%<0,0.0,1-0.56,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFF00;DRAWTEXT_FIX(一纯%>=0,0.0,1-0.48,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFFFF;DRAWTEXT_FIX(一纯%<0,0.0,1-0.48,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFF00;。

精准买卖提示 简单明了 黄买红卖通达信指标公式源码

精准买卖提示 简单明了 黄买红卖通达信指标公式源码

精准买卖提示简单明了黄买红卖精准买卖提示用法:黄柱买、红柱卖每一波段都别错过!VAR1:=(HHV(HIGH,9)-LLV(LOW,9));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);防线B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLORWHITE;B1:=EMA(防线B,5);{STICKLINE(防线B>0 AND 防线B-B1>=0,79,80,6,0),COLORFF8000;STICKLINE(防线B>0 AND 防线B-B1<0,79,80,6,1),COLORRED;}{STICKLINE(防线B>0 AND 防线B-B1>=0,19,20,6,0),COLOR00FF00;}STICKLINE(防线B>0 AND 防线B-B1>=0,19,20,3,0),COLORYELLOW;{STICKLINE(防线B>0 AND 防线B-B1<0,49,50,6,1),COLORRED;}STICKLINE(防线B>0 AND 防线B-B1<0,19,20,3,1),COLORRED;一进一出:防线B-B1,COLORCYAN;{STICKLINE(防线B-B1>0,防线B,B1,8,1),COLOR00FF00;}妙趣横生:-一进一出,COLORRED;{STICKLINE(防线B-B1<0,防线B,B1,8,1),COLORRED;}卖出:(REF(一进一出,1)>0 AND 一进一出<=0) OR (一进一出<1 AND 一进一出>=0 AND C<O),COLORRED;DRAWICON(卖出,36,1);STICKLINE(卖出,0,28,1,0),COLORRED;DRAWTEXT(卖出,30,'卖'),COLORMAGENTA;买入:卖出=0 AND REF(一进一出,1)<0 AND 一进一出>0,COLORRED;STICKLINE(买入,0,28,2,0),COLORYELLOW;DRAWICON(买入,40,1);DRAWTEXT(买入,30,'买'),COLORYELLOW;。

精品主图 精准K线买卖点提示通达信指标公式源码

精品主图 精准K线买卖点提示通达信指标公式源码

此主图能比较好地提示K线买卖点,每条K线通过用颜色来反映当天K线的情况,对新手来说,是一个很好的主图,高手飘过。

指标只是辅助,具体交易要结合大盘和个股情况来看。

黄线1:EMA((O+C)/2,10),COLORGREEN,LINETHICK2;黄线2:EMA((O+C)/2,8.5),POINTDOT,COLORGREEN,LINETHICK3;黄线3:EMA((O+C)/2,6),POINTDOT,COLORGREEN,LINETHICK3;黄线4:EMA((O+C)/2,4.5),POINTDOT,COLORGREEN,LINETHICK3;黄线5:EMA((L+H)/2,3),COLORGREEN;IF(黄线1>=REF(黄线1,0),黄线1,DRAWNULL),COLORRED,LINETHICK2;IF(黄线1<=REF(黄线1,1),黄线1,DRAWNULL),COLORGREEN,LINETHICK2;IF(黄线2>=REF(黄线2,1),黄线2,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线2<=REF(黄线2,1),黄线2,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线3>=REF(黄线3,1),黄线3,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线3<=REF(黄线3,1),黄线3,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线4>=REF(黄线4,1),黄线4,DRAWNULL),POINTDOT,COLORRED,LINETHICK1;IF(黄线4<=REF(黄线4,1),黄线4,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK1; IF(黄线5>=REF(黄线5,1),黄线5,DRAWNULL),COLORRED,LINETHICK1;IF(黄线5<=REF(黄线5,1),黄线5,DRAWNULL),COLORGREEN,LINETHICK1;强势区:=IF((EVERY(黄线1>=REF(黄线1,1),1)),5,0)COLOR0000FF,LINETHICK3;买进价:=((C-REF(黄线5,1))/8+黄线5)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);白K买进:IF(买进条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买进条件,O,C,2,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(黄线1,1))/20+黄线1)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,2,1),COLORYELLOW,LINETHICK2;KPD1:=EMA(EMA(CLOSE,9),9);KPD2:=100*WINNER(CLOSE*0.95);L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;ROC:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC:=MA(CLOSE,22);UPPERC:=MIDC+2*STD(C,22);LOWERC:=MIDC-2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));控盘:=(KPD1-REF(KPD1,1))/REF(KPD1,1)*1000;启动:STICKLINE(IF(CROSS(控盘,0),10,0),O,C,0.5,0),COLOR00FFFF;拐点:STICKLINE(FILTER(CROSS(ROC,0),6),O,C,0.5,0),COLORFF8080;变盘:STICKLINE(CROSS(L1,L2) AND L5,O,C,0.5,0),COLOR0080FF;DRAWTEXT_FIX(1,0.0,0,0,'细K线颜色提示:黄-启动桔黄-变盘紫兰-拐点红-买点// 粗K线颜色提示:橙黄-买入品红-卖出//白K买进,黄K加码//∠45升次日高开抱,低开出'),COLOR00FFFF;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR111:=EMA(CLOSE,4)-EMA(CLOSE,13);AA222:=VAR111>=REF(VAR111,1);BB222:=VAR111<REF(VAR111,1);买入:DRAWICON(CROSS(AA222,BB222),L*0.994,38);卖出:DRAWICON(CROSS(BB222,AA222),H*1.004,39);JRH:=HHV(C,2);JRL:=LLV(C,2);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);{好}短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,0.1,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'★∠45升'),COLORLIBLUE;XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XXS1,C),L*0.98,'←开逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,L*0.98,'←明走'),COLORYELLOW;。

精确买卖点通达信指标计算公式源码

精确买卖点通达信指标计算公式源码

精确买卖点通达信指标计算公式源码本文档为精确买卖点通达信指标的计算公式源码。

1. 引言精确买卖点是投资者在股市中判断买卖时机的一种技术指标。

本文将介绍这种指标的计算公式源码。

2. 计算公式源码下面是精确买卖点通达信指标的计算公式源码的示例:def calc_buy_sell_points(data):buy_points = []sell_points = []for i in range(1, len(data)):if data[i] > data[i-1]:buy_points.append(i)elif data[i] < data[i-1]:sell_points.append(i)return buy_points, sell_points上述源码示例是一个简单的实现,可以根据实际需求进行扩展和优化。

该源码通过比较当前数据与前一天的数据,判断出买入点和卖出点,并分别将其存储在buy_points和sell_points列表中。

3. 使用说明使用该源码计算买卖点时,需要提供一个数据序列作为输入参数。

根据数据序列的不同,可以得到相应的买入点和卖出点列表。

以下是使用示例:data = [10, 12, 15, 14, 16, 18, 17, 19]buy_points, sell_points = calc_buy_sell_points(data)print("买入点列表:", buy_points)print("卖出点列表:", sell_points)运行上述代码后,可以得到输出结果:买入点列表: [1, 4, 6]卖出点列表: [3, 7]4. 总结精确买卖点通达信指标的计算公式源码示例在本文中进行了介绍。

使用该源码可以根据输入的数据序列计算出买入点和卖出点。

读者可以根据实际需求进行扩展和优化,以满足自己的股市分析需求。

以上是对精确买卖点通达信指标计算公式源码的简要介绍。

买卖决策王主图指标通达信指标公式源码

买卖决策王主图指标通达信指标公式源码

目前经过试验,虽算不上是最好,但准确率已高达90%以上,欢迎大家使用,好指标望大家好好珍惜!M1:=5;M2:=20;M3:=60;M4:=120;财务数据:=1;BS:1,NODRAW;MA1:MA(CLOSE,M1)COLORWHITE,LINETHICK1;MA2:MA(CLOSE,M2)COLORYELLOW,LINETHICK1;MA3:MA(CLOSE,M3)COLORMAGENTA,LINETHICK2;MA4:MA(CLOSE,M4)COLORGREEN,LINETHICK2;CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLORMAGENTA;止赢:1.05*CC,COLOR8000FF;止损:0.97*CC,COLOR00F000;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),DOTLINE,LINETHICK1,COLORFF0080;阻力:REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLOR676767;AAA:=CONST(HHV(H*0.5,90));AA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.05,1,'今日保护价'),LINETHICK2,COLOR00FFFF;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.84,0.05,1,AA);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.86,0.05,1,'元');PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿')*财务数据;流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿')*财务数据;全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2))*财务数据;市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿')*财务数据; 上市天数:=STRCAT(' 上市天数: ',CON2STR(FINANCE(42),0))*财务数据;股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市天数))*财务数据;市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2))*财务数据;市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2))*财务数据;市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2))*财务数据;净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2))*财务数据;毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))*财务数据;净利润率:=STRCAT(' 净利润率',CON2STR(FINANCE(30)/FINANCE(20)*100,2))*财务数据;主营利润率:=STRCAT(' 主营利润率',CON2STR(FINANCE(23)/FINANCE(20)*100,2))*财务数据;当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率))*财务数据;X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'))*财务数据;财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))))*财务数据;优质资产率:=STRCAT(' 优质资产率:',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2))*财务数据;现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3))*财务数据;财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比))*财务数据;DRAWTEXT_FIX(ISLASTBAR,0.00,0.12,0,股本市值),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.00,0.18,0,当前业绩),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR,0.00,0.24,0,财务系数),COLORGREEN;DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE; DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORRED;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORMAGENTA;MA7:=MA(CLOSE,BS);转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+ 2+1);转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2 +1);BB2:=IF(C>REF(转强,1),1,IF(C<REF(转弱,1),-1,0));DD2:=BARSLAST(NOT(BB2=0));B:=IF(BB2=0,REF(BB2,DD2),BB2);中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6));STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE; STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN; STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED; STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED;B点:CROSS(MA7,中短),COLORRED,NODRAW;持股:MA7>中短,COLORRED,NODRAW;DRAWICON(CROSS(MA7,中短),L,7);DRAWICON(CROSS(中短,MA7),H,8);超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0))); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;。

通达信黄金精准买卖拐点主图指标公式副图源码

通达信黄金精准买卖拐点主图指标公式副图源码

通达信黄金精准买卖拐点主图指标公式副图源码SHORT:=12;LONG:=26;M:=12;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,M);MACD:=2*(DIF-DEA);KK:=IF(DIF>DEA,5,-5);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出金叉死叉时的DIFF 值}DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{计算出明日MACD=MACD时的DIFF值}DIF拐头价:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1)))COLORGREEN,POINTDOT;金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C, SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),NODRAW;柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),COLORYELLOW,POINTDOT;黄铢消失见顶:=IF(柱变向价>=DIF拐头价,柱变向价,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;上拐:IF(DIF拐头价<柱变向价,DIF拐头价,DRAWNULL),COLORRED,LINETHICK4;下拐:IF(DIF拐头价>=柱变向价,DIF拐头价,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;ZJ:=上拐,COLOR0000FF;HY:=金死叉价,COLORFF00FF;IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2, NODRAW;IF(HY<REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NOD RAW;STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;STICKLINE(CLOSE<ZJ,H,L,0,0),COLORYELLOW;STICKLINE(CLOSE<ZJ,O,C,2.5,0),COLORYELLOW;STICKLINE(C<HY AND C>O,H,C,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,L,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;STICKLINE(C<HY AND C<=O,H,L,0,0),COLORCYAN;STICKLINE(C<HY AND C<=O,O,C,2.8,0),COLORCYAN;HD0:=CROSS(DIF,DEA);DRAWTEXT_FIX(C>O,0.005,0.92,0,' 众'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.92,0,' 号:代码部徵'),COLORWHITE;DRAWTEXT_FIX(C>O,0.09,0.92,0,'信:CXH99CXH99'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.75,0,'代编写或想要好指标选股公式模型'),COLORWHITE;DRAWTEXT_FIX(C>O,0.005,0.92,0,'公'),COLORWHITE;金收:REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;LD0:=CROSS(DEA,DIF);死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;买入准备:DRAWICON(CROSS(柱变向价,DIF拐头价),上拐,34);卖出准备:DRAWICON(CROSS(DIF拐头价,柱变向价),下拐,35);SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FG BLOCK),GNBLOCK),ZDBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN;。

通达信指标公式源码 买卖主图源码

通达信指标公式源码 买卖主图源码

VAR6:=(2*C+H+L)/4;VAR8:=LLV(L,34);VARA:=HHV(H,34);BM:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,3);BM1:=EMA(BM,3);AA:=BM-BM1>=0;BB:=BM-BM1<0;M20:=MA(C,18);乖离20:=ABS((2*C+H+L)/4-M20)/M20;乖离线:=DMA(CLOSE,乖离20);止盈:乖离线*1.06,COLOR00FFFF,LINETHICK1;{20天均线乖离+6%} 止损:乖离线*0.94,COLOR00FF00,LINETHICK1;{20天均线乖离-6%} DRAWBAND(止盈,RGB(0,0,255),乖离线,RGB(0,0,255)); DRAWBAND(乖离线,RGB(0,0,155),止损,RGB(0,0,155)); DRAWBAND(止盈,RGB(100,0,100),止盈*1.05,RGB(100,0,100)); DRAWBAND(止损,RGB(0,80,0),止损*0.95,RGB(0,180,0));DMA(CLOSE,乖离20);乖离线*1.06,COLOR00FFFF,LINETHICK1;乖离线*0.94,COLOR00FF00,LINETHICK1;乖离线*1.06*1.05,COLOR0077FF,LINETHICK1;乖离线*0.94*0.95,COLORFF9900,LINETHICK1;{MA5}重心:WMA((2*C+H+L)/4,2),COLOR00FFFF,LINETHICK0;MA5:WMA(重心,5),COLOR00FF00,DOTLINE;IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(CROSS(AA,BB),(LOW * 0.98),34);DRAWICON(CROSS(BB,AA),(H*1.01),35);{K线}STICKLINE(CLOSE>OPEN OR CLOSE=OPEN ANDCLOSE>REF(CLOSE,1),LOW,HIGH,0.0,0),COLORRED;STICKLINE(CLOSE<OPEN OR CLOSE=OPEN ANDCLOSE<=REF(CLOSE,1),LOW,HIGH,0.0,0),COLORCYAN; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR008800; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00AA00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00DD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000088; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000AA; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;。

通达信指标公式源码 精准买卖点主图指标

通达信指标公式源码 精准买卖点主图指标

高J:IF(CURRBARSCOUNT<=20,REFDATE(HHV(H,30),DATE),DRAWNULL),COLO RWHITE,DOTLINE;低J:IF(CURRBARSCOUNT<=20,REFDATE(LLV(L,30),DATE),DRAWNULL),COLOR WHITE;分割点1:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.382,DRAWNULL),COLORWHITE,DOTLINE;分割点2:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.618,DRAWNULL),COLORWHITE,DOTLINE;P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);DRAWTEXT(P1,分割点1,' 0.382'),COLORYELLOW;DRAWTEXT(P1,分割点2,' 0.618'),COLORYELLOW;DRAWTEXT(P1,低J,' XO'),COLORYELLOW;G:=YEAR AND MONTH AND DAY;G1:=STRCAT(CON2STR(YEAR,0),'年');G2:=STRCAT(CON2STR(MONTH,0),'月');G3:=STRCAT(CON2STR(DAY,0),'日');G4:=STRCAT(' 【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'星期六','星期日')))))));GA:=STRCAT(STRCAT(STRCAT(G1,G2),STRCAT(G3,G4)),' 】');日期:DRAWTEXT_FIX(G,0.04,0.03,0,GA)COLORGREEN;TRR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1 )-LOW));ATRR:=MA(TRR1,13);VARR1:=REF(CLOSE,1)-REF(ATRR,1);LSX:HHV(VARR1,13),LINETHICK2,COLORWHITE;LSX1:IF(C>=LSX,LSX,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),2,1),COLORRED;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFCC66;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,1.8),COLOR00FF00; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00FFFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR10ECFF; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00D900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR93FFD1; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR93FF22; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR24FF22;基础值:=IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDL>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));TOWER:=IF(VAR1A,REF(基础值,1),基础值);DRAWICON(VAR19=1,L*1.005,13);DRAWICON(VAR1A=1,H*1.01,39);DRAWNUMBER(VAR19,L*0.995,TOWER),COLORFFFFFF; DRAWNUMBER(VAR1A,H*1.01,TOWER),COLORGREEN;。

买卖加仓主图通达信指标公式源码

买卖加仓主图通达信指标公式源码

买卖加仓主图通达信指标公式源码MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05 AND REF(C,1)O AND C/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)<REF(VOL,2);STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.95,'追!'),COLORYELLOW;VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);VAR2:=8;CC:=CROSS(VAR1,VAR2);DRAWTEXT(CC,L*0.95,'买!'),COLOR0099FF;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 ANDREF(C,2)/REF(O,2)=1.65 AND REF(H,5)/REF(L,1)>=1.15 AND REF(C,1)/REF(O,1)=2) AND O/REF(L,1)=1.08 ANDREF(C,2)/REF(O,2)=2) AND L=1.3 AND REF(C,5)1.4 AND (MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 ANDV/HHV(V,10)REF(V,2) AND REF(V,2)>REF(V,1)) ANDREF(C,1)/REF(C,2)<=1.02;DATOUJI1:=TYP1 AND TJ3 AND OMA(VOL,10) ANDL=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWICON(突破盘整,L-0.10,1);红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW; 绿轨道:=MA(MA(CLOSE,3),3);上升:IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) ANDLLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -(2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));DRAWICON(加仓,L*0.97,7);DRAWICON(CROSS(波段底,3),L*0.97,1);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A, 4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF( A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF (A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);DRAWTEXT(注意AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50;加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,3),LOW-0.03,'加'),COLOR0080FF;MA18:=MA(C,18);跟:=IF(MA18>=REF(MA18,3) ANDCROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18>=REF(MA18,3) ANDCROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;买价:=((C-REF(MA5,1))/5+MA5)*1.004;买条件:=CROSS(C,买价) AND 买价>REF(买价,1);醉白K买进:IF(买条件,L,H),COLORWHITE,POINTDOT; STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2; STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA10,1))/20+MA10)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT; STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2; STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档