【股票指标公式下载】-【通达信】1250均线(乖离线、金叉)

合集下载

通达信智能黄金线主图指标公式

通达信智能黄金线主图指标公式

通达信智能黄金线主图指标公式MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 * (趋势线 - CLOSE) / 趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MMV;{STICKLINE(((SSL > MM) ),SSL,MM,0.1,0),COLORRED;}SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH * 1.01),5),COLORFFFFFF;VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10);DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),4);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);B:REF(A,1),POINTDOT,COLORYELLOW;智能黄金线:A,COLORYELLOW,LINETHICK1;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),COLORYELLOW;DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.96,'买入'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,箱底,'★'),COLORF00F F0;DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75 ,箱顶*1.03,'减磅'),COLORF0F000;VAR111:=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 ORVAR16 OR VAR17 OR VAR18,1) AND VAR1;趋势线1:=FORCAST(CLOSE,7);FK:=100*(C-REF(C,1))/REF(C,1);PK1:=IF(C<REF(O,1) AND FK<0,1,0);PK2:=IF(C<REF(O,2) AND FK<0,1,0);STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED;STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 ANDREF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件AND 捞钱手>智能黄金线AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;。

【股票指标公式下载】-【通达信】三线开花(乖离线、金叉、牛象)

【股票指标公式下载】-【通达信】三线开花(乖离线、金叉、牛象)

【通达信】三线开花(乖离线、金叉、牛象)-指标公式源码ma20:ma(c,20),colorwhite,linethick2;ma120:ma(c,120),colorffcccc,linethick2;ma250:ma(c,250),colorffcc66,linethick2;乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);STICKLINE(TT1,l,l-0.09,4,0),coloryellow;DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;STICKLINE(cross(c,ma120) and cross(c,ma250) andcross(c,ma20),l,l-0.09,4,0),coloryellow;DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线开花'),coloryellow;STICKLINE(tt2,l,l-0.09,4,0),coloryellow;DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) andcross(c,ma250),l,l-0.09,4,0),colorffcc66;DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) andcross(c,ma250),l-0.13,'牛象'),colorffcc66;STICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'),colorff00ff ;A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);V1:=c-(a1+ma(c,3))/2;V2:=c-(a2+ma(c,8))/2;V3:=c-(a3+ma(c,21))/2;Va1:=(C+v3-v1+macd);Va4:=(C+v2-v1+macd);短线:EMA(Va1,6),linethick2,Coloryellow;【通达信】三线开花(乖离线、金叉、牛象)-指标公式效果图(文档来源:若水财经社区)。

通达信优化五行量化指标公式

通达信优化五行量化指标公式

通达信优化五行量化指标公式{使用说明:1、五行量化指标(浅灰色实心空心方格):实心代表趋势走好,空心代表趋势走坏;2、操盘动力线指标(黄金线):短线灵敏指标,低位拐头向上可跟进,高位拐头向下要警惕,附有高低位买卖提示;3、海洋状态指标(彩带):彩带颜色代表短中期多空趋势,低位转红可跟进,高位变色宜减仓、清仓;}DMADIF:=MA(C,10)-MA(C,50);DMAAMA:=MA(DMADIF,10);DMAX:=DMADIF>DMAAMA;P01:=DMAX;DMITR:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),14);DMIHD:=H-REF(H,1);DMILD:=REF(L,1)-L;DMIDMP:=EXPMEMA(IFF(DMIHD>0 AND DMIHD>DMILD,DMIHD,0),14);DMIDMM:=EXPMEMA(IFF(DMILD>0 AND DMILD>DMIHD,DMILD,0),14);DMIPDI:=DMIDMP*100/DMITR;DMIMDI:=DMIDMM*100/DMITR;DMIX:=DMIPDI>DMIMDI;P02:=DMIX;DPODPO:=C-REF(MA(C,20),20/2+1);DPOMADPO:=MA(DPODPO,6);DPOX:=DPODPO>DPOMADPO;P03:=DPOX;EMVVOLUME:=MA(V,14)/V;EMVMID:=100*(H+L-REF(H+L,1))/(H+L);EMVEMV:=MA(EMVMID*EMVVOLUME*(H-L)/MA(H-L,14),14);EMVMAEMV:=MA(EMVEMV,9);EMVX:=EMVEMV>EMVMAEMV;P04:=EMVX;MACDDIF:=EMA(C,12)-EMA(C,26);MACDDEA:=EMA(MACDDIF,9);MACDX:=MACDDIF>MACDDEA;P05:=MACDX;TRIXTR:=EMA(EMA(EMA(C,12),12),12);TRIXTRIX:=(TRIXTR-REF(TRIXTR,1))/REF(TRIXTR,1)*100;TRIXMATRIX:=MA(TRIXTRIX,9);TRIXX:=TRIXTRIX>TRIXMATRIX;P06:=TRIXX;WVADWVAD:=SUM((C-O)/(H-L)*V,24)/10000;WVADMAWVAD:=MA(WVADWVAD,6);WVADX:=WVADWVAD>WVADMAWVAD;P07:=WVADX;JSJS:=100*(C-REF(C,5))/(5*REF(C,5));JSMAJS1:=MA(JSJS,5);JSX:=JSJS>JSMAJS1;P08:=JSX;CYEMAL:=MA(C,5);CYEMAS:=MA(MA(C,20),5);CYECYEL:=(CYEMAL-REF(CYEMAL,1))/REF(CYEMAL,1)*100;CYECYES:=(CYEMAS-REF(CYEMAS,1))/REF(CYEMAS,1)*100;CYEX:=CYECYEL>CYECYES;P09:=CYEX;JLHBVAR1:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*80;JLHBB:=SMA(JLHBVAR1,7,1);JLHBVAR2:=SMA(JLHBB,5,1);JLHBX:=JLHBB>JLHBVAR2;P10:=JLHBX;CYCJJJ:=IFF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAI NFO(8),DYNAINFO(3));CYCDDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);CYCJJJT:=IFF(CYCDDD,1,(CYCJJJ<(DYNAINFO(5)+0.01) && CYCJJJ>(DYNAINFO(6)-0.01)));CYCCYC1:=IFF(CYCJJJT,0.01*EMA(AMOUNT,5)/EMA(VOL,5),E MA((HIGH+LOW+CLOSE)/3,5));CYCCYC2:=IFF(CYCJJJT,0.01*EMA(AMOUNT,13)/EMA(VOL,13 ),EMA((HIGH+LOW+CLOSE)/3,13));CYCX:=CYCCYC1>CYCCYC2;P11:=CYCX;BBIBBI:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;BBIX:=C>BBIBBI;P12:=BBIX;DDITR:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));DDIDMZ:=IFF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));DDIDMF:=IFF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));DDIDIZ:=SUM(DDIDMZ,13)/(SUM(DDIDMZ,13)+SUM(DDID MF,13));DDIDIF:=SUM(DDIDMF,13)/(SUM(DDIDMF,13)+SUM(DDID MZ,13));DDIDDI:=DDIDIZ-DDIDIF;DDIADDI:=SMA(DDIDDI,30,10);DDIAD:=MA(DDIADDI,5);DDIX:=DDIADDI>DDIAD;P13:=DDIX;FSLSWL:=(EMA(C,5)*7+EMA(C,10)*3)/10;FSLSWS:=DMA(EMA(C,12),MAX(1,100*(SUM(V,5)/(3*CAPITA L))));FSLX:=FSLSWL>FSLSWS;P14:=FSLX;MAMA1:=MA(C,5);MAMA2:=MA(C,10);MAXX:=MAMA1>MAMA2;P15:=MAXX;EXPEMA1:=EMA(C,12);EXPEMA2:=EMA(C,17);EXPMAX:=EXPEMA1>EXPEMA2 AND EXPEMA1>REF(EXPEMA1,1) AND EXPEMA2>REF(EXPEMA2,1);P16:=EXPMAX;PBX1:=(EMA(C,4)+MA(C,4*2)+MA(C,4*4))/3;PBX2:=(EMA(C,6)+MA(C,6*2)+MA(C,6*4))/3;PBXX:=PBX1>PBX2 AND PBX1>REF(PBX1,1) AND PBX2>REF(PBX2,1);P17:=PBXX;SARX:=C>SAR(4,2,20);P18:=SARX;QLTB:=IFF(H>REF(C,1),H-REF(C,1)+C-L,C-L);QLTS:=IFF(REF(C,1)>LOW,REF(C,1)-L+H-C,H-C);QLVOL_:=(QLTB-QLTS)*V/(QLTB+QLTS)/100;QLVOL_0:=DMA(QLVOL_,0.1);QLVOL_1:=DMA(QLVOL_,0.05);QLRES1:=QLVOL_0-QLVOL_1;QLLON:=SUM(QLRES1,0);QLLONG:=QLLON;QLMA1:=MA(QLLON,10);LONQLX:=QLLONG>REF(QLLONG,1) AND QLMA1>REF(QLMA1,1) AND QLLONG>QLMA1,NODRAW,COLORFFFFFF;P19:=LONQLX;QLSTB:=IFF(H>REF(C,1),H-REF(C,1)+C-L,C-L);QLSTS:=IFF(REF(C,1)>L,REF(C,1)-L+H-C,H-C);QLSVOL_:=(QLSTB-QLSTS)*V/(QLSTB+QLSTS)/100;QLSVOL_0:=DMA(QLSVOL_,0.1);QLSVOL_1:=DMA(QLSVOL_,0.05);QLSSHORT:=QLSVOL_0-QLSVOL_1;QLSMA1:=MA(QLSSHORT,10);SHORTQLX:=QLSSHORT>QLSMA1;P20:=SHORTQLX;AMVAMV0:=V*(O+C)/2;AMVAMV1:=SUM(AMVAMV0,5)/SUM(V,5);AMVAMV2:=SUM(AMVAMV0,13)/SUM(V,13);AMVX:=AMVAMV1>AMVAMV2;P21:=AMVX;MTMMTM:=C-REF(C,12);MTMMAMTM:=MA(MTMMTM,6);MTMX:=MTMMTM>MTMMAMTM;P22:=MTMX;ZJTJVAR1:=EMA(EMA(C,9),9);ZJTJ控盘:=(ZJTJVAR1-REF(ZJTJVAR1,1))/REF(ZJTJVAR1,1)*1000;YZKPX:=ZJTJ控盘>REF(ZJTJ控盘,1) AND ZJTJ控盘>0;P23:=YZKPX;趋势:(P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P1 2+P13+P14+P15+P16+P17+P18+P19+P20+P21+P22+P23)*(100/23),NODRAW,COLORCYAN;STICKLINE(趋势>=REF(趋势,1),81,100,4,0),COLORGRAY;STICKLINE(趋势<REF(趋势,1),81,100,4,1),COLORGRAY;TRENDA:=WINNER(C)*100;CMQS1:=WMA(TRENDA,8);CMQS2:=WMA(TRENDA,13);CMQS3:=WMA(TRENDA,21);CMQS4:=WMA(TRENDA,34);CMQS5:=WMA(TRENDA,55);CM01:=CMQS1>REF(CMQS1,1);CM02:=CMQS2>REF(CMQS2,1);CM03:=CMQS3>REF(CMQS3,1);CM04:=CMQS4>REF(CMQS4,1);CM05:=CMQS5>REF(CMQS5,1);CM06:=TRENDA>CMQS1;CM07:=TRENDA>CMQS2;CM08:=TRENDA>CMQS3;CM09:=TRENDA>CMQS4;CM10:=TRENDA>CMQS5;CM11:=CMQS1>CMQS2;CM12:=CMQS1>CMQS3;CM13:=CMQS1>CMQS4;CM14:=CMQS1>CMQS5;CM15:=CMQS2>CMQS3;CM16:=CMQS2>CMQS4;CM17:=CMQS2>CMQS5;CM18:=CMQS3>CMQS4;CM19:=CMQS3>CMQS5;CM20:=CMQS4>CMQS5;筹码:EMA(((CM01+CM02+CM03+CM04+CM05+CM06+CM07+C M08+CM09+CM10+CM11+CM12+CM13+CM14+CM15+CM16+CM17+CM18+ CM19+CM20)*(100/20)),2),NODRAW,COLORGREEN;STICKLINE(筹码>=REF(筹码,1),61,80,4,0),COLORGRAY;STICKLINE(筹码<REF(筹码,1),61,80,4,1),COLORGRAY;JE:=VOL;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);主力流入:=(QJ0*(JJ-MIN(CLOSE,OPEN)));主力流出:=(QJ0*(MIN(OPEN,CLOSE)-LOW));主力净买:=(主力流入-主力流出)/10000;PP01:=SUM(主力净买,1)>0;PP02:=SUM(主力净买,2)>0;PP03:=SUM(主力净买,3)>0;PP04:=SUM(主力净买,4)>0;PP05:=SUM(主力净买,5)>0;SUM11:=SUM(主力净买,11);SUM12:=SUM(主力净买,12);SUM13:=SUM(主力净买,13);SUM14:=SUM(主力净买,14);SUM15:=SUM(主力净买,15);SUM16:=SUM(主力净买,16);SUM17:=SUM(主力净买,17);SUM18:=SUM(主力净买,18);SUM19:=SUM(主力净买,19);SUM20:=SUM(主力净买,20);PP11:=SUM11>0 AND SUM11>REF(SUM11,1);PP12:=SUM12>0 AND SUM12>REF(SUM12,1);PP13:=SUM13>0 AND SUM13>REF(SUM13,1);PP14:=SUM14>0 AND SUM14>REF(SUM14,1);PP15:=SUM15>0 AND SUM15>REF(SUM15,1);PP16:=SUM16>0 AND SUM16>REF(SUM16,1);PP17:=SUM17>0 AND SUM17>REF(SUM17,1);PP18:=SUM18>0 AND SUM18>REF(SUM18,1);PP19:=SUM19>0 AND SUM19>REF(SUM19,1);PP20:=SUM20>0 AND SUM20>REF(SUM20,1);MAZJ05:=MA(主力净买,5);MAZJ10:=MA(主力净买,10);MAZJ15:=MA(主力净买,15);MAZJ20:=MA(主力净买,20);MA01:=MAZJ05>MAZJ10;MA02:=MAZJ05>MAZJ15;MA03:=MAZJ05>MAZJ20;MA04:=MAZJ10>MAZJ15;MA05:=MAZJ10>MAZJ20;MA06:=MAZJ15>MAZJ20;基线1:=EMA(EMA(EMA(EMA(IFF(主力净买>=0,主力净买,0),20),2),2),2);基线6:=基线1*6;ZJDL10:=IFF(主力净买>基线6,10,IFF(主力净买<=基线6 AND 主力净买>0,10*主力净买/基线6,0));短线资金:=SUM(主力净买,3);短线资金10:=EMA(短线资金,10);短线资金60:=EMA(短线资金,60);短线资金20:=EMA(短线资金,20);短线资金30:=EMA(短线资金,30);CZD01:=短线资金>短线资金10;CZD02:=短线资金20>短线资金30;CZD03:=短线资金10>短线资金60;总权1:=53;资金:EMA(EMA(100*(PP01*2+PP02*2+PP03*5+PP04*2+PP05*2+P P11*1+PP12*1+PP13*1+PP14*1+PP15*1+PP16*1+PP17*1+PP1 8*1+PP19*1+PP20*1+MA01*2+MA02*2+MA03*1+MA04*1+MA05*1+MA06*1+Z JDL10+CZD01*5+CZD02*4+CZD03*3)/总权1,2),2),NODRAW,COLORRED;STICKLINE(资金>=REF(资金,1),41,60,4,0),COLORGRAY;STICKLINE(资金<REF(资金,1),41,60,4,1),COLORGRAY;LTSHPG:=100-100*(HHV(H,40)-C)/(HHV(H,40)-LLV(L,40));ZB01:=LTSHPG>=50;DIFPG:=EMA(C,12)-EMA(C,26);DEAPG:=EMA(DIFPG,9);ZB02:=DIFPG>DEAPG;APG:=MA((-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);BPG:=(-100)*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));DPG:=EMA((-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),4);QSDDLONG:=APG+100;QSDDSHORT:=BPG+100;QSDDMID:=DPG+100;ZB03:=QSDDSHORT>QSDDMID;ZB04:=QSDDSHORT>QSDDLONG;ZB05:=QSDDMID>QSDDLONG;RSVPG:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;KPG:=SMA(RSVPG,3,1);DPG2:=SMA(KPG,3,1);ZB06:=KPG>DPG2;LCPG:=REF(CLOSE,1);RPG1:=SMA(MAX(C-LCPG,0),6,1)/SMA(ABS(C-LCPG),6,1)*100;RPG2:=SMA(MAX(C-LCPG,0),12,1)/SMA(ABS(C-LCPG),12,1)*100;RPG3:=SMA(MAX(C-LCPG,0),24,1)/SMA(ABS(C-LCPG),24,1)*100;ZB07:=RPG1>RPG2;ZB08:=RPG1>RPG3;ZB09:=RPG2>RPG3;ZB10:=MA(C,5)>MA(C,10);ZB11:=MA(C,5)>MA(C,20);ZB12:=MA(C,10)>MA(C,20);MAVPG:=(C*2+H+L)/4;SKPG:=EMA(MAVPG,13)-EMA(MAVPG,34);SDPG:=EMA(SKPG,5);ZB13:=(2*(SKPG-SDPG))>((-2)*(SKPG-SDPG));MIDPGX:=(3*C+O+L+H)/6;DKXPG1:=WMA(MIDPGX,5);DKXPG2:=WMA(MIDPGX,10);DKXPG3:=WMA(MIDPGX,20);ZB14:=DKXPG1>REF(DKXPG1,1);ZB15:=DKXPG2>REF(DKXPG2,1);ZB16:=DKXPG3>REF(DKXPG3,1);G08PG:=EMA(C,34);ZB17:=G08PG>REF(G08PG,1);B08PG:=(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*80;BPG1:=SMA(B08PG,7,1);BPG2:=SMA(BPG1,3,1);ZB18:=BPG1>BPG2;BBIPG:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;ZB19:=C>BBIPG;MIDSLB:=(3*C+L+O+H)/6;E1:=EMA(10000*(WMA(MIDSLB,30)-REF(WMA(MIDSLB,30),1))/REF(WMA(MIDSLB,30),1),10);E2:=EMA(E1,2);E3:=EMA(E2,2);E4:=EMA(E3,2);E5:=EMA(E4,2);E6:=EMA(E5,2);E7:=EMA(E6,2);ZB20:=E2>E3 AND E3>E4 AND E4>E5 AND E5>E6 AND E6>E7;ZB21:=E2>REF(E2,1) AND E3>REF(E3,1) AND E4>REF(E4,1) AND E5>REF(E5,1) AND E6>REF(E6,1) AND E7>REF(E7,1);TRPG1:=MAX(MAX((H-L),ABS(H-REF(C,1))),ABS(REF(C,1)-L));ATRPG1:=EMA(TRPG1,14);HDPG:=H-REF(H,1);LDPG:=REF(L,1)-L;PDMPG:=EMA(IFF(HDPG>0 AND HDPG>LDPG,HDPG,0),14);MDMPG:=EMA(IFF(LDPG>0 AND LDPG>HDPG,LDPG,0),14);PDIPG:=PDMPG/ATRPG1;MDIPG:=MDMPG/ATRPG1;XLPG:=(PDIPG-MDIPG)/(PDIPG+MDIPG);ZB22:=XLPG>0;指标:(ZB01+ZB02+ZB03+ZB04+ZB05+ZB06+ZB07+ZB08+ZB09+Z B10+ZB11+ZB12+ZB13+ZB14+ZB15+ZB16+ZB17+ZB18+ZB19+ ZB20+ZB21+ZB22)*(100/22),NODRAW,COLORLIRED;STICKLINE(指标>=REF(指标,1),21,40,4,0),COLORGRAY;STICKLINE(指标<REF(指标,1),21,40,4,1),COLORGRAY;方向成交量:=IFF(CLOSE>=OPEN,VOL,VOL*(-1)); LHLNMID:=(3*CLOSE+OPEN+HIGH+LOW)/6; LHLN短线:=WMA(LHLNMID,5);LHLN中线:=WMA(LHLNMID,10);LHLN多头:=LHLN短线>LHLN中线;CP01:=SUM(方向成交量,1)>0;CP02:=SUM(方向成交量,2)>0;CP03:=SUM(方向成交量,3)>0;CP04:=SUM(方向成交量,4)>0;CP05:=SUM(方向成交量,5)>0;CSUM11:=SUM(方向成交量,11);CSUM12:=SUM(方向成交量,12);CSUM13:=SUM(方向成交量,13);CSUM14:=SUM(方向成交量,14);CSUM15:=SUM(方向成交量,15);CSUM16:=SUM(方向成交量,16);CSUM17:=SUM(方向成交量,17);CSUM18:=SUM(方向成交量,18);CSUM19:=SUM(方向成交量,19);CSUM20:=SUM(方向成交量,20);CP11:=CSUM11>0 AND CSUM11>REF(CSUM11,1); CP12:=CSUM12>0 AND CSUM12>REF(CSUM12,1); CP13:=CSUM13>0 AND CSUM13>REF(CSUM13,1); CP14:=CSUM14>0 AND CSUM14>REF(CSUM14,1); CP15:=CSUM15>0 AND CSUM15>REF(CSUM15,1); CP16:=CSUM16>0 AND CSUM16>REF(CSUM16,1); CP17:=CSUM17>0 AND CSUM17>REF(CSUM17,1); CP18:=CSUM18>0 AND CSUM18>REF(CSUM18,1); CP19:=CSUM19>0 AND CSUM19>REF(CSUM19,1); CP20:=CSUM20>0 AND CSUM20>REF(CSUM20,1);CMAZJ05:=MA(方向成交量,5);CMAZJ10:=MA(方向成交量,10);CMAZJ15:=MA(方向成交量,15);CMAZJ20:=MA(方向成交量,20);CMA01:=CMAZJ05>CMAZJ10;CMA02:=CMAZJ05>CMAZJ15;CMA03:=CMAZJ05>CMAZJ20;CMA04:=CMAZJ10>CMAZJ15;CMA05:=CMAZJ10>CMAZJ20;CMA06:=CMAZJ15>CMAZJ20;基准1:=EMA(EMA(EMA(EMA(IFF(方向成交量>=0,方向成交量,0),20),2),2),2);基准6:=基准1*6;CZJDL10:=IFF(方向成交量>基准6,10,IFF(方向成交量<=基准6 AND 方向成交量>0,10*方向成交量/基准6,0));短线总量:=SUM(方向成交量,3);短线总量10:=EMA(短线总量,10);短线总量20:=EMA(短线总量,20);短线总量30:=EMA(短线总量,30);短线总量60:=EMA(短线总量,60);CCZD01:=短线总量>短线总量10;CCZD02:=短线总量20>短线总量30;CCZD03:=短线总量10>短线总量60;总权:=53;量化量能X:=EMA(EMA(100*(CP01*2+CP02*2+CP03*5+CP04*2+CP05*2+ CP11*1+CP12*1+CP13*1+CP14*1+CP15*1+CP16*1+CP17*1+C P18*1+CP19*1+CP20*1+CMA01*2+CMA02*2+CMA03*1+CMA04*1+CMA05*1+CM A06*1+CZJDL10+CCZD01*5+CCZD02*4+CCZD03*3)/总权,2),2),NODRAW,COLORLIRED;量化量能XX:=IFF(LHLN多头,量化量能X*1.2,量化量能X);量能:WMA(IFF(量化量能XX>=100,100,量化量能XX),3),NODRAW,COLORLIMAGENTA;STICKLINE(量能>=REF(量能,1),0,20,4,0),COLORGRAY;STICKLINE(量能<REF(量能,1),0,20,4,1),COLORGRAY;DRAWTEXT_FIX(1,0,0.08,0,'趋势')COLORCYAN;DRAWTEXT_FIX(1,0,0.27,0,'筹码')COLORGREEN;DRAWTEXT_FIX(1,0,0.47,0,'资金')COLORRED;DRAWTEXT_FIX(1,0,0.66,0,'指标')COLORLIRED;DRAWTEXT_FIX(1,0,0.86,0,'量能')COLORLIMAGENTA;{操盘动力线}绝对底:=0;绝对顶:=38*2.632;底:=3*2.632;顶:=35*2.632;VAR1:=LLV(LOW,10);VAR2:=HHV(HIGH,25);短期趋势线:EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4)*26.3,COLORYELLOW;{DRAWBAND(趋势线,RGB(250,0,0),REF(趋势线,1),RGB(0,250,250));}短多:=IF(短期趋势线>REF(短期趋势线,1),短期趋势线,DRAWNULL),COLORYELLOW;短空:=IF(短期趋势线<=REF(短期趋势线,1),短期趋势线,DRAWNULL),COLORBLUE;DRAWICON(CROSS(短期趋势线,底),5,1);DRAWICON(CROSS(短期趋势线,绝对底),5,1);DRAWICON(CROSS(顶,短期趋势线),98,2);DRAWICON(CROSS(绝对顶,短期趋势线),98,2);{海洋状态}X1:=(2*C+H+L)/4;X2:=LLV(L,34);X3:=HHV(H,34);QSX:=EMA((X1-X2)/(X3-X2)*100,13);QSJX:=EMA((0.618*REF(QSX,1)+0.382*QSX),2); DRAWBAND(QSX,RGB(255,0,0),QSJX,RGB(0,250,250));。

【股票指标公式下载】-【通达信】三合一(安全线、撑价、神奇均线、DDE金指、箱体)

【股票指标公式下载】-【通达信】三合一(安全线、撑价、神奇均线、DDE金指、箱体)

【通达信】三合一(安全线、撑价、神奇均线、DDE金指、箱体)-指标公式源码VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1: (EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;A2: EMA(A1,2);A3: EMA(A2,2);A4: EMA(A3,2);A5: EMA(A4,2);A6: EMA(A5,2);A7: EMA(A6,2);A8: EMA(VAR1,2.78)*1.028;A9: MA(OPEN,3.2)*1.028;安全线: EMA(CLOSE,55),COLORGREEN, POINTDOT,LINETHICK4;MCST:DMA((AMOUNT/(VOL*100)),VOL/CAPITAL),COLORRED,POINTDOT,LINETHICK4 ;{xs2}{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));撑价:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCDCDCD;阻价:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORYELLOW;}{箱体}阻力:PEAK(CLOSE,10,1)*0.98,COLORWHITE;支撑:TROUGH(CLOSE,10,1)*1.02,COLORYELLOW;WW1:=FILTER(O<REF(L,1) AND C>O AND VOL>REF(V,1),13);JH:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;SZ:=FILTER(CROSS(JH,35),13);SX:=FILTER(CROSS(JH,30),7);SQ:=FILTER(CROSS(71,JH),74);SD:=FILTER(CROSS(80,JH),74);AA:=IF(CAPITAL<1,SZ,SX);BB:=IF(CAPITAL<1,SQ,SD);CC:=REF(HHV(CLOSE,120),1);DD:=REF(LLV(CLOSE,120),1);WW:=((100 * (CLOSE - DD)) / (CC - DD));EE:=AMOUNT;FF:=(EMA(EE,5) / REF(EMA(EE,5),5));霸占:=FILTER(((((((FF >= 2)) AND (WW < 35))) AND (BARSCOUNT(CLOSE) > 30)) OR (((((FF >= 2)) AND (WW < 100))) AND (BARSCOUNT(CLOSE) < 50))),90); STICKLINE(C>REF(C,1),C,O,3.2,0),COLOR0000AA;STICKLINE(C>REF(C,1),C,O,2.7,0),COLOR0000DD;STICKLINE(C>REF(C,1),C,O,2.1,0),COLOR0022FF;STICKLINE(C>REF(C,1),C,O,1.5,0),COLOR0066FF;STICKLINE(C>REF(C,1),C,O,0.9,0),COLOR0099FF;{STICKLINE(C>REF(C,1),C,O,0.3,0),COLOR00DDFF;}STICKLINE(C<REF(C,1),C,O,3.2,0),COLOR990000;STICKLINE(C<REF(C,1),C,O,2.7,0),COLORCC0000;STICKLINE(C<REF(C,1),C,O,2.1,0),COLORFF4400;STICKLINE(C<REF(C,1),C,O,1.5,0),COLORFF8800;STICKLINE(C<REF(C,1),C,O,0.9,0),COLORFFCC00;{STICKLINE(C<REF(C,1),C,O,0.3,0),COLORFFDD00;}STICKLINE(C=REF(C,1),C,O,3.2,0),COLOR555555;STICKLINE(C=REF(C,1),C,O,2.7,0),COLOR777777;STICKLINE(C=REF(C,1),C,O,2.1,0),COLOR999999;STICKLINE(C=REF(C,1),C,O,1.5,0),COLORBBBBBB;STICKLINE(C=REF(C,1),C,O,0.9,0),COLORDDDDDD;{STICKLINE(C=REF(C,1),C,O,0.3,0),COLORFFFFFF;}STICKLINE(霸占,C,O,3,2),COLOR000055;STICKLINE(霸占,C,O,2.7,0),COLOR000077;STICKLINE(霸占,C,O,2.1,0),COLOR000099;STICKLINE(霸占,C,O,1.5,0),COLOR0000BB;STICKLINE(霸占,C,O,0.9,0),COLOR0000DD;{STICKLINE(霸占,C,O,0.3,0),COLOR0000FF;}STICKLINE(WW1,CLOSE,OPEN,3.2,0),COLORBB00FF;STICKLINE(WW1,CLOSE,OPEN,2.7,0),COLORFF33FF;STICKLINE(WW1,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(WW1,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(WW1,CLOSE,OPEN,0.9,0),COLORFFBBFF;{STICKLINE(WW1,CLOSE,OPEN,0.3,0),COLORFFDDFF;}STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR0088FF;STICKLINE(AA,CLOSE,OPEN,2.7,0),COLOR00AAFF;STICKLINE(AA,CLOSE,OPEN,2.1,0),COLOR00CCFF;STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR22FFFF;STICKLINE(AA,CLOSE,OPEN,0.9,0),COLOR66FFFF;{STICKLINE(AA,CLOSE,OPEN,0.3,0),COLOR99FFFF;}STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR005500;STICKLINE(BB,CLOSE,OPEN,2.7,0),COLOR007700;STICKLINE(BB,CLOSE,OPEN,2.1,0),COLOR009900;STICKLINE(BB,CLOSE,OPEN,1.5,0),COLOR00BB00;STICKLINE(BB,CLOSE,OPEN,0.9,0),COLOR00DD00;{STICKLINE(BB,CLOSE,OPEN,0.3,0),COLOR00FF00;};{涨跌提示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0); STICKLINE(涨停,OPEN,CLOSE,1.5,0),COLORYELLOW;跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0); STICKLINE(跌停,OPEN,CLOSE,1.5,0),COLORWHITE;【通达信】三合一(安全线、撑价、神奇均线、DDE金指、箱体)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】抓黑马(网均线、高低线、大阴线)

【股票指标公式下载】-【通达信】抓黑马(网均线、高低线、大阴线)

【通达信】抓黑马〔网均线、高低线、大阴线〕-指标公式源码网1:EXPMA(CLOSE,5),COLORWHITE;网2:EXPMA(CLOSE,12),POINTDOT;网3:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网3<REF(网3,1),网3,DRAWNULL),COLOR00FF00,LINETHICK3;IF(网3<REF(网1,1),网1,DRAWNULL),COLORWHITE,LINETHICK1;IF(网1<REF(网3,1),网1,DRAWNULL),COLORGREEN,LINETHICK1;阻力:REFDATE(REF(HHV(H,22),1),DATE),COLORGRAY;底:REFDATE(REF(LLV(L,22),1),DATE),COLORGRAY;网A:=EMA(EMA(EMA(EMA(C,1),2),2),2);DRAWTEXT(CROSS(网A,REF(网A,1)),L,'买'),COLORFF00FF;STICKLINE(CURRBARSCOUNT=1,阻力,阻力,10000,-1),COLORWHITE; STICKLINE(CURRBARSCOUNT=1,底,底,10000,-1),COLORWHITE;{3日高低线}三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);三日最高:=EMA((REF(H,4)+REF(H,3)+REF(L,2))/3,3),COLORWHITE;底线:=IF(C>三日最低,三日最低,DRAWNULL),COLOR8000FF;高线:=IF(C<三日最高,三日最低,DRAWNULL),COLORWHITE;STICKLINE(CURRBARSCOUNT=1,三日最高,三日最高,100,-1),COLORRED; STICKLINE(CURRBARSCOUNT=1,三日最低,三日最低,100,-1),COLORWHITE;{大阴线:大跌超2.3}C2:=REF(C,1);BG:=IF((C2-C)*100/C2>=2.3,1,0) OR IF((O-C)*100/O>=5,1,0){ ORIF((H-L)*100/REF(C,1)>5,1,0)};{第二个条件开盘价过高掉下来}BG2:=IF((H-L)*100/C2>=3.58,1,0);BB1:=L<REF(L,1);{卖点信号}SELL1:=BG AND BB1 ;{大阳线:升幅超2.64}BR:=IF((C-C2)*100/C2>=2.59,1,0) OR IF((C-O)*100/O>=4.5,1,0) ORIF((C-L)*100/L>5,1,0);{第二个条件开盘价太低升上来}STICKLINE(BR,O,C,3,0),COLORRED;{以下条件记住最近一次卖出点}DAY1:=BARSLAST(SELL1);JIA1:=REF(O,DAY1);JIA2:=REF(O,1);BB4:=C>JIA2;BB2:=H>JIA1;{买入信号}BUY1:=BR AND BB2 AND BB4;{记住最后一次买点}DAY2:=BARSLAST(BUY1);{买卖谁先}S1:=DAY1<DAY2;B1:=DAY2<DAY1;{画出卖出信号}{DRAWTEXT(S1,H*1.05,'S'),COLORGREEN;}STICKLINE(S1,O,C,3,0),COLORGREEN;{画出买入信号}{DRAWTEXT(B1,L-0.2,'B'),COLORRED;}STICKLINE(B1,H,L,0.3,0),COLORRED;STICKLINE(B1,O,C,3,1),LINETHICK2,COLORRED;{其它补充1:买点}AA2:=AMOUNT/VOL;BB3:=L<AA2*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,6)*0.921;DD1:=L<MA(C,5)*0.921;EE2:=VOL<MA(V,5)*1.5;FF2:=BB3 AND CC2 AND DD2 AND EE2;老鼠仓:=BB3 AND CC2 AND DD1 AND EE2,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.97,'老鼠仓'),COLOR0099FF; {DRAWTEXT(FF2,L*0.99,'买点'),COLOR00FFFF;}STICKLINE(FF2,H,L,0.3,0),COLOR00FFFF;{STICKLINE(FF2,O,C,3,1),LINETHICK2,COLOR00FFFF;}{检查买点是否成立}B4:=BARSLAST(FF2);{底点日期}E4:=B4<5;{5日内的线}F4:=E4 AND C>REF(C,1);STICKLINE(F4,H,L,0.3,0),COLOR00FFFF;{其它补充2:卖点}A2:=(C-REF(C,1))/REF(C,1)*100<1.02;A3:=H>MA(C,5)*1.12;AA:= A2 AND A3;DRAWTEXT(AA,H*1.05,'卖点'),COLORFF0000;STICKLINE(AA,H,L,0.3,0),COLORFF0000;{STICKLINE(AA,H,L,3,0),COLORFF0000;};{补充阳光买点}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);CCC:=CROSS(VAR1,VAR2) AND H>REF(H,1) AND C>REF(C,1) ;DRAWICON(CCC,L*0.99,1);STICKLINE(CC,H,L,0.3,0),COLORRED;STICKLINE(CC,O,C,3,1),LINETHICK2,COLORRED;CF1:=BARSLAST(CC);{买点日期}CF2:=CF1<3;{5日内的线}CF3:=CF2 AND C>REF(C,1);STICKLINE(CF3,O,C,3,0),COLOR00FFFF;CD:=CROSS(VAR2,VAR1);STICKLINE(CD,H,L,0.3,0),COLORYELLOW;STICKLINE(CD,O,C,3,1),LINETHICK2,COLORYELLOW;DRAWTEXT(CD,H*1.01,'准备'),COLORYELLOW;DRAWTEXT(CC,L*0.98,'买'),COLORFF00FF;{输出粉红色的买字};{牛窝}VAR1A:=LLV(LOW,21);VAR2A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 100),5);AK:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.95),'○牛窝'),COLORYELLOW;{大胆博、加仓、小心变盘、逃顶}VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.02,'逃顶'),COLORYELLOW;{主力进场}VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR10:=SMA(VAR9,3,1);VAR11:=SMA(VAR10,3,1);VAR12:=SMA(VAR11,3,1);主力出现:DRAWICON(CROSS(VAR11,VAR12) AND (VAR11<40),L*0.98,1);{黑马}A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L, 55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;DRAWTEXT(CROSS(A1A,EMA(A1A,5))AND EMA(A1A,5)<A5A,L*0.98,'黑马'),COLORYELLOW;{主力成本及短期支撑}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;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);主力成本:=EMA(X,13),LINETHICK1,COLORLIGRAY;短期支撑:=LLV(HIGH,30),LINETHICK2,COLORFFCC00;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(C,ZX),L*0.99,1);DRAWICON(CROSS(ZX,C),H*1.01,2);【通达信】抓黑马〔网均线、高低线、大阴线〕-指标公式效果图(文档来源:假设水财经社区)。

【股票指标公式下载】-【通达信】超准分时(底线、高线、黄色起动线、拉升)

【股票指标公式下载】-【通达信】超准分时(底线、高线、黄色起动线、拉升)

【通达信】超准分时(底线、高线、黄色起动线、拉升)-指标公式源码(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU))) /SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(A MOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU) ))));底线:1.003,COLORRED,LINETHICK2;高线:1.03,COLORRED,LINETHICK3;黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;洋红色主力线:EXPMA((DCLOSE/VBNH),60),COLORMAGENTA,LINETHICK2;绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPM A((DCLOSE/VBNH),60)*1,1);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPM A((DCLOSE/VBNH),120)*1,2);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18); STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), , COLORMAGENTA;STICKLINE(EXPMA(C,10)>EXPMA(C,60) ,1.03,1.034,1.0,0),COLORRED; STICKLINE(EXPMA(C,10)<EXPMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,'拉升'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE;STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGE NTA;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.0326*1,13); DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量'),COLORWHITE;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.005,'超强'),COLORWHITE;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);【通达信】超准分时(底线、高线、黄色起动线、拉升)-指标公式效果图 (文档来源:若水财经社区)。

通达信乖离率指标公式

通达信乖离率指标公式

通达信乖离率指标公式
通达信乖离率指标公式是用来测量股票价格偏离其均线的程度,通常用于技术分析中。

该指标的计算方式比较简单,公式如下:乖离率 = (收盘价 - N日均价) / N日均价 * 100%
其中,收盘价为当日股票收盘价,N为选定的均线周期,通常为20、30、60等天,均价为该周期内的平均价格。

乖离率越高,表示股票价格与均线的距离越远,相对于均线已经超买,股票价格可能会回调;反之则表示股票价格距离均线较近,相对于均线已经超卖,股票价格可能会反弹。

因此,乖离率指标可以帮助投资者把握股票价格的趋势,制定更合理的投资策略。

- 1 -。

通达信指标公式源码 量价相合数着来炒股 副图 无未来

通达信指标公式源码 量价相合数着来炒股 副图 无未来

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));主动:=SUM(主动买盘,0)/SUM(主动卖盘,0)*-1;低主5:=LLV(主动,5);动比:=主动-低主5;高动5:=6/HHV(动比,5);主动心:=高动5*动比;K1:=主动心+1-REF(主动心,1)>0;K2:=主动心+1-REF(主动心,1)<0;主动心向:=主动心*K1-主动心*K2;{下面是量价了相合}FF:=CLOSE-REF(CLOSE,1);A:=MA(VOL*FF,2);A0:=MA(VOL*FF,3);A1:=MA(VOL*FF,5);A2:=MA(VOL*FF,10);A3:=MA(VOL*FF,20);A4:=MA(VOL*FF,30);B:=A-REF(A,1);B0:=A0-REF(A0,1);B1:=A1-REF(A1,1);B2:=A2-REF(A2,1);B3:=A3-REF(A3,1);B4:=A3-REF(A4,1);量价相合:(B>0)+(B0>0)+(B1>0)+(B2>0)+(B3>0)+(B4>0);YES:(量价相合>1)*量价相合*(主动心向>1 OR 主动心>60);IF(YES>=REF(YES,1),量价相合,DRAWNULL),COLORGREEN,LINETHICK2;IF(YES>=REF(YES,1),YES,DRAWNULL),COLORRED,LINETHICK2;周期1:IF(YES,BARSLAST(CROSS(YES,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK5; 5,COLORGREEN;。

【股票指标公式下载】-【通达信】亮丽MACD(趋势、金叉)

【股票指标公式下载】-【通达信】亮丽MACD(趋势、金叉)

【通达信】亮丽MACD(趋势、金叉)-指标公式源码DIF:EMA(CLOSE,13)-EMA(CLOSE,21);DEA:EMA(DIF,2);CD:(DIF-DEA)*7,COLORRED,LINETHICK2;DRAWBAND(DIF,RGB(255,50,0),DEA,RGB(0,255,50));界: 0,COLORFFFF00,LINETHICK1;DRAWTEXT(ISLASTBAR AND DIF>REF(DIF,1),DIF,' ↑趋势'),COLORFFFFFF; DRAWTEXT(ISLASTBAR AND DIF<REF(DIF,1),DIF,' ↓趋势'),COLORFFFFFF; DRAWTEXT(ISLASTBAR AND CD>REF(CD,1),CD,' ↑柱'),COLOR0000FF; DRAWTEXT(ISLASTBAR AND CD<REF(CD,1),CD,' ↓柱'),COLOR00FF00; STICKLINE((CD > 0),0,CD,1,0),COLOR0000CC;STICKLINE((CD > 0),0,CD*0.9,1,0),COLOR0000EE;STICKLINE((CD > 0),0,CD*0.8,1,0),COLOR0011FF;STICKLINE((CD > 0),0,CD*0.7,1,0),COLOR0033FF;STICKLINE((CD > 0),0,CD*0.6,1,0),COLOR0055FF;STICKLINE((CD > 0),0,CD*0.5,1,0),COLOR0077FF;STICKLINE((CD > 0),0,CD*0.4,1,0),COLOR0099FF;STICKLINE((CD > 0),0,CD*0.3,1,0),COLOR00BBFF;STICKLINE((CD > 0),0,CD*0.2,1,0),COLOR00DDFF;STICKLINE((CD > 0),0,CD*0.1,1,0),COLOR00FFFF;STICKLINE((CD < 0),0,CD,1,0),COLORCC0033;STICKLINE((CD < 0),0,CD*0.9,1,0),COLOREE0033;STICKLINE((CD < 0),0,CD*0.8,1,0),COLORFF1133;STICKLINE((CD < 0),0,CD*0.7,1,0),COLORFF3333;STICKLINE((CD < 0),0,CD*0.6,1,0),COLORFF5533;STICKLINE((CD < 0),0,CD*0.5,1,0),COLORFF7733;STICKLINE((CD < 0),0,CD*0.4,1,0),COLORFF9933;STICKLINE((CD < 0),0,CD*0.3,1,0),COLORFFBB33;STICKLINE((CD < 0),0,CD*0.2,1,0),COLORFFDD33;STICKLINE((CD < 0),0,CD*0.1,1,0),COLORFFFF33;DI:=EMA(C,12)-EMA(C,26);DE:=EMA(DI,9);DRAWICON(CROSS(DI,DE),DIF,17);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DRAWICON(CROSS(K,D) AND K>20 AND D<50,CD,23);DRAWTEXT(CROSS(K,D) AND K>20 AND D<50,CD,' KD金叉'),COLORFFFFFF; 【通达信】亮丽MACD(趋势、金叉)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】绝对真底(均线流、超跌、斜率)

【股票指标公式下载】-【通达信】绝对真底(均线流、超跌、斜率)

【通达信】绝对真底(均线流、超跌、斜率)-指标公式源码VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5);VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND VARA>10;VARC:=(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)); VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG (3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20 ,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20 ,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-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 ANDVAR13<=-150,-15,VAR16))+60; VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; VAR59:=1/WINNER(CLOSE);VAR33:=MA(CLOSE,13);VAR34:=100-ABS((CLOSE-VAR33)/VAR33*100);VAR35:=LLV(LOW,75);VAR36:=HHV(HIGH,75);VAR37:=(VAR36-VAR35)/100;VAR38:=SMA((CLOSE-VAR35)/VAR37,20,1);VAR39:=SMA((OPEN-VAR35)/VAR37,20,1);VARA3:=3*VAR38-2*SMA(VAR38,15,1);VARB3:=3*VAR39-2*SMA(VAR39,15,1);VARC3:=100-VARB3;VARE3:=REF(LOW,1)*0.9;VARF3:=LOW*0.9;VAR40:=(VARF3*VOL+VARE3*(CAPITAL-VOL))/CAPITAL;VAR41:=EMA(VAR40,30);VAR42:=CLOSE-REF(CLOSE,1);VAR43:=MAX(VAR42,0);VAR44:=ABS(VAR42);VAR45:=SMA(VAR43,7,1)/SMA(VAR44,7,1)*100;VAR46:=SMA(VAR43,13,1)/SMA(VAR44,13,1)*100;VAR47:=BARSCOUNT(CLOSE);VAR48:=SMA(MAX(VAR42,0),6,1)/SMA(ABS(VAR42),6,1)*100;VAR49:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR3A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR3B:=SMA((SMA(VAR3A,4,1)-50)*2,3,1);VAR3C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR3D:=SMA(VAR3C,4,1);VAR3E:=SMA(VAR3D,3,1);VAR3F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR50:=VAR48<=25 AND VAR49<-95 AND VAR3F>20 AND VAR3B<-30 AND VAR3E<30 AND VAR41-CLOSE>=-0.25 AND VAR45<22 AND VAR46<28 AND VAR47>50;VAR51:=(HIGH+LOW+CLOSE)/3;VAR52:=(VAR51-MA(VAR51,14))/(0.015*AVEDEV(VAR51,14));VAR53:=(VAR51-MA(VAR51,70))/(0.015*AVEDEV(VAR51,70));VAR54:=IF(VAR52>=150 AND VAR52<200 AND VAR53>=150 AND VAR53<200,10,0); VAR55:=IF(VAR52<=-150 AND VAR52>-200 AND VAR53<=-150 ANDVAR53>-200,-10,VAR54);VAR56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR57:=REVERSE(VAR56);VAR58:=SMA(VAR56,3,1);VARFF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,2 0,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20, 1),15,1);VAR199:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,2 0,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1 ),15,1);VAR20:=VARF<REF(VAR199,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); VAR1:=(CLOSE*2+HIGH+LOW)/4*10;VAR2:=EMA(VAR1,13)-EMA(VAR1,34);VAR333:=EMA(VAR2,5);VAR444:=2*(VAR2-VAR333)*5.5;VAR555:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;VAR666:=EMA(3*VAR55-2*SMA(VAR55,18,1),5);VAR777:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;VAR888:=(INDEXC*2+INDEXH+INDEXL)/4;VAR999:=EMA(VAR888,13)-EMA(VAR888,34);VARAA:=EMA(VAR999,3);VARBBB:=(VAR999-VARAA)/2;VAREE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR100:=(HIGH+LOW+CLOSE)/3;VAR11:=(VAR100-MA(VAR100,14))/(0.015*AVEDEV(VAR100,14));VAR122:=(VAR100-MA(VAR100,70))/(0.015*AVEDEV(VAR100,70));VAR133:=IF(VAR11>=150 AND VAR11<200 AND VAR122>=150 ANDVAR122<200,10,0);VAR144:=IF(VAR11<=-150 AND VAR11>-200 AND VAR122<=-150 ANDVAR122>-200,-10,VAR133);VAR155:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100;VAR166:=100-ABS(VAR155);VAR177:=IF(VAR166<90,VAR166,100);VAR1AA:=IF(VAREE>0,VAREE,0);VAR1BB:=IF(VAR122>=200 AND VAR11>=150,15,IF(VAR122<=-200 ANDVAR11<=-150,-15,VAR14))+60;VAR1CC:=VAR1AA>48 AND VAR1BB>60 AND VAR177<100;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 7),POINTDOT,LINETHICK3;PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:(MACD超跌 *"MACD.MACD"(26,12,9))*(-1),STICK,LINETHICK2,COLORFFFF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;VAR27A:=REF(CLOSE,1);VAR28A:=SMA(MAX(CLOSE-VAR27A,0),5.5,1)/SMA(ABS(CLOSE-VAR27A),6,1)*100 ;VARA1:=((AMOUNT)/(VOL))/(100);VARB1:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC1:=((SUM(AMOUNT,7))/(VARA1))/(100);VARD1:=DMA(VARB1,(VOL)/(VARC1));VARE1:=((CLOSE-VARD1)/(VARD1))*(100);VARF1:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);VARJ1:=MA(VARE1,20)+STD(VARE1,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA1:=SMA(VARF1,3,1);SS1:=(REF(BIAS18,1)>=5) AND CROSS(VARJ1,VARE1) AND (AA1>79);VAR1AAA:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);果断买入:IF(VAR2AAA ANDCOUNT(VAR2AAA,3)=1,-15,0),STICK,LINETHICK1,COLORFF00FF;STICKLINE(VAR2AAA,0,-25,4,0),COLORFF00FF;VAR91:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); VAR92:=SMA(VAR91,3,1);VAR93:=SMA(VAR92,3,1);VAR94:=((3 * VAR92) - (2 * VAR93));VAR95:=(VAR92 + VAR93);VAR96:=(VAR95 < 55);VAR97:=(VAR95 < 60);VAR98:=CROSS(MA(CLOSE,10),MA(CLOSE,15));VAR99:=CROSS(MA(CLOSE,10),MA(CLOSE,19));VAR4A:=(REF(VAR96,3) AND (((((REF(VAR96,18) OR REF(VAR96,27)) ORREF(VAR96,76)) OR REF(VAR96,87)) OR REF(VAR96,99)) OR REF(VAR96,212))); VAR4B:=(REF(VAR96,23) AND (REF(VAR96,78) OR REF(VAR96,132)));VAR4C:=(SARTURN(2,3,30) = 1);VAR4D:=(REF(VAR96,8) AND (REF(VAR96,132) OR REF(VAR96,76)));VAR4E:=((REF(VAR97,18) AND REF(VAR97,88)) AND REF(VAR97,90));VAR4F:=((CLOSE / REF(CLOSE,1)) >= 1.099);VAR1000:=((OPEN = LOW) AND (HIGH = CLOSE));VAR101:=((VOL < MA(VOL,5)) AND (VOL < REF(VOL,1)));VAR102:=(((VAR4F AND VAR1000) AND VAR101) AND (COUNT(((VAR4F AND VAR1000) AND VAR101),20) = 1));(VAR102 AND (((((((VAR98 OR VAR99) OR VAR4A) OR VAR3B) OR VAR4C) OR VAR4D) OR VAR4E) OR (VAR95 < 38)));DRAWTEXT(VAR102 AND COUNT(VAR102,20)=1,60,'井★喷'),LINETHICK2,COLOR00FF00;井喷:IF(VAR102 ANDCOUNT(VAR102,20)=1,50,0),STICK,LINETHICK2,COLOR00FF00;ZYX1:="DMI.PDI"(12,6);ZYX2:="DMI.MDI"(12,6);ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);ZYX4:=LLV(ZYX1,0);ZYX5:=BARSLAST(ZYX4=ZYX1);ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;ZYX7:=ZYX1>REF(ZYX1,1);ZYX8:=VOL>2*MA(VOL,30);ZYX9:="DMI.ADX"(12,6);ZYXA:="DMI.ADXR"(12,6);ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLO SE,10),MA(CLOSE,5)));{ZYXE:=0-"MACD.DIFF"(7,21,3);}ZYXF:=TROUGHBARS(3,15,1)<4;ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);ZYX11:=IF(ZYXF=1,50,0);ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50; ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);ZYX17:=HHV(ZYX1,ZYX16);ZYX18:=BARSLAST(ZYX1=ZYX17);STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;ZYX1A:=ZYX13*100;DRAWICON(FILTER(ZYXF=1,3),80,1);DRAWTEXT(FILTER(ZYXF=1,3),60,'铁底'),COLORYELLOW;X5:=EXPMA(CLOSE,3);X10:=EXPMA(CLOSE,7);X20:=EXPMA(CLOSE,20);五日斜率:=(X5-REF(X5,1))*100/REF(X5,1),LINETHICK2,COLORYELLOW;十日斜率:=(X10-REF(X10,1))*100/REF(X10,1),LINETHICK2,COLORBLUE;二十斜率:=(X20-REF(X20,1))*100/REF(X20,1),LINETHICK2,COLORWHITE;XX5:=XMA(五日斜率,4),LINETHICK2,COLORYELLOW;XX10:=XMA(十日斜率,7),LINETHICK2,COLORBLUE;XX200:=XMA(二十斜率,20);AA11:=XX200>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX200 AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX200,2) ;XX202:=XMA(二十斜率,22);AA2:=XX202>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX202 AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX202,2) ;XX204:=XMA(二十斜率,24);AA3:=XX204>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX204 AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX204,2) ;XX206:=XMA(二十斜率,26);AA4:=XX206>=0.7 AND REF(XX200,1)<XX200 AND XX5> XX10 AND XX10>XX206 AND REF(XX5,2)<REF(XX10,2) AND REF(XX10,2)< REF(XX206,2) ;XX207:=XMA(二十斜率,20);AA7:=XX207>=0.7 AND REF(XX207,1)<XX207 AND CROSS(XX10,XX207)AND CROSS(REF(XX5,1),REF(XX207,1));XX2071:=XMA(二十斜率,23);AA71:=XX2071>=0.7 AND REF(XX2071,1)<XX2071 AND CROSS(XX10,XX2071)AND CROSS(REF(XX5,1),REF(XX2071,1));XX2072:=XMA(二十斜率,26);AA72:=XX2072>=0.7 AND REF(XX2072,1)<XX2072 AND CROSS(XX10,XX2072)AND CROSS(REF(XX5,1),REF(XX2072,1));XX208:=XMA(二十斜率,20);AA8:=XX208>=0.7 AND REF(XX208,1)<XX208 AND CROSS(XX10,XX208)AND CROSS(XX5,XX208);XX2081:=XMA(二十斜率,23);AA81:=XX2081>=0.7 AND REF(XX2081,1)<XX2081 AND CROSS(XX10,XX2081)AND CROSS(XX5,XX2081);XX2082:=XMA(二十斜率,26);AA82:=XX2082>=0.7 AND REF(XX2082,1)<XX2082 AND CROSS(XX10,XX2082)AND CROSS(XX5,XX2082);AA1 OR AA2 OR AA3 OR AA4 OR AA7 OR AA71 OR AA72 OR AA8 OR AA81 OR AA82; DRAWTEXT(AA1=1,H/2,'AA1'),COLORRED;DRAWTEXT(AA2=1,H/2.5,'AA2'),COLORRED;DRAWTEXT(AA3=1,H/3,'AA3'),COLORRED;DRAWTEXT(AA4=1,H/3.5,'AA4'),COLORRED;DRAWTEXT(AA7=1,H/4,'AA7'),COLORRED;DRAWTEXT(AA71=1,H/1.88,'AA71'),COLORRED;DRAWTEXT(AA72=1,H/2.98,'AA72'),COLORRED;DRAWTEXT(AA8=1,H/3.18,'AA8'),COLORRED;DRAWTEXT(AA81=1,H/1.58,'AA81'),COLORRED;DRAWTEXT(AA82=1,H/2.78,'AA82'),COLORRED;【通达信】绝对真底(均线流、超跌、斜率)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码 乖离韵律(副图 源码)

通达信指标公式源码 乖离韵律(副图 源码)

说明:背离只有发生在高位(MBN大于10)或低位(MBN小于-10)时才有较好的操作指导意义如果短时间内,连续发出顶(底)背离信号,则往往预示后市将有一波强劲而快速的下跌(上涨).N:=55;B5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;B10:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;MB10:MA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,3);BN:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;MBN: MA(((CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100),8);Z:0;STICKLINE(MBN>0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORRED;STICKLINE(MBN<0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORBLUE;STICKLINE(MBN>0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORYELLOW;STICKLINE(MBN<0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORGREEN;A1:=BARSLAST(REF(CROSS(BN,MBN),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND BN>REF(BN,A1+1) AND CROSS(BN,MBN); STICKLINE(底背离,0,0.008,8,0),COLORRED,LINETHICK3;DRAWLINE(A1=0,MBN,底背离,MBN,0),COLORRED,LINETHICK3;A2:=BARSLAST(REF(CROSS(MBN,BN),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(MBN,A2+1)>BN AND CROSS(MBN,BN); DRAWLINE(A2=0,MBN,顶背离,MBN,0),COLORGREEN,LINETHICK3;。

【股票指标公式下载】-【通达信】指导买卖(买线、卖线、指导线)

【股票指标公式下载】-【通达信】指导买卖(买线、卖线、指导线)

【通达信】指导买卖(买线、卖线、指导线)-指标公式源码买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR600020;STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR404050; DRAWKLINE(H,O,L,C);指导线:EMA((EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,24))/4,2), ,COLORCYAN;界:EMA((EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,30)+EMA(CLOSE,45))/4,5) ,,COLORYELLOW;底:EMA((EMA(CLOSE,60)+EMA(CLOSE,90)+EMA(CLOSE,120)+EMA(CLOSE,240))/4, 1),,COLORLIMAGENTA;B买:IF(CROSS(指导线,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导线) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;DRAWICON(CROSS(买线,卖线),L,1);DRAWICON(CROSS(卖线,买线),H,2);顶: COST(95),COLORBLUE;M55:EMA(CLOSE,55),POINTDOT,LINETHICK3,COLORWHITE;M8:EMA(CLOSE,8),COLORYELLOW;【通达信】指导买卖(买线、卖线、指导线)-指标公式效果图(文档来源:若水财经社区)。

通达信指标公式源码 成本乖离副图指标

通达信指标公式源码 成本乖离副图指标

DIF:(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED,NODRAW;DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;MACD:8*(DIF-DEA),NODRAW;GLM:COST(50)-COST(20),COLORRED,LINETHICK0;GL50:EMA(C-COST(50),5),COLOR00FFFF,LINETHICK0;GL20:EMA(C-COST(20),5),COLORFF00FF,LINETHICK0;DRAWBAND(GLM,RGB(60,60,60),0,RGB(60,60,60));DRAWBAND(GL20,RGB(100,40,100),GLM,RGB(30,100,30));STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700; IF(C,0,DRAWNULL),COLORRED,LINETHICK2;IF(DIF>0 AND MACD<=0,0,DRAWNULL),COLORFFFFFF,LINETHICK2;IF(DIF<=0 AND MACD>0,0,DRAWNULL),COLORFF09FF,LINETHICK2;IF(DIF<=0 AND MACD<=0,0,DRAWNULL),COLORBBB000,LINETHICK2; GLM,COLORRED,LINETHICK1;IF(GLM<REF(GLM,1),GLM,DRAWNULL),COLOR00FF00;STICKLINE(CROSS(GL20,GLM),GLM*2,GLM,2,0),COLORFF00FF;GL50,COLOR00FFFF,LINETHICK1;GL20,COLORFF00FF,LINETHICK1;IF(GL50<=REF(GL50,1),GL50,DRAWNULL),COLORBB0000;IF(GL20<=REF(GL20,1),GL20,DRAWNULL),COLORFFF000;。

求1250均线指标公式及选股公式

求1250均线指标公式及选股公式

求1250均线指标公式及选股公式
1250均线指标公式及选股公式是一种用于股市分析和选股的工具。

这个指标是通过计算过去1250个交易日的收盘价的平均值来衡量股票的长期趋势。

以下是1250均线指标公式及选股公式的详细描述。

1250均线指标公式:
1. 首先,收集每个交易日的股票收盘价数据,至少需要1250个交易日的数据。

2. 计算1250个交易日的收盘价的总和,得到总和值。

3. 总和值除以1250,得到1250均线指标的数值。

选股公式:
1. 设置选股策略,例如选择基于1250均线的长期趋势的股票。

2. 使用股票数据分析工具,如财务报表和技术指标分析软件,筛选符合选股策
略的股票。

3. 确定筛选条件,例如价格在1250均线上方、市值符合要求等。

4. 根据筛选条件进行股票筛选,找到符合条件的股票。

请注意,1250均线指标和选股公式只是一个工具,应结合其他分析方法和市场趋势进行决策。

投资者在使用这些公式时应谨慎,并对投资风险有所了解。

以上是关于1250均线指标公式及选股公式的描述,希望对您有所帮助。

如果
您有其他问题,欢迎继续提问。

通达信指标公式源码 BIAS乖离率指标

通达信指标公式源码 BIAS乖离率指标

强弱:0,DOTLINE,COLORGRAY;VAR1:=(2*CLOSE+OPEN+HIGH+LOW)/5;VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR3:=(EMA(VAR2,3)+EMA(VAR2,6)+EMA(VAR2,12)+EMA(VAR2,24))/4; NOTEXTA1:EMA(VAR3,2),COLORFFB010;NOTEXTA2:EMA(NOTEXTA1,2),COLORFF9010;NOTEXTA3:EMA(NOTEXTA2,2),COLORFF7010;NOTEXTA4:EMA(NOTEXTA3,2),COLORFF5010;NOTEXTA5:EMA(NOTEXTA4,2),COLORFF3010,LINETHICK2;NOTEXTA6:3*NOTEXTA1-2*NOTEXTA2,COLORFFD010;买进:IF(CROSS(NOTEXTA1,NOTEXTA5),-1,-5),COLORRED,NODRAW;卖出:IF(CROSS(NOTEXTA5,NOTEXTA1),1,5),COLORGREEN,NODRAW;使用方法:“平滑乖离”指标为均线型指标。

本指标反映的是多空博弈游戏中多空动能、势能交替转换的基本状态。

本指标由“平滑乖离”(A1~A6)、“强弱”分界线(蓝色)和“买进”、“卖出”提示线构成。

从图形的简单变化即可确定多空双方主力谁占优势,大盘或个股是涨、是跌、还是在盘整。

本指标操作方便,准确率高。

在明显的“上升”、“下跌”的“波段行情”中,许多虚假信号都得到了有效的过滤。

本指标极其适用于中线波段炒作。

操作要领:1、买点:当“平滑乖离”由向下发散转变为向上收拢并即将或已经开始向上发散时为极佳的买点。

2、卖点:当“平滑乖离”由向上发散转变为向下收拢并即将或已经开始向下发散时为最后的卖点。

3、注意事项:A、当“平滑乖离”发出“买进”信号时,如果“平滑乖离”线在“强弱”分界线(蓝色)之下,可以试建仓,做反弹,但必须快进快出;一旦“平滑乖离”线站在“强弱”分界线(蓝色)之上,或者在“强弱”分界线之上发出“买进”信号,并且有成交量的配合时,即可加码建仓,此时为较佳的买点。

1250均线系统操作方法

1250均线系统操作方法

1250均线系统操作方法“1250均线系统”法则操作,不但能“炒”任何一只股票,并且可以达到快速获利的目的。

以下简明叙述操作要点:一、120MA金叉250MA前,庄家建仓阶段:1、股票经长期大幅下跌,处于极低价位,吸引了庄家建仓。

由于庄家买进,股价才会见底,出现最低点。

但最低点只可事后确认而不可预测的,所以永远不可能买到最低点;2、在买盘支撑下,股价扭转下跌趋势,上穿20MA均线,此时应对该股进行跟踪;3、20MA金叉120MA,该股转势确立,可以择机买进;但由于庄家还在建仓阶段,一般釆取低吸高抛手段获取筹码。

所以相应只能作短线操作,获小利为满足。

可以根据5MA10MA均线进行操作,每当股价回落或横盘触及20MA,都是买入点,可以反复操作获小利,前提是20MA是一直上升的。

在“1250均线系统”中,这些买入点分别称为“顺水推舟”、“回头望月”、快马加鞭”;4、在建仓阶段,长期均线120MA与250MA均线呈上升趋势并且不断靠近,而中期均线20MA基本围绕长期均线120MA与250MA 均线上下波动,这是庄家低位吸筹建仓做成的,基本没有例外。

二、120MA金叉250MA,即一年内持股者的平均成本是相同的,庄家建仓工作已近完成:1、经过一段时间反复震荡吸筹建仓股价低位不断抬高,120MA金叉250MA。

此时应注意:若股价高于金叉点很多,可能会缩量回落,实际就是庄家进行拉升股价前最后洗盘,这叫“金叉卖出点”,可先短线退出等股价回到120MA或250MA不再下行时重新进入;如股价在金叉点附近就可买入,这叫“金叉买入点”;2、在120MA金叉250MA后,20MA、120MA、250MA呈三线开花状态,根据开花前120MA和250MA的情况,又可分为“顺向三线开花”、“逆向三线开花”、“并线三线开花”,以“并线三线开花”为最有潜力,华联综超、杭萧钢构、三普药业、华仪电气就是这种状态。

并且并线时间越长,升幅就越大,可以判定为未来大牛股,我们完全可以提前介入坐轿的。

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