通达信指标公式源码分时主图可以添加MACD

合集下载

综合分时主图源码 做T+0必备通达信指标公式源码

综合分时主图源码 做T+0必备通达信指标公式源码

通达信综合分时主图源码做T+0必备这个公式指标是我综合了几个分时指标。

经修改加工而成,经试有一段时间,效果非常不错!现发出来与大家共同研究学习,共同担高。

指标标注非常清楚,除了极弊端行情,大部份时间是很有用的!现价:CLOSE,COLORFFFFFF,LINETHICK2;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L11:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L11;阻力:L11+P1*7/8,COLOR00DD00;支撑:L11+P1*0.5/8,COLORMAGENTA;中:阻力*0.5+支撑*0.5,DOTLINE;STICKLINE(CROSS(支撑,现价),中,现价,2,0),COLORYELLOW,LINETHICK5;STICKLINE(CROSS(现价,阻力),现价,中,2,0),COLORFFCC66,LINETHICK5;DRAWTEXT(LONGCROSS(支撑,C,2),C,'--反弹'),COLORYELLOW;DRAWTEXT(LONGCROSS(C,阻力,2),C,'--出货'),COLORYELLOW;A1:=(DVOL/C)/2,NODRAW;A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);A6:=A2+A3+A4+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);机构买:=(A2),LINETHICK6,COLORRED;机构卖:=(A3),LINETHICK6,COLORGREEN;DD1:=1;AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%'); AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%'); AAA3:=STRCAT(STRCAT('净买入',CON2STR((100*(A2-A3))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN; DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA3),COLOR00FFFF;A11:=C>REF(C,4);NT:=BARSLASTCOUNT(A11);TJ11:=NT=9;TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT; DRAWTEXT(AY>0,H*1.001,VAR2STR(AY,0)),COLORFF00FF; DRAWTEXT(NT=9,H*1.001,'9'),COLORGREEN;B1:=C<REF(C,4);NT0:=BARSLASTCOUNT(B1);TJ21:=NT0=9 ;TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;DRAWTEXT(AY1>0,L*0.999,VAR2STR(AY1,0)),COLORFF00FF;DRAWTEXT(NT0=9,L*0.999,'9'),COLORGREEN;ZRS:=CONST(DYNAINFO(3)),NODRAW;A12:=3.5*(EMA(CLOSE,48)-EMA(CLOSE,104))+ZRS,COLORLIMAGENTA;A22:=EMA(A12,36),COLORLIBLUE;MACD:=(A12-A22)*2+ZRS;DRAWKLINE(H,O,L,C);STICKLINE(A12>=A22,ZRS,MACD ,0,0),COLORRED;STICKLINE(A12>=A22 AND MACD<REF(MACD,1),ZRS,MACD ,0,0),COLORYELLOW; STICKLINE(A12<A22,ZRS,MACD ,0,0),COLORCYAN;STICKLINE(A12<A22 AND MACD>REF(MACD,1),ZRS,MACD ,0,0),COLORFFFFFF;。

通达信指标公式源码超级无敌MACD

通达信指标公式源码超级无敌MACD

{MACD}DIF:EMA(CLOSE,6)-EMA(CLOSE,19),,NODRAW;DEA:EMA(DIF,9),NODRAW;MACD:2*(DIF-DEA),COLORSTICK;STICKLINE(MACD>0,MACD,0,0.5,0),COLORRED;STICKLINE(MACD<0,MACD,0,0.5,0),COLORGREEN;STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,0),COLORWHITE; STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,0),COLORFF00FF; FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018;FH5:=FH1 AND FH2 AND MACD<0.10;VV:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) ANDMA(CLOSE,10)>MA(CLOSE,30)AND DIF>DEA AND MACD>REF(MACD,1) AND DIF>0 AND DEA>0 ANDMA(VOL,5)>MA(VOL,34) AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1);佛手:IF(VV,1,0),NODRAW;{二次起动}X0:=BARSLAST((CROSS(MACD,REF(MACD,1)) AND MACD>0) ORCROSS(MACD,0));X1:=BARSLAST(CROSS(0.5,COUNT(MACD>REF(MACD,1),X0+1)=X0+1));{回} X2:=COUNT(MACD<REF(MACD,1),X1+1)=X1+1 ANDCOUNT(MACD<0,X1+1)<=2;X3:=REF(X2,1) AND MACD>REF(MACD,1) AND C>O AND C>REF(C,1); STICKLINE(X1=0 AND MACD>0,MACD,0,2,0),COLORDCDC00;{MACD缩头} STICKLINE(X3,MACD,0,2,0),COLOR0854FF;{二次起动};DRAWICON(佛手,-0.15,11);二次翻红:(FH3 OR FH4 OR FH5),COLORRED,NODRAW;低买:CROSS(DIF,DEA) AND DIF<0,COLORFF00FF,NODRAW;加油:CROSS(DIF,DEA) AND DIF>0,COLORYELLOW,NODRAW; DRAWICON(二次翻红,-0.05,1);DRAWTEXT(二次翻红,-0.15,'↖翻红'),COLORRED;DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA-0.02,'↖低买'),COLORFF00FF; DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA-0.05,'↖加油'),COLORYELLOW; XG:二次翻红OR 低买OR 加油,NODRAW;YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/ (VOL+0.01)/100);阻价:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW));支价:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC));今压:REF(阻价,1),LINETHICK0,COLORAA11BB,NODRAW;今撑:REF(支价,1),LINETHICK0,COLOR009900,NODRAW;明压:阻价,LINETHICK0,NODRAW;明撑:支价,LINETHICK0,NODRAW;DIFF:DIF,COLORRED,LINETHICK2;DDEA:DEA,COLORYELLOW,LINETHICK2;。

通达信MACD趋势主图指标公式

通达信MACD趋势主图指标公式

通达信MACD趋势主图指标公式DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'W20',0);DRAWKLINE(H,O,L,C);QWX1:=HHV(CLOSE,30);QWX2:=LLV(CLOSE,30);QWX3:=CONST((QWX1+QWX2)/2);QWX4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);QWX5:=CONST((1-7/100)*(DMA(CLOSE,QWX4)));QWX6:=CONST((1+7/100)*(DMA(CLOSE,QWX4)));{KDJ}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;KX:=SMA(RSV,3,1);DX:=SMA(KX,3,1);JX:=3*KX-2*DX;{MACD}DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*2+QWX3,COLORWHITE;DEA:=EMA(DIF,9),COLORYELLOW;MACD:(DIF-DEA)*5+QWX3,COLORYELLOW,LINETHICK2;DRAWBAND(MACD,RGB(120,0,100),QWX3,RGB(60,100,50));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);牛熊线:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2,LINETHICK2,COLORRE D;M5:MA(CLOSE,5),COLORWHITE,DOTLINE;IF(MA(C,5)>=REF(MA(C,5),1),MA(C,5),DRAWNULL),COLORYE LLOW,LINETHICK3;M10:MA(CLOSE,10),COLORYELLOW,DOTLINE;IF(MA(C,10)>=REF(MA(C,10),1),MA(C,10),DRAWNULL),COLO R330099,LINETHICK2;M20:MA(CLOSE,20),COLORFF00FF;IF(MA(C,20)>=REF(MA(C,20),1),MA(C,20),DRAWNULL),COLO RLIMAGENTA,LINETHICK2;M60:MA(CLOSE,60),COLOR6699CC;IF(MA(C,60)>=REF(MA(C,60),1),MA(C,60),DRAWNULL),CIRCL EDOT,LINETHICK2;M120:MA(CLOSE,120),COLORLIBLUE,DOTLINE;M250:MA(CLOSE,250),COLORMAGENTA,DOTLINE;VAR1:=IF(CLOSE>OPEN,CLOSE,OPEN);VAR2:=MEMA(CLOSE,5);VAR3:=ATAN((VAR2/REF(VAR2,1)-1)*100);VAR4:=IF(VAR3>0,VAR3,VAR3);VAR5:=(CLOSE/REF(CLOSE,1)-1)*100;VAR6:=VAR5<1.5 AND VAR5>-1.5;今日之升★:LAST(VAR6,4,1) AND V AR5>2 AND VOL>REF(VOL,1),NODRAW,COLORYELLOW;DRAWTEXT(今日之升★,L/1.01,'★'),COLORYELLOW;强势:IF(VAR4>=REF(VAR4,1) AND VAR4>=0,M10,DRAWNULL),COLORRED,LINETHICK2;整理:IF(VAR4<REF(VAR4,1) AND VAR4>0,M10,DRAWNULL),COLORGREEN,LINETHICK2;支撑:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX5,DRA WNULL),DRAWNULL),COLORCYAN;阻力:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX6,DRA WNULL),DRAWNULL),COLORYELLOW;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),COLORFFF F00;高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00F FFF;撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL), COLOR00FFFF;强: IF(CURRBARSCOUNT<=N/30,DD+KJ*0.382,DRAWNULL),COLOR FF00FF;突破:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR0 000FF;警示:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.618,DRAWNULL),COL OR00FFFF;压力:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.809,DRAWNULL),COL OR00FF00;低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,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),COLORRED, DOTLINE;低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORYELL OW,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),COLORGRE EN;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;{柱型显示}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF990 0;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB0 0;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;{绿}STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,3,0) ,COLOR009900;STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,2.2, 0),COLOR00BB00;STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,0.5, 0),COLOR00FF00;{灰}STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,3,0 ),COLOR999999;STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,2.2 ,0),COLORBBBBBB;STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,1.5 ,0),COLORDDDDDD;STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,0.5 ,0),COLORFFFFFF;STICKLINE(CROSS(JX,DX),OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(CROSS(DX,JX),OPEN,CLOSE,0.5,0),{COLOR000099 }COLORBLACK;超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;大宗进限制:=IF((超B+大B)=0,0,大宗进);大宗出限制:=IF((超S+大S)=0,0,大宗出);非大宗进限制:=IF(中B+小B=0,0,非大宗进);非大宗出限制:=IF(中S+小S=0,0,非大宗出);主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),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(250,125,0),RGB(25,150,250)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(25,150,250),RGB(250,125,0)));DRAWRECTREL(102,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,132,950,IF(CONST(非大宗进>0),RGB(250,125,0),RGB(25,150,250)));DRAWRECTREL(134,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,164,950,IF(CONST(非大宗出>0),RGB(25,150,250),RGB(250,125,0)));DRAWRECTREL(204,CONST(950-(ABS(净流入)*250/DAZHIV))-20,234,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(1,0.00,0.95,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.10,0.95,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(1,0.20,0.95,0,STRCAT(STRCAT('净流入',CON2STR(净流入,0)),'万')),COLORYELLOW;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;大单买比:=LARGEINTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDV OL);大单卖比:=LARGEOUTTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRD VOL);主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NODRAW;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;主买力度比:=主力买力度/(主力买力度+主力卖力度)*100,NODRAW;主卖力度比:=主力卖力度/(主力买力度+主力卖力度)*100,NODRAW;力度比限制:=IF((LARGEINTRDVOL+LARGEOUTTRDVOL)=0,0,大单买比);JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/100000000,COLORRED;DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/100000000,COLORFF00FF;ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/100000000,COLOR00FFFF;SHV:=(L2_VOL(3,0) - L2_VOL(3,1))*VOL/100000000,COLORFFFFFF;NOTEXT大量动向:=MA((JGV+DHV),5),COLORYELLOW;超级大量:=JGV,COLOR0000FF,NODRAW;机构大量:=DHV,COLORMAGENTA,NODRAW;大量博弈:=(JGV+DHV),COLORYELLOW,NODRAW;小量博弈:=(ZHV+SHV),COLORWHITE,NODRAW;大量资金比:=大量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLO W,NODRAW;大量资金比限制:=IF(大量资金比=0,-100,大量资金比);大量强度比:=IF(大量资金比>0,(大量资金比限制+100)/2,IF(大量资金比<0,100-ABS((大量资金比限制-100)/2),0)),COLORGREEN,NODRAW;小量资金比:=小量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLO W,NODRAW;小量强度比:=IF(小量资金比>=0,(小量资金比+100)/2,100-ABS((小量资金比-100)/2)),COLORCYAN,NODRAW;MVR:=REF(MA(V,5),1);FVR:=REF(V,1);PVR:=(MVR+FVR)/2;量能比:=V/(V+PVR)*100/FROMOPEN*240;{量能饱和度}SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:=IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;{活跃度}LC:=REF(CLOSE,1);RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃度:=(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;活跃度比:=IF(活跃度>=0,(活跃度+100)/2,100-ABS((活跃度-100)/2));DRAWRECTREL(80,0,240,40,RGB(0,75,200));DRAWRECTREL(80,0,160,40,RGB(0,250,50));DRAWRECTREL(80,0,80+CONST(力度比限制*160/100),40,RGB(200,0,50));DRAWTEXT_FIX(1,0.00,0.00,0,STRCAT(STRCAT('买卖力度比',CON2STR(大单买比,2)),'%买')),COLORYELLOW;DRAWTEXT_FIX(1,0.33,0.00,0,STRCAT(STRCAT('',CON2STR(大单卖比,2)),'%卖')),COLORGREEN;DRAWRECTREL(80,50,240,90,RGB(0,100,0));DRAWRECTREL(80,50,160,90,RGB(0,250,50));DRAWRECTREL(80,50,80+CONST(大量强度比*160/100),90,RGB(175,50,250));DRAWTEXT_FIX(1,0.00,0.05,0,STRCAT(STRCAT('大量强度比',CON2STR(大量强度比,2)),'%买')),COLORYELLOW;DRAWRECTREL(330,0,490,40,RGB(0,75,200));DRAWRECTREL(330,0,410,40,RGB(0,250,50));DRAWRECTREL(330,0,330+CONST(主买*160/100),40,RGB(175,50,250));DRAWTEXT_FIX(1,0.25,0.00,0,STRCAT(STRCAT('主动买卖比',CON2STR(主买,2)),' %')),COLORYELLOW;{DRAWTEXT_FIX(1,0.33,0.10,0,STRCAT(STRCAT('',CON2STR(主卖,2)),'%卖')),COLORGREEN;}DRAWRECTREL(330,50,490,90,RGB(0,100,0));DRAWRECTREL(330,50,410,90,RGB(0,250,50));。

通达信优化MACD主图指标公式

通达信优化MACD主图指标公式

通达信优化MACD主图指标公式高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H3:=高1-(高1-低1)*0.5;中轴:REFDATE(H3,DATE),POINTDOT,COLORLIGRAY,LINETHICK3;B1:=EMA(C,12);B2:=EMA(C,26);B3:=B1-B2;WDIF:EMA(EMA(EMA(C,3),3),3)+B3;WDEA:EMA(WDIF,9);MACD:=2*(WDIF-WDEA);STICKLINE(MACD>0,中轴,中轴+MACD,0,1),COLORRED;STICKLINE(MACD<0,中轴,中轴+MACD,0,1),COLORLIBLUE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,中轴,中轴+MACD,0,0 ),COLOR00BBFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,中轴,中轴+MACD,0,0 ),COLOR0011BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,0),COLORBB11BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,0),COLORFFBB11;VARA:=LLV(LOW,36);VARB:=HHV(HIGH,30);VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;趋势:= VARC, COLOR33FFFF;顶背: STICKLINE(VARC>90,OPEN,CLOSE,1,0) , COLORRED;VAR26:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(C LOSE,24))/4;VAR27:=MA(VAR26,5);VAR28:=MA(VAR26,10);C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L)+0.03;明日支撑:=L+(C-GJ)+0.01;阻力:REF(明日阻力 , 1),NODRAW;支撑:REF(明日支撑 , 1),NODRAW;KLH:=IF( PERIOD=5,0.015,0);前天均价:=REF(AMOUNT,1)/REF(VOL*100,1),LINETHICK0;STICKLINE(CURRBARSCOUNT=1,阻力+KLH,阻力,6,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1,支撑,支撑-KLH,6,0),COLORRED;涨家:INDEXADV,COLOR0066FF,NODRAW;跌家:INDEXDEC,COLOR99FF99,NODRAW;{股旁网-股票公式网站 }TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);日线止损:(LC*1.0035*97+0.2)/99.65,COLOR03B4EC,NODRAW;。

通达信指标公式源码 厉害的MACD

通达信指标公式源码 厉害的MACD

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;DEA:EMA(DIF,9),COLORWHITE,LINETHICK2;持仓段:=0,COLOR00CFFF;空仓段:=0,COLORFFCCFF;{STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;STICKLINE(DIF<DEA,-0.5,-0.6,10,1),COLORFFCCFF;}MACD:(DIF-DEA)*2,COLORSTICK;STICKLINE(((MACD<REF(MACD,1)) AND(MACD>0)),0,MACD,1,0),COLORLIBLUE,LINETHICK2;STICKLINE(((MACD>REF(MACD,1)) AND(MACD<0)),0,MACD,1,0),COLORFF00FF,LINETHICK2;建仓:IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK2;加仓:IF(DIF<0,0,DIF),COLORRED,LINETHICK2;白线破仓:IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK2;趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2;AA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1; DRAWTEXT(二次金叉,0,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK1; DRAWTEXT(底背离,0.05,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK1;V2:=IF(CURRBARSCOUNT=1,AMOUNT/1000*240/FROMOPEN/REF(AMOUNT/ 1000,1)-1,AMOUNT/REF(AMOUNT,1)-1),NODRAW,COLORRED;STICKLINE((V2>=1),DIF,DEA,0.5,0),COLORYELLOW;DRAWTEXT((V2>=1),DIF*1.15,'放量'),COLOR00FF00;{RMACD:="MACD.MACD";H3:=REF(RMACD,3);H2:=REF(RMACD,2);H1:=REF(RMACD,1);H0:=RMACD;买:(H2<0 AND H3>H2 AND H2>H1 AND H0>H1)/12;}。

通达信指标公式源码随心MACD

通达信指标公式源码随心MACD

UPD:COUNT(C>=O OR C>=REF(C,1),8) NODRAW;CM60:BARSLAST(LONGCROSS(C,MA(C,60),8))+1 NODRAW COLORRED; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,24);DEA:=EMA(DIFF,9);ADIF:ATAN((DIFF/REF(DIFF,1)-1)*100)*180/3.1416 NODRAW; RADIF:REF(ADIF,1) NODRAW;C2:=IF(V>MA(V,150)*0.98,0.1,-0.1);C1:=IF(V<MA(V,150)*0.98,-0.1,0.1);B2:=EMA(CLOSE,55)-MA(CLOSE,60) DOTLINE COLORGREEN;B3:=EMA(B2,9) DOTLINE COLORCYAN;DRAWBAND(B2,RGB(120,50,50),B3,RGB(50,120,50));MACD:=2*(DIFF-DEA), STICK,LINETHICK1 COLORCYAN;N:=20;MID:=MA(C,20);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1),COLORGREEN;UB:=REF(UPPER,1),COLOR00FFFF;LB:=REF(LOWER,1),COLOR00FFFF NODRAW;BLTJ:=REF(L,1)<REF(LB,1) AND L>LB;BLLDT:BARSLAST(BLTJ ) NODRAW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)) COLORRED NODRAW;底背离:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA) NODRAW;STICKLINE(底背离,0,0.03,1.2,1),COLOR00FF00;{底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2 CROSSDOT;}DRAWTEXT(底背离,0.1,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)) ;顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF) CROSSDOT COLORRED NODRAW;{顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK2 CROSSDOT;}底背D:BARSLAST(底背离)+1 NODRAW COLORRED;顶背D:A2+1 COLORGREEN NODRAW;{判断天地量}AA:=SUMBARS(VOL,CAPITAL);地量:=VOL<MA(VOL,AA)*21/100 AND VOL>0;天量:=VOL>MA(VOL,AA)*34/10 ;MACDA:2*(DIFF-DEA), STICK,LINETHICK1 COLORCYAN;NOTEXT3:IF(地量AND PERIOD>4,MACD*1.5,DRAWNULL) STICK LINETHICK6 COLORYELLOW;NOTEXT4:IF(天量AND PERIOD>4,MACD*1.5,DRAWNULL) STICK LINETHICK6 COLORAAAAFF;NOTEXT5:IF(V<=MA(V,5)*0.22,MACD,DRAWNULL) STICK LINETHICK4 COLORBLUE;NOTEXT:IF(REF(MACD,1)<=MACD,MACD,DRAWNULL) STICK COLORRED; NOTEXT1:0 LINETHICK3 COLORGRAY;NOTEXT8:IF(V>MA(V,150)*0.98,0,DRAWNULL) COLORRED LINETHICK2 CIRCLEDOT ;DEAA:DEA COLORYELLOW;DIFA:DIFF COLORWHITE ;DIFF1:EMA(CLOSE,12)-EMA(CLOSE,26) DOTLINE COLORGREEN NODRAW; DEA1:EMA(DIFF1,9) DOTLINE COLORCYAN NODRAW;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2 CROSSDOT;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK2 CROSSDOT;强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED LINETHICK2;弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA LINETHICK2;必买: DRAWICON(REF(TROUGHBARS(3,15,1),1)=0 ANDHIGH>LOW,0,25),COLORRED ,LINETHICK4;必卖:DRAWICON(REF(PEAKBARS(3,15,1),1)=1,0,27),COLORRED,LINETHICK8;B1:A1 NODRAW;TOP:A2 NODRAW;BSR:((BIDORDERVOL-BIDCANCELVOL)/(OFFERORDERVOL-OFFERCANCELVOL )-1)*10 NODRAW;NOTEXTBRS:IF(BSR>0,DEA,DRAWNULL) COLORFFFFFF LINETHICK2 CIRCLEDOT;HSJ:=BARSLAST(CROSS(DIFF,0) AND DIFF>=0 )+1 NODRAW;LSJ:=BARSLAST(CROSS(0,DIFF) AND DIFF<0 )+1 NODRAW;T:IF(DIFF>0,HSJ,LSJ) NODRAW;IF(T=1,ABS(MACD),0) STICK LINETHICK2 COLORMAGENTA;IF(CROSS(DEA,0),ABS(MACD),0) STICK LINETHICK2 COLORYELLOW;S:IF(HSJ>1,SUM(ABS(MACD),T),DRAWNULL) NODRAW ; DRAWNUMBER(ISLASTBAR ,ABS(MACD*1.02),S) COLORYELLOW; DRAWNUMBER(T=1 ,ABS(MACD*1.02),REF(S,1)) ;T2:REF(T,T)+T NODRAW;Q1S:REF(S,T) NODRAW;Q2S:=REF(S,T2) NODRAW;BL:=Q1S/Q2S NODRAW;{E2T:BARSLAST(CROSS(DIF,DEA) AND FILTER(CROSS(DIF,DEA) ,5) )+1 NODRAW;E6T:BARSLAST(CROSS(DEA,DIF) AND FILTER(CROSS(DEA,DIF) ,5) )+1 NODRAW;ET:IF(DIF>=DEA,E2T,E6T) NODRAW;ES:SUM(ABS(DIF-DEA),ET) NODRAW;BZ:=MAX(ABS(DEA),ABS(DIF));XS:=IF(DIF<0,-1,1);IF(ET=1,DIF,DRAWNULL) CIRCLEDOT LINETHICK2;DRAWNUMBER(ISLASTBAR ,DIF*1.05,ES) COLORYELLOW; DRAWNUMBER(ET=1 ,BZ*XS*1.05,REF(ES,1)) COLORYELLOW;};TTJ:=IF(BARSLAST(顶背离=1)+1=144 OR BARSLAST(顶背离=1)+1=89 OR BARSLAST(顶背离=1)+1=13 OR BARSLAST(顶背离=1)+1=47 ORBARSLAST(顶背离=1)+1=1 OR BARSLAST(顶背离=1)+1=8 OR BARSLAST(顶背离=1)+1=21 OR BARSLAST(顶背离=1)+1=34 OR BARSLAST(顶背离=1)+1=55,1,O) ;TTJA:=IF( BARSLAST(底背离=1)+1=144 OR BARSLAST(底背离=1)+1=89 OR BARSLAST(底背离=1)+1=8 OR BARSLAST(底背离=1)+1=1 OR BARSLAST(底背离=1)+1=47 OR BARSLAST(底背离=1)+1=13 OR BARSLAST(底背离=1)+1=21 OR BARSLAST(底背离=1)+1=34 OR BARSLAST(底背离=1)+1=55,1,O) ;DRAWNUMBER((BARSLAST(顶背离=1)+1<144 AND TTJ=1 AND CURRBARSCOUNT<233) OR ISLASTBAR,MIN(DIFF,DEA)*0.98,BARSLAST(顶背离=1)+1) COLORGREEN;DRAWNUMBER((BARSLAST(底背离=1)+1<144 AND TTJA=1 AND CURRBARSCOUNT<233)OR ISLASTBAR,0,BARSLAST(底背离=1)+1) COLORYELLOW;。

通达信分时主图加入macd指标非常方便看盘

通达信分时主图加入macd指标非常方便看盘

一、通达信分时主图加入macd指标非常方便看盘{年月日}DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF (WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】');DRAWTEXT_FIX(DA AND FROMOPEN<120,0.87,0,0,AA),COLORYELLOW;DRAWTEXT_FIX(DA AND FROMOPEN>=120,0,0,0,AA),COLORYELLOW;{板块概念}DRAWTEXT_FIX(1 AND FROMOPEN<120,0.5,0,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1 AND FROMOPEN<120,0.55,0,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1 AND FROMOPEN<120,0.6,0,0,GNBLOCK),COLORYELLOW;DRAWTEXT_FIX(1 AND FROMOPEN>=120,0.12,0,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1 AND FROMOPEN>=120,0.17,0,0,HYBLOCK),COLORYELLOW;DRAWTEXT_FIX(1 AND FROMOPEN>=120,0.21,0,0,GNBLOCK),COLORYELLOW;竞价金额:=(REF(VOL,FROMOPEN+1))*OPEN#DAY*0.01 NODRAW;开盘金额:=DYNAINFO(15)/10000,NODRAW;开盘金:=开盘金额/DYNAINFO(4);竞手数:=开盘金*100;SUMV:=SUM(V,0);竞价量:=REF(SUMV,BARSLAST(TIME2<093000)),NODRAW;开盘一分钟量:=REF(SUMV,BARSLAST(TIME2<=093100)),NODRAW; {竞价量}SUMBUYV:=SUM(BUYVOL,0); {返回外盘即DYNAINFO(23)}竞价主买:REF(SUMBUYV,BARSLAST(TIME2<093000)),NODRAW;开盘一分主买:REF(SUMBUYV,BARSLAST(TIME2<=093100)),NODRAW;QQ3:=STRCAT(STRCAT('【竞价金额】: ',CON2STR(竞价金额,2)),'万');机构卖盘:=STRCAT(STRCAT(' 开盘一分主买',CON2STR((开盘一分主买),0)),' '); DRAWTEXT_FIX(1,0.30,1.00,0,机构卖盘),COLORWHITE;DRAWTEXT_FIX(1,0.15,1,0,QQ3),COLORMAGENTA;DRAWTEXT_FIX(1,0.00,1,0,STRCAT('【开盘金额】:',STRCAT(CON2STR(开盘金额,0),'万')))COLORYELLOW;{分时MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);X:=CONST(HHV(ABS(C-DYNAINFO(3)),FROMOPEN))/CONST(HHV(ABS(DIF),FROMOPEN))*0.6; DI:DIF*X+DYNAINFO(3),COLORCC00CC;DE:DEA*X+DYNAINFO(3),COLOR00DD00;MAC:=MACD*X;STICKLINE(MAC>0,DYNAINFO(3),MAC+DYNAINFO(3),0,1),COLORRED;STICKLINE(MAC<0,DYNAINFO(3),MAC+DYNAINFO(3),0,1),COLORCYAN;天数1:=BARSLAST(CROSS(MACD>0,0.5));零上最高:=FILTERX(HHV(MACD,天数1+1)=MACD,天数1);STICKLINE(零上最高,DYNAINFO(3),MAC+DYNAINFO(3),0.5,0),COLORYELLOW;天数2:=BARSLAST(CROSS(MACD<0,0.5));零下最低:=FILTERX(LLV(MACD,天数2+1)=MACD,天数2);STICKLINE(零下最低,DYNAINFO(3),MAC+DYNAINFO(3),0.5,0),COLORWHITE;注释:macd分时主图看盘绝对是非常实用,因为macd在分时是最小级别,顶背底背非常管用,顶背处不管是一次、两次、三次。

【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)

【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)

【通达信】主力动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←首次开盘价距金的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);{----------------------利用MACD趋势进行精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海面:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采用21日月线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进行顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------大盘动向-------------------------------}VAR1大盘:=LLV(LOW,13);VAR2大盘:=HHV(HIGH,13);VAR3大盘:=(SMA((CLOSE-VAR1大盘)/(VAR2大盘-VAR1大盘)*顶部,5,1))-顶部/2;VAR4大盘:=SMA((VAR2大盘-CLOSE)/(VAR2大盘-VAR1大盘)*顶部,5,1)-顶部/2; 大盘散户:=IF(VAR4大盘<底部,底部,VAR4大盘),COLOR408000;大盘主力:=IF(VAR3大盘<底部,底部,VAR3大盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最高获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最高获利参数;VAR2C:=(COST(99.9)-COST(1))*最高获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;高密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主力:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主力:IF(个股主力=DRAWNULL,DRAWNULL,个股主力),COLOR330088;{--------------------换手率,五日换手率辅助判断个股活跃度-------------------}换手:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤日换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}金色背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;金色背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;金色背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));金色背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫色:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));高密峰墨蓝色:=DRAWBAND(高密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝色:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿色:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主力峰红色:DRAWBAND(主力,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若水论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}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); 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); 三平底翻金:=(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;主力启动线:=MA(V,5),COLORFFFFFF;主力洗盘线:=MA(V,35),COLOR00FFFF;资金异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线))),COLORYELLOW;启动:=(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2)))),COLOR45AAEE;成立:=三平底翻金 AND (出击 OR 启动);买入提示:=IF(成立=1,海面*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海面线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海面线:DRAWBAND(海面,RGB(0,153,153),海面,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海面线,底部线,多空线文字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线文字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线文字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海面线文字:DRAWTEXT(CURRBARSCOUNT=1,海面,' 海面线'),COLOR999900; 底部线文字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线文字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主力动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(文档来源:若水财经社区)。

MACD分时通达信指标公式源码

MACD分时通达信指标公式源码

MACD分时通达信指标公式源码⾃⽤的⼀个分时指标。

红买绿卖,可以⽤来做T,买在相对低位,卖在相对⾼位,喜欢的命运研究。

DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻⼒:=L1+P1*7/8,COLORGREEN;⽀撑:=L1+P1*0.5/8,COLORRED;中线:=(⽀撑+阻⼒)/2,COLORWHITE,POINTDOT;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/ (HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备买⼊:STICKLINE(趋势线<11,趋势线,11,5,0),COLORYELLOW;AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;下单买⼊:STICKLINE(BB=1 AND C<中线,11,50,5,0),COLORRED;DRAWICON(BB=1 AND C<中线,55,1);DRAWTEXT(BB0,60,'★买'),COLORRED;DRAWTEXT(AA,16,'准备买⼊'),COLORYELLOW;准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),COLORWHITE;CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;下单卖出:STICKLINE(DD=1 AND C>中线,89,50,5,0),COLORGREEN;DRAWICON(DD=1 AND C>中线,45,2);DRAWTEXT(DD0,40,'★卖'),COLORGREEN;DRAWTEXT (CC,84,'准备卖出'),COLORWHITE;顶:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;{上出下买+三背}A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分⽔岭:IF(MA(CLOSE,17)操作线:分⽔岭-(EMA(C,3)-分⽔岭),COLOR00FFFF;PM:MA(C,5),COLORWHITE;IF(PM> REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;IF(PMS:=(PM> 操作线);DD11:=分⽔岭IF(DD11,分⽔岭,DRAWNULL),COLOR00FF00;IF(S,分⽔岭,DRAWNULL),COLOR00FF00;DRAWICON(CROSS(分⽔岭,操作线),分⽔岭-0.1,1);{买⼊红箭头}A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA"); DRAWTEXT(B1> 0,L-0.02,'MACD底背离'),COLOR00FFFF;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); DRAWTEXT(B2,L-0.10,'KDJ底背离'),COLORFF00FF;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");DRAWTEXT(B3> 0,L-0.18,'RSI底背离'),COLOR0000FF;{RSI底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));D1:=REF(C,C1+1) "MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");DRAWTEXT(D1> 0,H+0.16,'MACD顶背离'),COLOR00FF00;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1) "KDJ.K" AND CROSS("KDJ.D","KDJ.K"); DRAWTEXT(D2> 0,H+0.08,'KDJ顶背离'),COLORFFFFCC; {KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1) "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");DRAWTEXT(D3> 0,H+0.04,'RSI顶背离'),COLORFF9900;{RSI顶背离};。

通达信指标公式源码 MACD主图 主图源码

通达信指标公式源码 MACD主图 主图源码

{色MACD主图}高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H3:=高1-(高1-低1)*0.5;中轴:REFDATE(H3,DATE),POINTDOT,COLORLIGRAY,LINETHICK3;B1:=EMA(C,12);B2:=EMA(C,26);B3:=B1-B2;WDIF:EMA(EMA(EMA(C,3),3),3)+B3,COLORRED,LINETHICK2;WDEA:EMA(WDIF,9),COLORGREEN,LINETHICK2;MACD:2*(WDIF-WDEA),NODRAW ;STICKLINE(MACD>0,中轴,中轴+MACD,0,1),COLORRED;STICKLINE(MACD<0,中轴,中轴+MACD,0,1),COLORLIBLUE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,中轴,中轴+MACD,0,0 ),COLOR00BBFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,中轴,中轴+MACD,0,0 ),COLOR0011BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,0),COLORBB11BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,中轴,中轴+MACD,0,0),COLORFFBB11;{量价异动}短线:MA(C,5),NODRAW;中线:((MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4+EXPMA( CLOSE,10))/2,NODRAW;密码线:((EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4+EXPMA(CLOSE,24)+ MA(C,25))/3,NODRAW;神奇线:(MA(C,35)+EXPMA(CLOSE,50))/2,NODRAW;阳涨幅:=4.0;阳倍量:=2.0;单阳收:=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(单阳));F1:=C/REF(C,1)>1.098;强势:=COUNT(单阳,5) AND C>高不破价*0.98;A111:=REF(C/REF(C,1),BARSLAST(单阳));主升浪:=强势>0 AND C/REF(C,1)>A111 AND C>MA(C,60) ;JCCOUNT:=COUNT(单阳,11);上升中继:=单阳AND COUNT(JCCOUNT=2,11);DRAWTEXT(上升中继>0 ,L*0.9,'高度关注'),COLOR00FFFF;主升浪1:=上升中继AND F1;DRAWTEXT(主升浪>0 ,L*0.98,'主升浪'),COLOR00FFFF;拉升:=COUNT(单阳,4) AND O/REF(C,1)>1.017 AND C>=O AND C>MA(C,60) ; DRAWTEXT(拉升>0 ,L*0.9,'拉升'),COLOR00FFFF;单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))=低不破价); {金叉共振}市场成本:DMA(AMOUNT/V/100,V/CAPITAL),COLORRED,NODRAW; DRAWICON(CROSS(C,市场成本),L-0.20,1);{1号图标显示红脸} {PARTLINE(市场成本,市场成本>REF(市场成本,1),RGB(255,0,0),NOT(市场成本<REF(市场成本,1)),RGB(0,0,255),1,RGB(0,0,255)),LINETHICK2;}DIFF:=EMA(CLOSE,2) - EMA(CLOSE,60);DEA:=EMA(DIFF,8);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B01:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B02:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B03:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWICON(B01>0,L-0.20,5);DRAWTEXT(B01,L-0.30,'MACD底背'),COLORWHITE;DRAWICON(B02>0,L-0.20,4);DRAWTEXT(B02,L-0.30,'KDJ底背'),COLORFF00FF;DRAWICON(B03>0,L-0.20,3);DRAWTEXT(B03,L-0.30,'RSI底背'),COLORYELLOW;DRAWICON(CROSS(DIFF,DEA) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.20,6);DRAWTEXT(CROSS(DIFF,DEA) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.30,'金叉共振'),COLOR0099FF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;{F10}DRAWTEXT_FIX(1,0.7,0,0,'所属板块:'),COLORFF6000;DRAWTEXT_FIX(1,0.77,0,0,HYBLOCK),COLORRED;DRAWTEXT_FIX(1,0.835,0,0,DYBLOCK),COLORYELLOW;总股本:=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.005,0.01,0,财务系数),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLORYELLOW;{止损线}{数据自己爱好调整}STICKLINE(ISLASTBAR,HHV(C,5),HHV(C,5),218,1)COLORBLUE; STICKLINE(ISLASTBAR,HHV(C,5)*0.95,HHV(C,5)*0.95,218,1)COLORRED;。

通达信指标公式源码 分时主图 打板 做t 追涨

通达信指标公式源码 分时主图 打板 做t 追涨

使用说明:1,加入量比指标,粉色条:量比>5, 兰色条:量比>2.5,2,macd大家不用教,3,彩带是分时均线,做t.结合macd,粉进兰出。

4,分时线变桔黄色,涨停可能较大,如左上角三色带全紫,涨幅不大可追!(新手慎为)5,狮子,红球,金指,均为强势信号,如多指标共振,果断杀入!指标只做参考,同一只枪,高手弹无虚发,低手可能自伤,祝大家投顺利!无法导入的用这个去掉了左上角色条先建一引用公式否则左上角色条不显示引用公式源码如下{FSKY 分时K线引用}今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);源码:{反转MACD 参数: p, 0, 20, 4;}{前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=200/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,355,0);A2:=IF(ZX>=KP,0,355);A3:=IF(ZX>=KP,0,0);DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,355,0);A5:=IF(昨收>=昨开,0,355);A6:=IF(昨收>=昨开,0,0);DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,355,0);A8:=IF(前收>=前开,0,355);A9:=IF(前收>=前开,0,0);DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF; DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了}; {MACD P:1,20,4;}{RC:=DYNAINFO( 3);}S2:=SMA(C,2,1);S6:=SMA(C,6,1);DK:=2*(S2-S6);STICKLINE(DK>0,RC,RC+DK,0,1),COLOR0000AA;STICKLINE(DK<0,RC,RC+DK,0,1),COLOR00AA00;AP1:=REF(C,P)=HHV(C,2*P+1);BB1:=FILTER(AP1,P);CC1:=BACKSET(BB1,P+1);DD1:=FILTER(CC1,P);{高点}AP2:=REF(C,P)=LLV(C,2*P+1);BB2:=FILTER(AP2,P);CC2:=BACKSET(BB2,P+1);DD2:=FILTER(CC2,P);{低点}上:=REF(C,BARSLAST(DD1)),COLORFF00FF,NODRAW;下:=REF(C,BARSLAST(DD2)),COLOR00FF00,NODRAW;相对能量:(C-下)/(上-下)*100,COLORYELLOW,NODRAW;R11:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);S11:=R11>REF(R11,1);压力线:DRAWLINE(DD1,C,S11,C,1),COLOR00FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);U11:=T11>REF(T11,1);支撑线:DRAWLINE(DD2,C,U11,C,1),COLOR00FFFF;STICKLINE(C>0,下,下,1,0),COLOR00FF00;STICKLINE(C>0,上,上,1,0),COLORFF00FF;DRAWNUMBER(ISLASTBAR,压力线,压力线),COLOR00FF00; DRAWNUMBER(ISLASTBAR,支撑线,支撑线),COLOR00FFFF;R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2; DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;均价A:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;{CONST(IF(时间,HHV(H,0),REF(HHV(H,0),N))),COLOR000066,DOTLINE; CONST(IF(时间,LLV(L,0),REF(LLV(L,0),N))),COLOR006600,DOTLINE; CONST(IF(N,LLV(L,1),REF(LLV(L,0),N))),COLOR888888;CONST(IF(N,HHV(L,1),REF(HHV(L,0),N))),COLOR888888;}{涨停2}AA:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AA+1);VV:=REF(HHV(V,0),AA+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF;DRAWICON(涨停2,RC-0.06,13);{开量冲板}资金:=C*IF(PERIOD=0 AND MINUTE=31,VOL,0),COLORSTICK,NODRAW;{√}冲板线:=(CAPITAL/100)*1/20,COLORCYAN,LINETHICK1,NODRAW;单量必板线:=资金>1000;{分时图单量超1000万资金};单量冲板线:=资金>冲板线AND 资金<1000;{分时图单量超500万资金}; DRAWICON(单量必板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC+0.03,31);{1000万处画仙人指} DRAWICON(单量冲板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC-0.03,23);{500万处画十字星,以示警戒};。

通达信MACD背离金叉提示公式源代码

通达信MACD背离金叉提示公式源代码

通达信MACD背离金叉提示公式源代码展开全文DRAWTEXT_FIX(1,0.05,0.0,0,'顶背离绿线跌,底背离红线涨'),COLOR00FFFF,LINETHICK1;DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离, 0.25,'三全项'),COLOR0000FF,LINETHICK2;。

通达信MACD分时指标公式

通达信MACD分时指标公式

通达信MACD分时指标公式DRAWGBK(C&gt;0,RGB(50,60,250),RGB(17,21,89),0,'11',0);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORRED;中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备买入:STICKLINE(趋势线&lt;11,趋势线,11,5,0),COLORYELLOW;AA:=(趋势线&lt;11) AND FILTER((趋势线&lt;=11),15) AND C&lt;中线;BB0:=REF(趋势线,1)&lt;11 AND CROSS(趋势线,11) AND C&lt;中线;BB1:=REF(趋势线,1)&lt;11 AND REF(趋势线,1)&gt;6 AND CROSS(趋势线,11);BB2:=REF(趋势线,1)&lt;6 AND REF(趋势线,1)&gt;3 AND CROSS(趋势线,6);BB3:=REF(趋势线,1)&lt;3 AND REF(趋势线,1)&gt;1 AND CROSS(趋势线,3);BB4:=REF(趋势线,1)&lt;1 AND REF(趋势线,1)&gt;0 ANDCROSS(趋势线,1);BB5:=REF(趋势线,1)&lt;0 AND CROSS(趋势线,0);BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;下单买入:STICKLINE(BB=1 AND C&lt;中线,11,50,5,0),COLORRED;DRAWICON(BB=1 AND C&lt;中线,55,1);DRAWTEXT(BB0,60,'★买'),COLORRED;DRAWTEXT(AA,16,'准备买入'),COLORYELLOW;准备卖出:STICKLINE(趋势线&gt;89,趋势线,89,5,0),COLORWHITE;CC:=(趋势线&gt;89) AND FILTER((趋势线&gt;89),15) AND C&gt;中线;DD0:=REF(趋势线,1)&gt;89 AND CROSS(89,趋势线) ANDC&gt;中线;DD1:=REF(趋势线,1)&gt;89 AND REF(趋势线,1)&lt;94 AND CROSS(89,趋势线);DD2:=REF(趋势线,1)&gt;94 AND REF(趋势线,1)&lt;97 AND CROSS(94,趋势线);DD3:=REF(趋势线,1)&gt;97 AND REF(趋势线,1)&gt;99 AND CROSS(97,趋势线);DD4:=REF(趋势线,1)&gt;99 AND REF(趋势线,1)&lt;100 AND CROSS(99,趋势线);DD5:=REF(趋势线,1)&gt;100 AND CROSS(100,趋势线);DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;下单卖出:STICKLINE(DD=1 AND C&gt;中线,89,50,5,0),COLORGREEN;DRAWICON(DD=1 AND C&gt;中线,45,2);DRAWTEXT(DD0,40,'★卖'),COLORGREEN; DRAWTEXT (CC,84,'准备卖出'),COLORWHITE; 顶:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT,COLORWHITE; DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN; DRAWTEXT(ISLASTBAR,底,'底'),COLORRED; DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE; {上出下买+三背}A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:IF(MA(CLOSE,17)&lt;B,B,MA(CLOSE,17)),COLORFF00FF; 操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF;PM:MA(C,5),COLORWHITE;IF(PM&gt; REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM&lt;REF(PM,1),PM,DRAWNULL),COLORFF9900;S:=(PM&gt; 操作线);DD11:=分水岭&lt;REF(分水岭,1);IF(DD11,分水岭,DRAWNULL),COLOR00FF00;IF(S,分水岭,DRAWNULL),COLOR00FF00;DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{买入红箭头}A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));B1:=REF(C,A1+1)&gt; C ANDREF("MACD.DIF",A1+1)&lt;"MACD.DIF" ANDCROSS("MACD.DIF","MACD.DEA");DRAWTEXT(B1&gt; 0,L-0.02,'MACD底背离'),COLOR00FFFF;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)&gt; C AND REF("KDJ.K",A2+1)&lt;"KDJ.K" AND CROSS("KDJ.K","KDJ.D");DRAWTEXT(B2,L-0.10,'KDJ底背离'),COLORFF00FF;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)&gt; C ANDREF("RSI.RSI1",A3+1)&lt;"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");DRAWTEXT(B3&gt; 0,L-0.18,'RSI底背离'),COLOR0000FF;{RSI 底背离}C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));D1:=REF(C,C1+1)&lt;C AND REF("MACD.DIF",C1+1)&gt; "MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");DRAWTEXT(D1&gt; 0,H+0.16,'MACD顶背离'),COLOR00FF00;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)&lt;C AND REF("KDJ.K",C2+1)&gt; "KDJ.K" AND CROSS("KDJ.D","KDJ.K");DRAWTEXT(D2&gt; 0,H+0.08,'KDJ顶背离'),COLORFFFFCC;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)&lt;C AND REF("RSI.RSI1",C3+1)&gt; "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");DRAWTEXT(D3&gt; 0,H+0.04,'RSI顶背离'),COLORFF9900;{RSI顶背离};。

通达信指标公式源码优化MACD主图指标

通达信指标公式源码优化MACD主图指标

通达信指标公式源码优化MACD主图指标{MACD主图}ZIF:=EMA(C,12)-EMA(C,26);ZEA:=EMA(ZIF,9);ZBC:=2*(ZIF-ZEA);ZJS:=1.25*ZIF-0.25*ZEA;ZXH:=(ZJS*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORWHITE;ZPH:=(ZIF*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORYELLOW;ZQS:=(ZEA*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORCYAN;ZNX:=(ZXH+ZQS)/2,COLORMAGENTA;信号:ZXH,COLORFFFFFF,LINETHICK1;平滑:ZPH,COLOR00FFFF,LINETHICK1;牛熊:ZNX,COLORFF00FF,COLORGREEN,LINETHICK2;IF(牛熊>=REF(牛熊,1),牛熊,DRAWNULL),COLOREE00EE,LINETHICK2;趋势:ZQS,COLORFFFF00,LINETHICK1;DRAWKLINE(H,O,L,C);M3A:=MA(CLOSE,3);M13:=MA(CLOSE,13);M34:=MA(CLOSE,34);{生命线:SMA(C,21,1),COLORGREEN,LINETHICK1;}{魔鬼线:MA(CLOSE,321),LINETHICK2,COLORWHITE;}AAAAA:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));BBBBB:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<BBBBB,BBBBB,MA(CLOSE,17)),COLORYELL OW,LINETHICK2;操作线:=分水岭-(EMA(C,6)-分水岭),COLORF0F000,LINETHICK1;STICKLINE(M3A>=M13 AND M34>=REF(M34,1) ,H ,L ,0 ,0 ),COLORRED;{STICKLINE(M3A>=M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,0 ),COLORRED;STICKLINE(M3A>=M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,1 ),COLORRED;}STICKLINE(M3A<M13 AND M34>=REF(M34,1) ,H ,L ,0 ,0 ),COLORFFBB00;STICKLINE(M3A<M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,3 ,0 ),COLORFFBB00;STICKLINE(M3A<M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,3 ,1 ),COLORFFBB00;STICKLINE(M3A<M13 ANDM34<REF(M34,1) ,H ,L ,0 ,0 ),COLORFF0000;STICKLINE(M3A<M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,0 ),COLORFF0000;STICKLINE(M3A<M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,1 ),COLORFF0000;STICKLINE(M3A>=M13 AND M34<REF(M34,1) ,H ,L ,0 ,0 ),COLORFF00FF;STICKLINE(M3A>=M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,3 ,0 ),COLORFF00FF;STICKLINE(M3A>=M13 AND M34<REF(M34,1) AND C<O ,O ,C ,3 ,1 ),COLORFF00FF;X00:=(C+H+L)/3;X01:=IFF(CURRBARSCOUNT>1,XMA(X00,3),0.740524*X00+ 0.35541*REF(X00,1)-0.0316004*REF(X00,2)-0.0374119*REF(X00,3)-0.0218805*REF(X00,4)-0.00386503*REF(X00,5)-0.00102704*REF(X00,6)-0.000131447*REF(X00,7)-0.0000169351*REF(X00,8));X02:=IFF(CURRBARSCOUNT>1,XMA(X01,3),0.740524*X01+ 0.35541*REF(X01,1)-0.0316004*REF(X01,2)-0.0374119*REF(X01,3)-0.0218805*REF(X01,4)-0.00386503*REF(X01,5)-0.00102704*REF(X01,6)-0.000131447*REF(X01,7)-0.0000169351*REF(X01,8));X03:=IFF(CURRBARSCOUNT>1,XMA(X02,3),0.740524*X02+ 0.35541*REF(X02,1)-0.0316004*REF(X02,2)-0.0374119*REF(X02,3)-0.0218805*REF(X02,4)-0.00386503*REF(X02,5)-0.00102704*REF(X02,6)-0.000131447*REF(X02,7)-0.0000169351*REF(X02,8));X04:=IFF(CURRBARSCOUNT>1,XMA(X03,3),0.740524*X03+ 0.35541*REF(X03,1)-0.0316004*REF(X03,2)-0.0374119*REF(X03,3)-0.0218805*REF(X03,4)-0.000131447*REF(X03,7)-0.0000169351*REF(X03,8));X05:=IFF(CURRBARSCOUNT>1,XMA(X04,3),0.740524*X04+ 0.35541*REF(X04,1)-0.0316004*REF(X04,2)-0.0374119*REF(X04,3)-0.0218805*REF(X04,4)-0.00386503*REF(X04,5)-0.00102704*REF(X04,6)-0.000131447*REF(X04,7)-0.0000169351*REF(X04,8));X06:=IFF(CURRBARSCOUNT>1,XMA(X05,3),0.740524*X05+ 0.35541*REF(X05,1)-0.0316004*REF(X05,2)-0.0374119*REF(X05,3)-0.0218805*REF(X05,4)-0.00386503*REF(X05,5)-0.00102704*REF(X05,6)-0.000131447*REF(X05,7)-0.0000169351*REF(X05,8));X07:=IFF(CURRBARSCOUNT>1,XMA(X06,3),0.740524*X06+ 0.35541*REF(X06,1)-0.0316004*REF(X06,2)-0.0374119*REF(X06,3)-0.0218805*REF(X06,4)-0.00386503*REF(X06,5)-0.00102704*REF(X06,6)-0.000131447*REF(X06,7)-0.0000169351*REF(X06,8));X08:=IFF(CURRBARSCOUNT>1,XMA(X07,3),0.740524*X07+ 0.35541*REF(X07,1)-0.0316004*REF(X07,2)-0.0374119*REF(X07,3)-0.0218805*REF(X07,4)-0.00386503*REF(X07,5)-0.00102704*REF(X07,6)-0.000131447*REF(X07,7)-0.0000169351*REF(X07,8));X09:=IFF(CURRBARSCOUNT>1,XMA(X08,3),0.740524*X08+ 0.35541*REF(X08,1)-0.0316004*REF(X08,2)-0.0374119*REF(X08,3)-0.0218805*REF(X08,4)-0.00386503*REF(X08,5)-0.00102704*REF(X08,6)-0.000131447*REF(X08,7)-0.0000169351*REF(X08,8));X10:=IFF(CURRBARSCOUNT>1,XMA(X09,3),0.740524*X09+ 0.35541*REF(X09,1)-0.0316004*REF(X09,2)-0.0374119*REF(X09,3)-0.0218805*REF(X09,4)-0.000131447*REF(X09,7)-0.0000169351*REF(X09,8));X11:=IFF(CURRBARSCOUNT>1,XMA(X10,3),0.740524*X10+ 0.35541*REF(X10,1)-0.0316004*REF(X10,2)-0.0374119*REF(X10,3)-0.0218805*REF(X10,4)-0.00386503*REF(X10,5)-0.00102704*REF(X10,6)-0.000131447*REF(X10,7)-0.0000169351*REF(X10,8));X12:=IFF(CURRBARSCOUNT>1,XMA(X11,3),0.740524*X11+ 0.35541*REF(X11,1)-0.0316004*REF(X11,2)-0.0374119*REF(X11,3)-0.0218805*REF(X11,4)-0.00386503*REF(X11,5)-0.00102704*REF(X11,6)-0.000131447*REF(X11,7)-0.0000169351*REF(X11,8));X13:=IFF(CURRBARSCOUNT>1,XMA(X12,3),0.740524*X12+ 0.35541*REF(X12,1)-0.0316004*REF(X12,2)-0.0374119*REF(X12,3)-0.0218805*REF(X12,4)-0.00386503*REF(X12,5)-0.00102704*REF(X12,6)-0.000131447*REF(X12,7)-0.0000169351*REF(X12,8));X14:=IFF(CURRBARSCOUNT>1,XMA(X13,3),0.740524*X13+ 0.35541*REF(X13,1)-0.0316004*REF(X13,2)-0.0374119*REF(X13,3)-0.0218805*REF(X13,4)-0.00386503*REF(X13,5)-0.00102704*REF(X13,6)-0.000131447*REF(X13,7)-0.0000169351*REF(X13,8));X15:=IFF(CURRBARSCOUNT>1,XMA(X14,3),0.740524*X14+ 0.35541*REF(X14,1)-0.0316004*REF(X14,2)-0.0374119*REF(X14,3)-0.0218805*REF(X14,4)-0.00386503*REF(X14,5)-0.00102704*REF(X14,6)-0.000131447*REF(X14,7)-0.0000169351*REF(X14,8));X16:=IFF(CURRBARSCOUNT>1,XMA(X15,3),0.740524*X15+ 0.35541*REF(X15,1)-0.0316004*REF(X15,2)-0.0374119*REF(X15,3)-0.0218805*REF(X15,4)-0.000131447*REF(X15,7)-0.0000169351*REF(X15,8));X17:=IFF(CURRBARSCOUNT>1,XMA(X16,3),0.740524*X16+ 0.35541*REF(X16,1)-0.0316004*REF(X16,2)-0.0374119*REF(X16,3)-0.0218805*REF(X16,4)-0.00386503*REF(X16,5)-0.00102704*REF(X16,6)-0.000131447*REF(X16,7)-0.0000169351*REF(X16,8));X18:=IFF(CURRBARSCOUNT>1,XMA(X17,3),0.740524*X17+ 0.35541*REF(X17,1)-0.0316004*REF(X17,2)-0.0374119*REF(X17,3)-0.0218805*REF(X17,4)-0.00386503*REF(X17,5)-0.00102704*REF(X17,6)-0.000131447*REF(X17,7)-0.0000169351*REF(X17,8));X19:=IFF(CURRBARSCOUNT>1,XMA(X18,3),0.740524*X18+ 0.35541*REF(X18,1)-0.0316004*REF(X18,2)-0.0374119*REF(X18,3)-0.0218805*REF(X18,4)-0.00386503*REF(X18,5)-0.00102704*REF(X18,6)-0.000131447*REF(X18,7)-0.0000169351*REF(X18,8));X20:=IFF(CURRBARSCOUNT>1,XMA(X19,3),0.740524*X19+ 0.35541*REF(X19,1)-0.0316004*REF(X19,2)-0.0374119*REF(X19,3)-0.0218805*REF(X19,4)-0.00386503*REF(X19,5)-0.00102704*REF(X19,6)-0.000131447*REF(X19,7)-0.0000169351*REF(X19,8));X21:=IFF(CURRBARSCOUNT>1,XMA(X20,3),0.740524*X20+ 0.35541*REF(X20,1)-0.0316004*REF(X20,2)-0.0374119*REF(X20,3)-0.0218805*REF(X20,4)-0.00386503*REF(X20,5)-0.00102704*REF(X20,6)-0.000131447*REF(X20,7)-0.0000169351*REF(X20,8));X22:=IFF(CURRBARSCOUNT>1,XMA(X21,3),0.740524*X21+ 0.35541*REF(X21,1)-0.0316004*REF(X21,2)-0.0374119*REF(X21,3)-0.0218805*REF(X21,4)-0.000131447*REF(X21,7)-0.0000169351*REF(X21,8));X23:=IFF(CURRBARSCOUNT>1,XMA(X22,3),0.740524*X22+ 0.35541*REF(X22,1)-0.0316004*REF(X22,2)-0.0374119*REF(X22,3)-0.0218805*REF(X22,4)-0.00386503*REF(X22,5)-0.00102704*REF(X22,6)-0.000131447*REF(X22,7)-0.0000169351*REF(X22,8));X24:=IFF(CURRBARSCOUNT>1,XMA(X23,3),0.740524*X23+ 0.35541*REF(X23,1)-0.0316004*REF(X23,2)-0.0374119*REF(X23,3)-0.0218805*REF(X23,4)-0.00386503*REF(X23,5)-0.00102704*REF(X23,6)-0.000131447*REF(X23,7)-0.0000169351*REF(X23,8));X25:=IFF(CURRBARSCOUNT>1,XMA(X24,3),0.740524*X24+ 0.35541*REF(X24,1)-0.0316004*REF(X24,2)-0.0374119*REF(X24,3)-0.0218805*REF(X24,4)-0.00386503*REF(X24,5)-0.00102704*REF(X24,6)-0.000131447*REF(X24,7)-0.0000169351*REF(X24,8));X26:=IFF(CURRBARSCOUNT>1,XMA(X25,3),0.740524*X25+ 0.35541*REF(X25,1)-0.0316004*REF(X25,2)-0.0374119*REF(X25,3)-0.0218805*REF(X25,4)-0.00386503*REF(X25,5)-0.00102704*REF(X25,6)-0.000131447*REF(X25,7)-0.0000169351*REF(X25,8));X27:=IFF(CURRBARSCOUNT>1,XMA(X26,3),0.740524*X26+ 0.35541*REF(X26,1)-0.0316004*REF(X26,2)-0.0374119*REF(X26,3)-0.0218805*REF(X26,4)-0.00386503*REF(X26,5)-0.00102704*REF(X26,6)-0.000131447*REF(X26,7)-0.0000169351*REF(X26,8));X28:=IFF(CURRBARSCOUNT>1,XMA(X27,3),0.740524*X27+ 0.35541*REF(X27,1)-0.0316004*REF(X27,2)-0.0374119*REF(X27,3)-0.0218805*REF(X27,4)-0.000131447*REF(X27,7)-0.0000169351*REF(X27,8));X29:=IFF(CURRBARSCOUNT>1,XMA(X28,3),0.740524*X28+ 0.35541*REF(X28,1)-0.0316004*REF(X28,2)-0.0374119*REF(X28,3)-0.0218805*REF(X28,4)-0.00386503*REF(X28,5)-0.00102704*REF(X28,6)-0.000131447*REF(X28,7)-0.0000169351*REF(X28,8));X30:=IFF(CURRBARSCOUNT>1,XMA(X29,3),0.740524*X29+ 0.35541*REF(X29,1)-0.0316004*REF(X29,2)-0.0374119*REF(X29,3)-0.0218805*REF(X29,4)-0.00386503*REF(X29,5)-0.00102704*REF(X29,6)-0.000131447*REF(X29,7)-0.0000169351*REF(X29,8));X31:=IFF(CURRBARSCOUNT>1,XMA(X30,3),0.740524*X30+ 0.35541*REF(X30,1)-0.0316004*REF(X30,2)-0.0374119*REF(X30,3)-0.0218805*REF(X30,4)-0.00386503*REF(X30,5)-0.00102704*REF(X30,6)-0.000131447*REF(X30,7)-0.0000169351*REF(X30,8));X32:=IFF(CURRBARSCOUNT>1,XMA(X31,3),0.740524*X31+ 0.35541*REF(X31,1)-0.0316004*REF(X31,2)-0.0374119*REF(X31,3)-0.0218805*REF(X31,4)-0.00386503*REF(X31,5)-0.00102704*REF(X31,6)-0.000131447*REF(X31,7)-0.0000169351*REF(X31,8));X33:=IFF(CURRBARSCOUNT>1,XMA(X32,3),0.740524*X32+ 0.35541*REF(X32,1)-0.0316004*REF(X32,2)-0.0374119*REF(X32,3)-0.0218805*REF(X32,4)-0.00386503*REF(X32,5)-0.00102704*REF(X32,6)-0.000131447*REF(X32,7)-0.0000169351*REF(X32,8));X34:=IFF(CURRBARSCOUNT>1,XMA(X33,3),0.740524*X33+ 0.35541*REF(X33,1)-0.0316004*REF(X33,2)-0.0374119*REF(X33,3)-0.0218805*REF(X33,4)-0.000131447*REF(X33,7)-0.0000169351*REF(X33,8));X35:=IFF(CURRBARSCOUNT>1,XMA(X34,3),0.740524*X34+ 0.35541*REF(X34,1)-0.0316004*REF(X34,2)-0.0374119*REF(X34,3)-0.0218805*REF(X34,4)-0.00386503*REF(X34,5)-0.00102704*REF(X34,6)-0.000131447*REF(X34,7)-0.0000169351*REF(X34,8));X36:=IFF(CURRBARSCOUNT>1,XMA(X35,3),0.740524*X35+ 0.35541*REF(X35,1)-0.0316004*REF(X35,2)-0.0374119*REF(X35,3)-0.0218805*REF(X35,4)-0.00386503*REF(X35,5)-0.00102704*REF(X35,6)-0.000131447*REF(X35,7)-0.0000169351*REF(X35,8));X37:=IFF(CURRBARSCOUNT>1,XMA(X36,3),0.740524*X36+ 0.35541*REF(X36,1)-0.0316004*REF(X36,2)-0.0374119*REF(X36,3)-0.0218805*REF(X36,4)-0.00386503*REF(X36,5)-0.00102704*REF(X36,6)-0.000131447*REF(X36,7)-0.0000169351*REF(X36,8));X38:=IFF(CURRBARSCOUNT>1,XMA(X37,3),0.740524*X37+ 0.35541*REF(X37,1)-0.0316004*REF(X37,2)-0.0374119*REF(X37,3)-0.0218805*REF(X37,4)-0.00386503*REF(X37,5)-0.00102704*REF(X37,6)-0.000131447*REF(X37,7)-0.0000169351*REF(X37,8));X39:=IFF(CURRBARSCOUNT>1,XMA(X38,3),0.740524*X38+ 0.35541*REF(X38,1)-0.0316004*REF(X38,2)-0.0374119*REF(X38,3)-0.0218805*REF(X38,4)-0.00386503*REF(X38,5)-0.00102704*REF(X38,6)-0.000131447*REF(X38,7)-0.0000169351*REF(X38,8));X40:=IFF(CURRBARSCOUNT>1,XMA(X39,3),0.740524*X39+ 0.35541*REF(X39,1)-0.0316004*REF(X39,2)-0.0374119*REF(X39,3)-0.0218805*REF(X39,4)-0.000131447*REF(X39,7)-0.0000169351*REF(X39,8));X41:=IFF(CURRBARSCOUNT>1,XMA(X40,3),0.740524*X40+ 0.35541*REF(X40,1)-0.0316004*REF(X40,2)-0.0374119*REF(X40,3)-0.0218805*REF(X40,4)-0.00386503*REF(X40,5)-0.00102704*REF(X40,6)-0.000131447*REF(X40,7)-0.0000169351*REF(X40,8));X42:=IFF(CURRBARSCOUNT>1,XMA(X41,3),0.740524*X41+ 0.35541*REF(X41,1)-0.0316004*REF(X41,2)-0.0374119*REF(X41,3)-0.0218805*REF(X41,4)-0.00386503*REF(X41,5)-0.00102704*REF(X41,6)-0.000131447*REF(X41,7)-0.0000169351*REF(X41,8));X43:=IFF(CURRBARSCOUNT>1,XMA(X42,3),0.740524*X42+ 0.35541*REF(X42,1)-0.0316004*REF(X42,2)-0.0374119*REF(X42,3)-0.0218805*REF(X42,4)-0.00386503*REF(X42,5)-0.00102704*REF(X42,6)-0.000131447*REF(X42,7)-0.0000169351*REF(X42,8));X44:=IFF(CURRBARSCOUNT>1,XMA(X43,3),0.740524*X43+ 0.35541*REF(X43,1)-0.0316004*REF(X43,2)-0.0374119*REF(X43,3)-0.0218805*REF(X43,4)-0.00386503*REF(X43,5)-0.00102704*REF(X43,6)-0.000131447*REF(X43,7)-0.0000169351*REF(X43,8));X45:=IFF(CURRBARSCOUNT>1,XMA(X44,3),0.740524*X44+ 0.35541*REF(X44,1)-0.0316004*REF(X44,2)-0.0374119*REF(X44,3)-0.0218805*REF(X44,4)-0.00386503*REF(X44,5)-0.00102704*REF(X44,6)-0.000131447*REF(X44,7)-0.0000169351*REF(X44,8));X46:=IFF(CURRBARSCOUNT>1,XMA(X45,3),0.740524*X45+ 0.35541*REF(X45,1)-0.0316004*REF(X45,2)-0.0374119*REF(X45,3)-0.0218805*REF(X45,4)-0.000131447*REF(X45,7)-0.0000169351*REF(X45,8));X47:=IFF(CURRBARSCOUNT>1,XMA(X46,3),0.740524*X46+ 0.35541*REF(X46,1)-0.0316004*REF(X46,2)-0.0374119*REF(X46,3)-0.0218805*REF(X46,4)-0.00386503*REF(X46,5)-0.00102704*REF(X46,6)-0.000131447*REF(X46,7)-0.0000169351*REF(X46,8));X48:=IFF(CURRBARSCOUNT>1,XMA(X47,3),0.740524*X47+ 0.35541*REF(X47,1)-0.0316004*REF(X47,2)-0.0374119*REF(X47,3)-0.0218805*REF(X47,4)-0.00386503*REF(X47,5)-0.00102704*REF(X47,6)-0.000131447*REF(X47,7)-0.0000169351*REF(X47,8));X49:=IFF(CURRBARSCOUNT>1,XMA(X48,3),0.740524*X48+ 0.35541*REF(X48,1)-0.0316004*REF(X48,2)-0.0374119*REF(X48,3)-0.0218805*REF(X48,4)-0.00386503*REF(X48,5)-0.00102704*REF(X48,6)-0.000131447*REF(X48,7)-0.0000169351*REF(X48,8));X50:=IFF(CURRBARSCOUNT>1,XMA(X49,3),0.740524*X49+ 0.35541*REF(X49,1)-0.0316004*REF(X49,2)-0.0374119*REF(X49,3)-0.0218805*REF(X49,4)-0.00386503*REF(X49,5)-0.00102704*REF(X49,6)-0.000131447*REF(X49,7)-0.0000169351*REF(X49,8));X51:=IFF(CURRBARSCOUNT>1,XMA(X50,3),0.740524*X50+ 0.35541*REF(X50,1)-0.0316004*REF(X50,2)-0.0374119*REF(X50,3)-0.0218805*REF(X50,4)-0.00386503*REF(X50,5)-0.00102704*REF(X50,6)-0.000131447*REF(X50,7)-0.0000169351*REF(X50,8));X52:=IFF(CURRBARSCOUNT>1,XMA(X51,3),0.740524*X51+ 0.35541*REF(X51,1)-0.0316004*REF(X51,2)-0.0374119*REF(X51,3)-0.0218805*REF(X51,4)-0.000131447*REF(X51,7)-0.0000169351*REF(X51,8));X53:=IFF(CURRBARSCOUNT>1,XMA(X52,3),0.740524*X52+ 0.35541*REF(X52,1)-0.0316004*REF(X52,2)-0.0374119*REF(X52,3)-0.0218805*REF(X52,4)-0.00386503*REF(X52,5)-0.00102704*REF(X52,6)-0.000131447*REF(X52,7)-0.0000169351*REF(X52,8));X54:=IFF(CURRBARSCOUNT>1,XMA(X53,3),0.740524*X53+ 0.35541*REF(X53,1)-0.0316004*REF(X53,2)-0.0374119*REF(X53,3)-0.0218805*REF(X53,4)-0.00386503*REF(X53,5)-0.00102704*REF(X53,6)-0.000131447*REF(X53,7)-0.0000169351*REF(X53,8));X55:=IFF(CURRBARSCOUNT>1,XMA(X54,3),0.740524*X54+ 0.35541*REF(X54,1)-0.0316004*REF(X54,2)-0.0374119*REF(X54,3)-0.0218805*REF(X54,4)-0.00386503*REF(X54,5)-0.00102704*REF(X54,6)-0.000131447*REF(X54,7)-0.0000169351*REF(X54,8));X56:=IFF(CURRBARSCOUNT>1,XMA(X55,3),0.740524*X55+ 0.35541*REF(X55,1)-0.0316004*REF(X55,2)-0.0374119*REF(X55,3)-0.0218805*REF(X55,4)-0.00386503*REF(X55,5)-0.00102704*REF(X55,6)-0.000131447*REF(X55,7)-0.0000169351*REF(X55,8));X57:=IFF(CURRBARSCOUNT>1,XMA(X56,3),0.740524*X56+ 0.35541*REF(X56,1)-0.0316004*REF(X56,2)-0.0374119*REF(X56,3)-0.0218805*REF(X56,4)-0.00386503*REF(X56,5)-0.00102704*REF(X56,6)-0.000131447*REF(X56,7)-0.0000169351*REF(X56,8));X58:=IFF(CURRBARSCOUNT>1,XMA(X57,3),0.740524*X57+ 0.35541*REF(X57,1)-0.0316004*REF(X57,2)-0.0374119*REF(X57,3)-0.0218805*REF(X57,4)-0.000131447*REF(X57,7)-0.0000169351*REF(X57,8));X59:=IFF(CURRBARSCOUNT>1,XMA(X58,3),0.740524*X58+ 0.35541*REF(X58,1)-0.0316004*REF(X58,2)-0.0374119*REF(X58,3)-0.0218805*REF(X58,4)-0.00386503*REF(X58,5)-0.00102704*REF(X58,6)-0.000131447*REF(X58,7)-0.0000169351*REF(X58,8));X60:=IFF(CURRBARSCOUNT>1,XMA(X59,3),0.740524*X59+ 0.35541*REF(X59,1)-0.0316004*REF(X59,2)-0.0374119*REF(X59,3)-0.0218805*REF(X59,4)-0.00386503*REF(X59,5)-0.00102704*REF(X59,6)-0.000131447*REF(X59,7)-0.0000169351*REF(X59,8));X61:=IFF(CURRBARSCOUNT>1,XMA(X60,3),0.740524*X60+ 0.35541*REF(X60,1)-0.0316004*REF(X60,2)-0.0374119*REF(X60,3)-0.0218805*REF(X60,4)-0.00386503*REF(X60,5)-0.00102704*REF(X60,6)-0.000131447*REF(X60,7)-0.0000169351*REF(X60,8));X62:=IFF(CURRBARSCOUNT>1,XMA(X61,3),0.740524*X61+ 0.35541*REF(X61,1)-0.0316004*REF(X61,2)-0.0374119*REF(X61,3)-0.0218805*REF(X61,4)-0.00386503*REF(X61,5)-0.00102704*REF(X61,6)-0.000131447*REF(X61,7)-0.0000169351*REF(X61,8));X63:=IFF(CURRBARSCOUNT>1,XMA(X62,3),0.740524*X62+ 0.35541*REF(X62,1)-0.0316004*REF(X62,2)-0.0374119*REF(X62,3)-0.0218805*REF(X62,4)-0.00386503*REF(X62,5)-0.00102704*REF(X62,6)-0.000131447*REF(X62,7)-0.0000169351*REF(X62,8));X64:=IFF(CURRBARSCOUNT>1,XMA(X63,3),0.740524*X63+ 0.35541*REF(X63,1)-0.0316004*REF(X63,2)-0.0374119*REF(X63,3)-0.0218805*REF(X63,4)-0.000131447*REF(X63,7)-0.0000169351*REF(X63,8));X65:=IFF(CURRBARSCOUNT>1,XMA(X64,3),0.740524*X64+ 0.35541*REF(X64,1)-0.0316004*REF(X64,2)-0.0374119*REF(X64,3)-0.0218805*REF(X64,4)-0.00386503*REF(X64,5)-0.00102704*REF(X64,6)-0.000131447*REF(X64,7)-0.0000169351*REF(X64,8));X66:=IFF(CURRBARSCOUNT>1,XMA(X65,3),0.740524*X65+ 0.35541*REF(X65,1)-0.0316004*REF(X65,2)-0.0374119*REF(X65,3)-0.0218805*REF(X65,4)-0.00386503*REF(X65,5)-0.00102704*REF(X65,6)-0.000131447*REF(X65,7)-0.0000169351*REF(X65,8));X67:=IFF(CURRBARSCOUNT>1,XMA(X66,3),0.740524*X66+ 0.35541*REF(X66,1)-0.0316004*REF(X66,2)-0.0374119*REF(X66,3)-0.0218805*REF(X66,4)-0.00386503*REF(X66,5)-0.00102704*REF(X66,6)-0.000131447*REF(X66,7)-0.0000169351*REF(X66,8));X68:=IFF(CURRBARSCOUNT>1,XMA(X67,3),0.740524*X67+ 0.35541*REF(X67,1)-0.0316004*REF(X67,2)-0.0374119*REF(X67,3)-0.0218805*REF(X67,4)-0.00386503*REF(X67,5)-0.00102704*REF(X67,6)-0.000131447*REF(X67,7)-0.0000169351*REF(X67,8));X69:=IFF(CURRBARSCOUNT>1,XMA(X68,3),0.740524*X68+ 0.35541*REF(X68,1)-0.0316004*REF(X68,2)-0.0374119*REF(X68,3)-0.0218805*REF(X68,4)-0.00386503*REF(X68,5)-0.00102704*REF(X68,6)-0.000131447*REF(X68,7)-0.0000169351*REF(X68,8));X70:=IFF(CURRBARSCOUNT>1,XMA(X69,3),0.740524*X69+ 0.35541*REF(X69,1)-0.0316004*REF(X69,2)-0.0374119*REF(X69,3)-0.0218805*REF(X69,4)-0.000131447*REF(X69,7)-0.0000169351*REF(X69,8));X71:=IFF(CURRBARSCOUNT>1,XMA(X70,3),0.740524*X70+ 0.35541*REF(X70,1)-0.0316004*REF(X70,2)-0.0374119*REF(X70,3)-0.0218805*REF(X70,4)-0.00386503*REF(X70,5)-0.00102704*REF(X70,6)-0.000131447*REF(X70,7)-0.0000169351*REF(X70,8));X72:=IFF(CURRBARSCOUNT>1,XMA(X71,3),0.740524*X71+ 0.35541*REF(X71,1)-0.0316004*REF(X71,2)-0.0374119*REF(X71,3)-0.0218805*REF(X71,4)-0.00386503*REF(X71,5)-0.00102704*REF(X71,6)-0.000131447*REF(X71,7)-0.0000169351*REF(X71,8));X73:=IFF(CURRBARSCOUNT>1,XMA(X72,3),0.740524*X72+ 0.35541*REF(X72,1)-0.0316004*REF(X72,2)-0.0374119*REF(X72,3)-0.0218805*REF(X72,4)-0.00386503*REF(X72,5)-0.00102704*REF(X72,6)-0.000131447*REF(X72,7)-0.0000169351*REF(X72,8));X74:=IFF(CURRBARSCOUNT>1,XMA(X73,3),0.740524*X73+ 0.35541*REF(X73,1)-0.0316004*REF(X73,2)-0.0374119*REF(X73,3)-0.0218805*REF(X73,4)-0.00386503*REF(X73,5)-0.00102704*REF(X73,6)-0.000131447*REF(X73,7)-0.0000169351*REF(X73,8));X75:=IFF(CURRBARSCOUNT>1,XMA(X74,3),0.740524*X74+ 0.35541*REF(X74,1)-0.0316004*REF(X74,2)-0.0374119*REF(X74,3)-0.0218805*REF(X74,4)-0.00386503*REF(X74,5)-0.00102704*REF(X74,6)-0.000131447*REF(X74,7)-0.0000169351*REF(X74,8));X76:=IFF(CURRBARSCOUNT>1,XMA(X75,3),0.740524*X75+ 0.35541*REF(X75,1)-0.0316004*REF(X75,2)-0.0374119*REF(X75,3)-0.0218805*REF(X75,4)-0.000131447*REF(X75,7)-0.0000169351*REF(X75,8));X77:=IFF(CURRBARSCOUNT>1,XMA(X76,3),0.740524*X76+ 0.35541*REF(X76,1)-0.0316004*REF(X76,2)-0.0374119*REF(X76,3)-0.0218805*REF(X76,4)-0.00386503*REF(X76,5)-0.00102704*REF(X76,6)-0.000131447*REF(X76,7)-0.0000169351*REF(X76,8));X78:=IFF(CURRBARSCOUNT>1,XMA(X77,3),0.740524*X77+ 0.35541*REF(X77,1)-0.0316004*REF(X77,2)-0.0374119*REF(X77,3)-0.0218805*REF(X77,4)-0.00386503*REF(X77,5)-0.00102704*REF(X77,6)-0.000131447*REF(X77,7)-0.0000169351*REF(X77,8));X79:=IFF(CURRBARSCOUNT>1,XMA(X78,3),0.740524*X78+ 0.35541*REF(X78,1)-0.0316004*REF(X78,2)-0.0374119*REF(X78,3)-0.0218805*REF(X78,4)-0.00386503*REF(X78,5)-0.00102704*REF(X78,6)-0.000131447*REF(X78,7)-0.0000169351*REF(X78,8));X80:IFF(CURRBARSCOUNT>1,XMA(X79,3),0.740524*X79+0. 35541*REF(X79,1)-0.0316004*REF(X79,2)-0.0374119*REF(X79,3)-0.0218805*REF(X79,4)-0.00386503*REF(X79,5)-0.00102704*REF(X79,6)-0.000131447*REF(X79,7)-0.0000169351*REF(X79,8)),COLORYELLOW,DOTLINE;T:=(C+L+H)/3;SL:=((REF(T,1)*REF(V,1)+T*V)/(REF(V,1)+V));VV:=SL;Y911:=IFF(CURRBARSCOUNT=1, (XMA(VV,9)*9-MA(VV,8)+MA(VV,7) -MA(VV,6)+MA(VV,5) -MA(VV,4)+MA(VV,3) -MA(VV,2) +VV)/9,XMA(VV,9));Y912:=IFF(CURRBARSCOUNT=1, (XMA(Y911,9)*9-MA(Y911,8)+MA(Y911,7) -MA(Y911,6)+MA(Y911,5) -MA(Y911,4)+MA(Y911,3) -MA(Y911,2) +Y911)/9,XMA(Y911,9));Y913:=IFF(CURRBARSCOUNT=1, (XMA(Y912,9)*9-MA(Y912,8)+MA(Y912,7) -MA(Y912,6)+MA(Y912,5) -MA(Y912,4)+MA(Y912,3) -MA(Y912,2) +Y912)/9,XMA(Y912,9));{中期趋势:Y913,LINETHICK2,COLORGREEN;}HA:X80*1.05,POINTDOT,COLORYELLOW;HC:X80*1.10,POINTDOT,COLORYELLOW;LA:X80*0.95,POINTDOT,COLORYELLOW;LC:X80*0.90,POINTDOT,COLORYELLOW;Y291:=IFF(CURRBARSCOUNT=1,(XMA(VV,29)*29-MA(VV,28)+MA(VV,27)-MA(VV,26)+MA(VV,25)-MA(VV,24)+MA(VV,23)-MA(VV,22)+MA(VV,21)-MA(VV,20)+MA(VV,19)-MA(VV,18)+MA(VV,17)-MA(VV,16)+MA(VV,15)-MA(VV,14)+MA(VV,13)-MA(VV,12)+MA(VV,11) -MA(VV,10)+MA(VV,9) -MA(VV,8)+MA(VV,7) -MA(VV,6)+MA(VV,5) -MA(VV,4)+MA(VV,3) -MA(VV,2)+VV)/29,XMA(VV,29));Y292:=IFF(CURRBARSCOUNT=1,(XMA(Y291,29)*29-MA(Y291,28)+MA(Y291,27)-MA(Y291,26)+MA(Y291,25)-MA(Y291,24)+MA(Y291,23)-MA(Y291,22)+MA(Y291,21)-MA(Y291,20)+MA(Y291,19)-MA(Y291,18)+MA(Y291,17)-MA(Y291,16)+MA(Y291,15)-MA(Y291,14)+MA(Y291,13)-MA(Y291,12)+MA(Y291,11) -MA(Y291,10)+MA(Y291,9) -MA(Y291,8)+MA(Y291,7) -MA(Y291,6)+MA(Y291,5) -MA(Y291,4)+MA(Y291,3) -MA(Y291,2)+Y291)/29,XMA(Y291,29));Y293:=IFF(CURRBARSCOUNT=1,(XMA(Y292,29)*29-MA(Y292,28)+MA(Y292,27)-MA(Y292,26)+MA(Y292,25)-MA(Y292,24)+MA(Y292,23)-MA(Y292,22)+MA(Y292,21)-MA(Y292,20)+MA(Y292,19)-MA(Y292,18)+MA(Y292,17)-MA(Y292,16)+MA(Y292,15)-MA(Y292,14)+MA(Y292,13)-MA(Y292,12)+MA(Y292,11) -MA(Y292,10)+MA(Y292,9) -MA(Y292,8)+MA(Y292,7) -MA(Y292,6)+MA(Y292,5) -MA(Y292,4)+MA(Y292,3) -MA(Y292,2)+Y292)/29,XMA(Y292,29));{长期趋势:Y293,LINETHICK2,COLORGREEN;}IF(X80>=REF(X80,1),X80,DRAWNULL),COLORRED,LINETHICK 2;{IF(X80<REF(X80,1),X80,DRAWNULL),COLORGREEN,LINETHI CK2;}高险区1:=Y293*1.10,COLORLICYAN;高风区2:=Y293*1.125,COLORLICYAN;高风区3:Y293*1.150,COLORLICYAN;良机区1:=Y293*0.90,COLORLIBLUE;良机区2:=Y293*0.875,COLORLIBLUE;良机区3:Y293*0.85,COLORLIBLUE;风险提示:本指标公式仅作为知识分享,不构成任何投资建议,投资有风险,交易需谨慎。

通达信分时指标汇总(主图 源码 通达信

通达信分时指标汇总(主图 源码 通达信

做短线看盘分时指标的参考很重要,而通达信分时指标只有一个MACD指标,如何盘中即时更换分时技术指标?方法如下:1.找到安装目录里面T0002文件夹下的user文件,2.用记事本方式打开找到Zstzb=MACD这一项改为=AAA,(由上往下点大约到98行位置,如图1),3.将你准备用作分时指标的公式改为AA开头的公式名。

4.进入K线分析图用键盘输入AA即可跳出AA开头的公式(如图2)。

5.选择你要用作分时指标的公式点击进入改名为AAA保存(如图3-4),6.回到分时分析图点技术指标即可(如图5)。

7如需更换其它指标时直接键入AAA进入该公式修改为另外的公式名,再重复4,5,6项即可通达信分时指标汇总通达信分时指标(虎主力散户)虎: (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;主力:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,120)-0.0004,LINETHICK5,COLORMAGENTA;散户:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,200),LINETHICK5,COLORGREEN;DRAWICON(CROSS(EXPMA(虎,120)-0.0004,EXPMA(虎,200)),EXPMA(虎,200)*1,13); DRAWICON(CROSS(EXPMA(虎,200),EXPMA(虎,120)-0.0004),EXPMA(虎,200)*1,2);Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/Q2),1.03),0.02,6);STICKLINE(CROSS((C/Q2),1.03),0.02,0,4,0), , COLORYELLOW;通达信分时指标分时专用指标,55上红柱谨慎看多, 50下绿柱保持警惕,结合多(黄)空(绿)线,选择正确操作时段,按照图中提示关注,严格遵守操作纪律, 心态平衡投资顺利.希望大家能得到好的收益!Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);天:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/天),1.01),25,3);STICKLINE(CROSS((C/天),1.01),25,0,2,0), ,COLORYELLOW;VAR1:=REF(CLOSE,3.5);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;Q2:=(CLOSE-LLV(LOW, 21))/(HHV(HIGH, 21)-LLV(LOW, 21))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);Q8:=HHVBARS(HIGH, 50);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;快线: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66; 慢线:EMA(Q3, 3),COLORRED;DRAWBAND(快线,RGB(115,95,120),慢线,RGB(95,120,115));A:=VOL*CLOSE;B:=SUM(A,3.52)/SUM(VOL,3.82);B1:=EMA(B,13);主力线:(B-B1)*191/B+50,COLORMAGENTA;多头:3*Q3-2*Q4,COLORRED;VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;空头: SMA(VAR12,3,1),COLORGREEN;DRAWTEXT(CROSS(慢线, 多头) AND REF(多头,1)>80, REF(多头,3), '*顶'),COLORRED,LINETHICK5;●关注: DRAWTEXT(REF(CROSS(空头,慢线),25) AND 空头>1.005*慢线,慢线,'●关注'),COLORBLUE,LINETHICK1;★关注: DRAWTEXT(REF(CROSS(慢线,多头),82) AND 慢线>1.3*多头,多头,'★关注'),LINETHICK1;★追涨: DRAWTEXT(REF(CROSS(多头,慢线),1) AND 多头>1.3*慢线,慢线,'★追涨'),COLORRED,LINETHICK1;★抄底:IF(CROSS(多头,慢线) AND 快线>=REF(快线,1) AND 多头>=REF(多头,1) AND 慢线<38.2 AND 慢线>=REF(慢线,1) AND COUNT(REF(快线,1)=2,30,0),COLORMAGENTA;DRAWTEXT(CROSS(多头, 8) AND Q10<-13,20,'*大底'),COLORYELLOW,LINETHICK5; ★逃亡:IF(快线< REF(快线,1) AND 快线>61.8,70,100),COLORBLUE;50,POINTDOT,COLORWHITE;AZ1:=AMOUNT/VOL/100;AZ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;AZ3:=SUM(AMOUNT,40)/AZ1/100;AZ4:=SUM(AMOUNT,80)/AZ1/100;BZ1:=DMA(AZ2,VOL/AZ3);BZ2:=DMA(AZ2,VOL/AZ4);BZ3:=(CLOSE-BZ1)/BZ1*100;BZ4:=(CLOSE-BZ2)/BZ2*100;DRAWTEXT(ISLASTBAR AND C,93,' 冷眼分时专用指标'),COLOR00AAFF; DRAWTEXT(ISLASTBAR AND C,80,' 55上红柱谨慎看多'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,68,' 50下绿柱保持警惕'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,56,' 结合多(黄)空(绿)线'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,44,' 选择正确操作时段'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,32,' 按照图中提示关注'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,20,' 严格遵守操作纪律'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,8,' 心态平衡投资顺利'),COLOR00BBBB;STICKLINE(FILTER(C,60)>0,100,-0,0,0),COLORRED;STICKLINE(BZ4>0,50,50+13.82*BZ4,0,0),COLORYELLOW;STICKLINE(BZ3>0,50,50+13.82*BZ3,0,0),COLORRED;STICKLINE(BZ3<=0,50,50+13.82*BZ3,0,0),COLORGREEN;[通达信L-2] 动态买进通达信分时指标动态买进VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR5:=VAR1 + VAR2 + VAR3 + VAR4;VAR6:=IF(CURRBARSCOUNT,100 * VAR1/VAR5,0);VAR7:=IF(CURRBARSCOUNT,100 * VAR2/VAR5,0);VAR8:=IF(CURRBARSCOUNT,100 * VAR3/VAR5,0);VAR9:=IF(CURRBARSCOUNT,100 * VAR4/VAR5,0);机构买盘:VAR1,LINETHICK2,COLORFF55FF;机构卖盘:VAR2,LINETHICK2,COLORFFFF55;散户买盘:VAR3,COLOR5555FF;散户卖盘:VAR4,COLOR55FF55;自用分时(通达信分时指标副图、源码、贴图MA30:=EMA(CLOSE,30);{强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;}H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW; DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★卖'),COLORRED;{抛};日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR3:=(VAR1+VAR2)/2;VAR4:=EMA(VAR3,30);VAR5:=EMA(VAR3,60);VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5); DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));牵引线:VAR1,COLORYELLOW;强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;DRAWICON(趋势关注=1,EMA(VAR1,60),13);DRAWTEXT(量价关注=1,EMA(VAR1,60),'★'),COLORWHITE;通达信分时指标WW:3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,1),LINESTICK; 40;250;300;分时有庄(通达信分时指标源码VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘0;STICKLINE(VAR2>50 AND COST(85)0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)0,COLOR00FFFF,LINETHICK2;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;分时买卖图(通达信分时指标源码图中分时买卖图,能看懂分时均价线的那就跳过,对分时走势均价图没有一定的功力,最好不要用,此指标有未来慎用!欣赏下还行。

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