通达信综合箱体(主图 源码 附图)

合集下载

通达信综合箱体(主图 源码 附图)

通达信综合箱体(主图 源码 附图)

通达信综合箱体(主图源码附图){综合箱体主图}N:=(3.00,30.00,10.00);ST:=(CLOSE/OPEN-1)*100;ZF:=(C/REF(C,1)-1)*100;SX1:=ST>3 AND ST=HHV(ST,6);SX2:=ZF>3 AND ZF=HHV(ZF,6);SX3:=ZF>=9 AND CLOSE=HIGH;烧香:IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF,NODRAW;DYSJ:=BARSLAST(烧香);跟踪:IF(DYSJ<=13 ANDCOUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0),COLOR00FFFF,NODRAW;关注:IF(DYSJ>=4 ANDCOUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ)),COLORFFFFFF,NODRAW; ②:IF(关注=REF(L,DYSJ),REF(C,DYSJ),REF(L,DYSJ)),COLOR00FFFF,NODRAW; STICKLINE(跟踪,②,②,3,0),COLOR00FFFF;BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;BF2:=LOW<关注AND COUNT(LOW<关注,跟踪)=1;拜佛:IF(BF1 OR BF2,1,0),COLOR00FF00,NODRAW;{以下设置主图显示方式}STICKLINE(C>0,关注,关注,5,-1),COLORFFFFFF;支撑:STICKLINE(跟踪,关注,关注,3,0),COLORFF00FF;HHJSJDA:=(2.97*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;【箱顶】:PEAK(CLOSE,N,1)*0.98;【箱底】:TROUGH(CLOSE,N,1)*1.02;【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;{135均线战法}YY1:=C>MA(C,11) AND OPEN<MA(C,11);{一阳三线}YY3:=C>MA(C,33) AND OPEN<MA(C,33);YY5:=C>MA(C,55) AND OPEN<MA(C,55);DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'一阳三线'),COLORRED;A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'进'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;。

通达信黄金柱主图(源码)(附图) 通达信公式

通达信黄金柱主图(源码)(附图) 通达信公式
BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));
BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;
倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
ZJ:=AMOUNT/10000;{资金}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1OPEN ;
DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;
DRAWKLINE(H,O,L,C);
MA5:=MA(CLOSE,5),COLORWHITE;
MA10:=MA(CLOSE,10),COLORYELLOW;
MA30:=MA(CLOSE,30),COLORMAGENTA;
MA60:=MA(CLOSE,60),COLORGREEN;
MA120:=MA(CLOSE,120),COLORLIMAGENTA;
最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)

通达信主图指标2W主图(附源码)通达信主图指标2W主图(附源码)V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+1 5*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。

通达信公式指标源码综合箱体主图指标公式.docx

通达信公式指标源码综合箱体主图指标公式.docx

通达信傻买傻卖——综合箱体主图指标公式发综合箱体主图公式,配合汽枪猎杀副图公式使用有互相验证作用。

综合箱体-■主图买线:=EMA(C Z2);卖线:=EMA(SLOPE(C Z21)*20+C Z42);STICKLINE(买线 >=卖线,REFDATE(HHV(H Z0)Z DATE)Z REFDATE(LLV(L Z0)Z DATE),5Z0),COLOR000055;STICKLINE(买线 v 卖线Z REFDATE(HHV(H,0)Z DATE)Z REFDATE(LLV(L,0)Z DATE),5Z0),COLOR663300; DRAWNUMBER(ISLASTBAR, C,C),COLORMAGENTA;DRAWKLINE(HIGH,OPEN Z LOW,CLOSE);TY:=C;Al:=REF(TY,10)=HHV(TY,2*10+1);Bl:=FILTER(Al,10); Cl:=BACKSET(Bl,10+l);HD:二FILTER© JO);A2:=REF(TY z10)=LLV(TY,2*10+1);B2:=FILTER(A2z10); C2:=BACKSET(B2,10+l);LD:=FILTER(C2,10);前期高位:REF(H,BARSLAST(HD)), COLORLIRED丄INETHICK2;前期低位:REF(L,BARSLAST(LD)), COLORGREEN丄INETHICK2;MA10: = MA(C z10);MA20: = MA(C,20);MA60: = MA(C,60);VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL Z10),COLORYELLOW;VOL40:=MA(VOL,40)Z COLORFFOOFF ;量托:二VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托z L-0.012;S 托COLORWHITE;AAAI: = BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AAA1)=AAA1,1);CC1:=CROSS(C Z MA60) AND VOL>MA(VOL,5) AND(C-REF(C/l))/REF(C,l)*100>3;芙蓉出水:二BB AND CC1,COLOROOFFOO;DRAWTEXT(芙蓉出水z H+0.12;芙蓉出水'),COLORFFOOFF;STICKLINE(芙蓉出水,H Z L,0.5Z1)Z COLORFFOOFF;STICKLINE(芙蓉出水Q ,C,4;1),LINETHICK2,COLORFFOOFF;MAA1:=MA(CLOSE,5);MAA2:=MA(CLOSE,10);MAA3:=MA(CLOSE,30);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三: = MAA1>O AND MAA2>0 AND MAA3>0 AND MAAKC AND MAA2<C AND MAA3<C AND CLOSE>OPEN ;DRAWTEXT( 一穿三z L-0.012;穿三线jCOLORFFOOFF;C6:=REF(C Z1);涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),l,0);STICKLINE(涨停QPEN£LOSE20),COLORMAGENTA;STICKLINE(涨停z H,L,O z O)z COLORLIRED;N: = 10;T1:=CONST(HHVBARS(V,N));TO:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL), COLORCCOOCC;IF(CURRBARSCOUNT=T1+1,TOQRAWNULL),CIRCLEDOT,COLORCCOOCC;DRAWTEXTCISLASTBARJO;量能平台jCOLORCCOOCC;M: = 10;Q1:=CONST(REF(HHVBARS(V Z M),T1+1)+T1+1);QO:IF(CURRBARSCOUNTv=Tl+M+3 ANDCURRBARSCOUNT>=T1+1,CONST(REF(C,Q1))Z DRAWNULL),COLOR009900;IF(CURRBARSCOUNT=Q14-1Z QO,DRAWNULL)Z CIRCLEDOT,COLOROOCCOO; M1:=CONST(LLVBARS(V,M));M0:IF(CURRBARSCOUNT<=M+7,CONST(IF(Ml=0/O,REF(O,Ml))),DRAWNULL );IF(CURRBARSCOUNT=M1+1,MO,DRAWNULL),CIRCLEDOT;DRAWTEXT(ISLASTBAR,M(V 地量反量能平台');HV:=HHV(V,8)=V OR V/REF(V,1)>=2;FT: = BARSLAST(HV);量能平台:IF(HV,C,REF(C,FT)),COLORCCOOCC Z LINETHICK1;DP:=IF(C=INDEXC,O,1);GJ:=AMOUNT/V/100;【明日阻力】:L+(GJ-L)+(C-L)Z COLORRED,NODRAW;【明日支撑】:L+(C・GJ),NODRAW;年:二YEAR,NODRAW;月:-MONTH,NODRAW;星期:二WEEKDAY’NODRAW;H 1:=DATETODAY(DATE);上市日:二REF(DATE,TOTALBARSCOUNT・CURRBARSCOUNT);自然日:=日1-DATETODAY(上市日)+1;ZB:=(自然H-REF(自然R,l))!=星期・REF(星期,1)ORTOTALBARSCOUNT-CURRBARSCOUNT=0;木周第几天:二BARSLAST(ZB)+1;本月第几天: = BARSLAST(年*100+月!二REF(年*100+月,1))+1;MA1: = REF(C Z本周第几天);MA2: = REF(MA1,本周第儿天);MA3: = REF(MA2「木周第几天);MA4: = REF(MA3,本周第几天);MA5: = REF(MA4,本周第几天);MA6: = REF(MA5,本周第几天);MA7: = REF(MA6,本周第儿天);MA8: = REF(MA乙木周第几天);MA9: = REF(MA8,本周第几天);十周价:=(C+MAl+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10; 决策:REFDATE(十周价,D ATE),COLORYELLOW 丄INETHICK2;DRAWTEXT(ISLASTBAR,决策,决策线1COLORYELLOW;AK1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);A0:=(AH-AL)/40;BK1:=L-AO;STICKLINE((AKl+0)/34=FLOOR((AKl+0)/34),BKl z BKl-1.5*AO z2z O),COLORFO OFFO;DRAWTEXT((AK1+0)/34=FLOOR((AK1+0)/34)Z BK1-1*AO;时间窗,变盘jCOLORFOOFFO;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1))Z10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;AMA2:EMA(DMA(CLOSE Z CQ2)Z2),COLORLIBLUE,LINETHICK3;AMA3:IF(AMA2/REF(AMA2,l)>0.997,AMA2,DRAWNULL),COLORRED,LINETHI CK3; AMA4:IF(AMA2/REF(AMA2,l)>1.001,AMA2,DRAWNULL),COLORRED,LINETHI CK3;LC:=REF(CLOSE,1);VAR2& =SMA(MAX(CLOSE-LC z O),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;VARA00:=((AMOUNT)/(VOL))/(100);VARABOO:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARACOO:=((SUM(AMOUNT Z刀)/(VARA00))/(100);VARDO: = DMA(VARABOO Z(VOL)/(VARACOO));VARDE0:=((CLOSE-VARD0)/(VARD0))*(100);VARDEOF:=((CLOSE-LLV(LOW Z34))/(HHV(HIGH,34)-LLV(LOW Z34)))*(100); VARDE0JF:=MA(VARDE0z20)+STD(VARDE0,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA:=SMA(VARDE0F,3,l);SS:=(REF(BIAS18,1)>=5) AND CROSS(VARDEOJF,VARDEO) AND (AA>79); DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28)z H*1.01/,卖岀')丄INETHICK4,COLORGREEN;红轨道: = MA(MA(CLOSE Z3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:=IF(红轨道 >=绿轨道,绿轨道Z DRAWNULL),COLORRED,LINETHICK2; AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L Z9))*100,3Z1)-2*SMA(SMA((C-LLV (L,9))/(HHV(H,9)-LLV(L Z9))*100,3,1),3,1);加仓:=IF(CROSS(AA1Z REF(AA1+0.01Z1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,2刀・LLV(LOW Z27)))*(100)Z5Z1))-(2)*(SMA(SMA(((CLOSE - LLV(LOW Z27))/(HHV(HIGH,2刀・LLV(LOW Z27)))*(100)Z5,1),3Z1));DRAWTEXT(CROSS(波段底,3)丄*0・97,底‘);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A」)+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)+ll*REF(A z9)+10*REF(A,10)+9*REF(A,11)+8*REF(A Z12)+7*REF(A Z13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX: = 100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6)z6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5)丄OW・0・03,买入'),COLORRED;盘整天数:=5;{盘整天数自己调,以5-7 S为最佳}下探幅度:=5;上冲幅度:=25;涨停l:=(C-REF(C z l))/REF(C,l)>0.09;{涨幅大于9 个点}缩量: = HHV(VOL,盘整天数・2)vREF(VOL,盘整天数・1) AND SUM(VOL,盘整天数)>2* SUM(VOL,盘整天数・2);七伤拳:二缩量AND REF(涨停1,盘整天数)AND COUNT(涨停1,盘整天数+1)=1 AND (HHV(H,盘整天数)・REF(C,盘整天数))/REF(C,盘整天数)*100<±冲幅度AND (LLV(L,盘整天数)・REF(C,盘整天数))/REF(C,盘整天数)*100>(下探幅度*-1);DRAWTEXT(七伤拳丄OW*0・98严七伤拳'),COLORRED;阳涨幅:=3.5;阳倍量:=1・9;单阳收:=C;单阳开:=0;单阳匸单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT<300 AND 单阳丄*0.98邙日^COLOROOFFFF; 高不破价: = REF(C,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单卩日不破:=CURRBARSCOUNT<300 AND BARSLAST(^ffi)<ll AND(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))"氐不破价);STICKLINE(单阳不破/氐不破价■低不破价*0.0005/氐不破价,4,0),COLORGREEN; STICKLINE(单阳不破,高不破价,高不破价Z4,0)Z COLORRED; STICKLINE(单阳,单阳开,单阳收20),COLORYELLOW;DRAWTEXT(BARSU\ST(单阳)=1 AND单阳不破‘低不破价*0.98/1,),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=2 AND单阳不破,低不破价*0.98/2,)Z COLORGREEN;DRAWTEXT(BARSLAST(单阳)=3 AND单阳不破,低不破价*0.98/3*),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=4 AND单阳不破,低不破价*0.98;4,),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=5 AND单阳不破/氐不破价*0.98;5,),COLORGREEN;DRAWTEXT(BARSU\ST(单阳)=6 AND单阳不破‘低不破价*0.98,6),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=7 AND单阳不破,低不破价*0.98/7,)Z COLORGREEN;DRAWTEXT(BARSLAST(单阳)=8 AND单阳不破,低不破价*0.98/8*),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=9 AND单阳不破,低不破价*0.98,9),COLORGREEN;DRAWTEXT(BARSLAST(单阳)=10 AND单阳不破/氐不破价*0.98;10,),COLORGREEN;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);MACD1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,9,1);D:=SMA(K Z9,1);J:=3*K-2*D;KDJ1:=CROSS(K,D) AND CROSS(JQ);均线:=CROSS(MA(C,5),MA(C, 10));量线:=CROSS(MA(V,5),MA(V,10));SCC:=MACD1 AND KDJ1 AND 均线AND 量线;SC1:=MACD1 AND KDJ1;SC2:=均线AND量线;SC3:=均线AND MACD1;SC4:=量线AND KDJ1;SC5:=均线AND KDJ1;SC6:=MACD1 AND 量线;DRAWICON(SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6,L-0.20,9);{两个以上指标同吋金叉显示9号图标}DRAWICON(SCC,L-0.20,3);{四个指标同时金叉显示3号图标,便于区别};AAA:=MA((2*CLOSE+HIGH+LOW)/4,5);通l:=AAA*102/100;通2:=AAA*(200-102)/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE z20);DD: = DMA(CLOSE,CC);上:(l+7/100)*DD,CIRCLEDOT, COLORBLUE;下:(l-7/100)*DD,CIRCLEDOT,COLORBLUE;中:(上+下)/2,CIRCLEDOT,COLORBLUE;IF(±>=REF(±,1), ±,DRAWNULL),CIRCLEDOT,COLOR0099FF;IF(屮〉=REF(屮,1),屮,DRAWNULL),CIRCLEDOT,COLOR0099FF;IF(下〉=REF(下,1),下Z DRAWNULL),CIRCLEDOT,COLOR0099FF;。

通达信主图指标综合(附源码)

通达信主图指标综合(附源码)

通达信主图指标综合(附源码)通达信主图指标综合(附源码)获利盘:WINNER(CLOSE)*100,NODRAW;DRAWBAND(MA(CLOSE,20),RGB(33,0,0),MA(CLOSE,60),RGB( 0,0,0));DRAWBAND(MA(CLOSE,5),RGB(150,150,0),MA(CLOSE,10),R GB(0,0,150));DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORGREEN,LINETHICK2;短线进场:IF(C>=MA10 AND C>=MA5,MA10,DRAWNULL),COLORRED,LINETHICK2;MA20:MA(CLOSE,20),COLORBROWN;中线进场:IF(C>=MA20 AND C>=MA10,MA20,DRAWNULL),COLORYELLOW;MA60:MA(CLOSE,60),COLORCYAN;MA120:MA(CLOSE,120),COLOR006600,LINETHICK2;{趋势买卖}VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,20)*(1+80/1000),COLORGREEN,POINTDOT;买入:XMA(VAR1,32)*(1-100/1000),COLORMAGENTA,POINTDOT;DRAWTEXT(CROSS(CLOSE,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,CLOSE),HIGH*1.02,'S'),COLORGREEN;VOL5:=MA(VOL,5); VOL10:=MA(VOL,10); VOL20:=MA(VOL,20);量托:=VOL5>VOL10 AND VOL5>VOL20 ANDCROSS(VOL10,VOL20); {月均线系统:5,10,20}{金蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);}MA2:=MA(C,2);金蜘蛛:=MAX(MAX(MA5,MA10),MA20)<CLOSE AND OPEN<MIN(MIN(MA5,MA10),MA20) AND (MA5>=REF(MA5,1)) AND MA2>REF(MA2,1);出水芙蓉:=(CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20AND COUNT(CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20,8)==1);反弹托:=MA5>MA10 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月托:=MA5>MA10 AND MA5>MA20 AND (MA20>=MA60 OR MA60>=MA120)AND CROSS(MA10,MA20); {月均线系统:5,10,20}一阳穿三线:=CLOSE>OPEN {收阳} AND CLOSE>MA5 AND CLOSE>MA10 AND CLOSE>MA20AND OPEN<MA5 AND OPEN<MA10 AND OPEN<MA20AND (REF(CLOSE,1)<REF(MA5,1) OR REF(CLOSE,1)<REF(MA10,1)OR REF(CLOSE,1)<REF(MA20,1)){一阳穿月三根均线};底部:=COUNT(CROSS(MA5,MA10),5)>0 AND COUNT(CROSS(MACD.DIF,MACD.DEA),5)>0 AND COUNT(CROSS(MA(VOL,5),MA(VOL,10)),5)>0;VAR01:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR02:=SMA(SMA(VAR01,3,1),3,1);绝买:=CROSS(3*VAR02-2*EMA(VAR02,5),VAR02) AND VAR02<60 AND CLOSE>O;买的前提条件:=量托 OR 出水芙蓉 OR 金蜘蛛 OR 月托 OR 一阳穿三线 OR 底部 OR 绝买;价压:=MA5<MA10 AND MA5<MA20 AND CROSS(MA20,MA10);死蜘蛛:=MA5<MA10 AND CROSS(MA20,MA5) AND CROSS(MA20,MA10);头部:=COUNT(CROSS(MA10,MA5),5)>0 AND COUNT(CROSS(MACD.DEA,MACD.DIF),5)>0 AND COUNT(CROSS(MA(VOL,10),MA(VOL,5)),5)>0;{可看30分钟线买卖} 断头铡刀:=CLOSE<OPEN {收阴} AND CLOSE<MA5 AND CLOSE<MA10 AND CLOSE<MA20AND HIGH>MA5 AND HIGH>MA10 AND HIGH>MA20AND (REF(CLOSE,1)>REF(MA5,1) OR REF(CLOSE,1)>REF(MA10,1) OR REF(CLOSE,1)>REF(MA20,1)); {一阴下穿三根均线}卖的前提条件:=价压 OR 死蜘蛛 OR 头部 OR 断头铡刀;DRAWTEXT(量托 AND COUNT(量托,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'量托'),COLORRED;DRAWTEXT(出水芙蓉AND COUNT(出水芙蓉,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'芙蓉'),COLORRED; {买入};DRAWTEXT(反弹托AND COUNT(反弹托,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'反弹托'),COLORRED;DRAWTEXT(月托 AND COUNT(月托,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'月托'),COLORRED;DRAWTEXT(金蜘蛛AND COUNT(金蜘蛛,5)==1 AND COUNT(卖的前提条件,5)==0,MA10,'金蜘蛛');DRAWTEXT(一阳穿三线 AND COUNT(一阳穿三线,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'阳');DRAWTEXT(底部 AND COUNT(底部,5)==1 AND COUNT(卖的前提条件,5)==0 ,MA5,'底部'),COLORGREEN;DRAWTEXT(绝买 AND COUNT(绝买,5)==1 AND COUNT(卖的前提条件,5)==0,MA5,'绝买'),COLORRED;DRAWTEXT(价压 AND COUNT(价压,5)==1 AND COUNT(买的前提条件,5)==0,MA10,'价压'),COLORYELLOW;DRAWTEXT(死蜘蛛AND COUNT(死蜘蛛,5)==1 AND COUNT(买的前提条件,5)==0,HHV(HIGH,5),'死蜘蛛');DRAWTEXT(断头铡刀AND COUNT(断头铡刀,5)==1,HHV(HIGH,5),'断头'),COLORGREEN;DRAWTEXT(头部 AND COUNT(头部,5)==1 AND COUNT(买的前提条件,5)==0 AND COUNT(卖的前提条件,5)>0,HHV(HIGH,5),'头部');{公式条件:两阳夹一阴;后一个阳收盘价大于前一阴最高价;阴线成交量小于阳线成交量}O1:=REF(O,1); C1:=REF(C,1); H1:=REF(H,1); V1:=REF(V,1);O2:=REF(O,2); C2:=REF(C,2); V2:=REF(V,2);多方炮:=C2>O2 AND C1<O1 AND C>O AND C>H1 AND V1<V2 AND V>V1;DRAWTEXT(COUNT(月托,6)>0 AND 多方炮,CLOSE,'托炮');{短线高手}VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORYEL LOW;DRAWTEXT(买1>0 OR 买2>0,LOW*0.98,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGR EEN;DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;POSITION:=MA120;{买卖点}买卖点1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;买卖点2:=2*ABS(买卖点1);买卖点3:=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);情报:= 100-买卖点3;红军:= IF(买卖点1>0,买卖点1,0);绿军:= IF(买卖点1<0,买卖点2,0);{主力控盘度: 无庄控盘(白色)-动力线上升(深灰色)-开始控盘(红色)-高度控盘(粉色)-主力出货(绿色)}控盘V1:=EMA(EMA(CLOSE,9),9);控盘V2:=100*WINNER(CLOSE*0.95);控盘:=(控盘V1-REF(控盘V1,1))/REF(控盘V1,1)*1000;{专吸庄血修改说明:绿柱前有两条以上白柱的买入更可靠。

通达信指标公式源码 自用组合主图

通达信指标公式源码 自用组合主图

、参数:N1(1 300 5)N2( 1 300 10)N3(1 300 20)N4(1 300 30)P(1 5 2)M(1 60 20)N(1 500 250) M1(1 500 55)买线:INTPART((SUM(CLOSE*VOL*100,6)/SUM(VOL*100,6))*100.17)/100,COLO RFF00FF,LINETHICK2;工作线:EMA(C,13),COLOR0000FF,LINETHICK2;一线:EMA(C,25),COLORWHITE,LINETHICK2;二线:EMA(CLOSE,99),LINETHICK3,POINTDOT,COLORYELLOW;江恩线:EMA(CLOSE,144),LINETHICK3,POINTDOT,COLORFFCC66;EMA1311:=EMA(C,13),COLOR0000FF,LINETHICK2;EMA341:=EMA(C,34),LINETHICK2,POINTDOT,COLORYELLOW;EMA551:=EMA(C,55),LINETHICK2,POINTDOT,COLORFF00FF;EMA120:=EMA(C,120),LINETHICK2,POINTDOT,COLORFFCC66;AR1:=EMA551>EMA341 AND EMA341>EMA1311;AR2:=BARSLAST((C-EMA1311)/EMA1311*100<-6);AR3:=EMA1311>=REF(EMA1311,2);AR4:=COUNT(CROSS(C,EMA1311),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);STICKLINE(AR6,O,C,2.5,0),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;BR2:=ABS((EMA1311-EMA341)+(EMA341-EMA551))/C<0.2;BR3:=C>EMA551 AND (REF(C,1)<REF(EMA551,1) ORREF(C,2)<REF(EMA551,2) OR REF(C,3)<REF(EMA551,3) ORREF(C,4)<REF(EMA551,4) OR REF(C,5)<REF(EMA551,5));BR4:=BR1 AND BR2 AND BR3;STICKLINE(BR4 AND FILTER(BR4,10),O,C,2.5,0),LINETHICK2,COLOR4080FF; CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA1311,EMA551),3)=1;CR4:=ABS(EMA341-EMA551)/EMA551<0.03;CR5:=EMA551<=EMA120 AND EMA551>=REF(EMA551,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DR1:=EMA1311>EMA341 AND EMA341<EMA551;DR2:=BARSLAST(CROSS(C,EMA551) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA551 ANDBETWEEN((C-EMA551)/EMA551,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);STICKLINE(DR8,O,C,2.5,0),LINETHICK2,COLORFF0080;ER:=BARSLAST(REF(CROSS(EMA551,EMA341),1)) ANDCROSS(EMA341,EMA551);FR:=BARSLAST(REF(CROSS(EMA341,EMA1311),1)) ANDCROSS(EMA1311,EMA341);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA1311>EMA341 AND EMA341>EMA551 ANDEMA1311>REF(EMA1311,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*'),COLOR00FF00;HR2:=EMA1311>=REF(EMA1311,3) AND EMA341>=REF(EMA341,1) AND EMA551>=REF(EMA551,1) AND CROSS(C,EMA1311) AND CROSS(C,EMA341) AND CROSS(C,EMA551);STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,0),LINETHICK2,COLORFF80FF; MA1:=EMA(CLOSE,N1);MA2:=EMA(CLOSE,N2);MA3:=EMA(CLOSE,N3);MA4:=EMA(CLOSE,N4);TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1 AND TJ2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);做多:IF(K>D AND MACD>0 AND V>1,2,0),COLORRED,NODRAW;做空:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00,NODRAW;强洗:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF,NODRAW;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00,NODRAW; STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;DRAWICON(FILTER(XG,3),L*0.97,23);GET:=ZIG(3,3),COLORYELLOW;PL5:=ZIG(3,5);EN1:=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);EX1:=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);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF; DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'半仓'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'稳赚'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'清'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'有机'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'闪'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'人'),COLORFF00FF; DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'鬼'),COLORFFFF00; DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'神'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'走'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'买点'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'清'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'少买'), LINETHICK3,COLOR00FFFF;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:=SQRT(HRY11),COLORGREEN,LINETHICK2;国:=IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1),HRY33 ,DRAWNULL),LINETHICK2,COLORRED;MA5:=EMA(C,5),COLOR0000FF,LINETHICK2;MA6:=REF(MA1,1),COLORFFFFFF;MA7:=EMA(EMA(C,7),6),COLOR00FFFF,LINETHICK2;DRAWKLINE(H,O,L,C);指标王趋势:=(MA(EMA(EMA(EMA(CLOSE,2),2),2),13)*0.99),COLORGREEN; 金砖线:=(HHV((REF(CLOSE,1)-REF(MA(MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1 )-HIGH))),ABS((REF(CLOSE,1)-LOW))),13),1)),12));注意:=DRAWTEXT(CROSS(指标王线,MA6),(LOW)*(0.93),'←---注意');笑:=DRAWTEXT(CROSS(指标王线,MA6) AND 指标王线>MA7,H*(0.93),'←-笑');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)-LL V(CLOSE,7))*100=100)>0AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 -100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);X1:=EMA(((KS/ 10) + EMA(CLOSE,10)),3);AA:=-100*(X1-CLOSE)/X1;AC:=(EMA(AA,5));SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));X2:=IF(((SSL>MM)),MM,SA),COLORFF00FF;Y1:=DMA(((CLOSE+ OPEN) / 2),(VOL / (SMA(VOL,4,1)*4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);X3:=A,COLORYELLOW,LINETHICK1;B:=REF(A,1);VA1:=EMA(上收,8);VA2:=EMA(上收,20);选手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;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;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);MA20: =MA(C,20);MA30:=MA(C,30);QSXS:=MA20>MA30AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);ZF:=(C/REF(C,1)-1)*100;TDDF:=(L/REF(C,1)-1)*100<=-5AND(REF(HHV(H,5),1)/L-1)*100>=10;N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C)); HM:=IF(N1<N2,N1+1,0)*QSXS;Z2:=HM=1AND ZF>=0 AND C>O AND QSXS;KX1:=ZF<=-3 ANDC<O;XDSJ:=BARSLAST(KX1);KX2:=ZF>=3 AND C>O;JBY:=KX2 AND XDSJ<=2AND C>=REF(O*0.99,XDSJ) ANDZF>ABS(REF(ZF,XDSJ)*0.99);Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);DRAWTEXT(Z2AND Z3 ,LOW*0.99,'送钱来'),COLORFF0080;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR21:=(2*CLOSE+HIGH+LOW)/4;VAR31:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR41:=LLV(LOW,5); VAR51:=HHV(HIGH,4);散户:=EMA((VAR21-VAR41)/(VAR51-VAR41)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR91:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR91,5),5)/EMA(EMA(ABS(VAR91),5),5);VARC:=EMA(EMA(VAR91,20),20)/EMA(EMA(ABS(VAR91),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2),NODRAW;卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLO RYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2,NODRAW;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRA WNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRA WNULL),COLORCYAN,{LINETHICK2};DRAWICON(CROSS(A1X,0),L-0.15,1);VAR111:=C-REF(C,1);VAR211:=100*EMA(EMA(VAR111,6),6)/EMA(EMA(ABS(VAR111),6),6);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:=((LLV(VAR211,2)=LLV(VAR211,7)) AND COUNT(VAR211<0,2) AND CROSS(VAR211,MA(VAR211,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);DRAWTEXT(BT,L-0.07,'短牛'),COLORRED;TJ11:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;DRAWTEXT(TJ11,L-0.15,'中牛'),COLORMAGENTA;HR1:=HHV(HIGH,55);HRY2:=LLV(LOW,55);HRY12:=HR1*HRY2;HRY34:=SQRT(HRY12);TJ21:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY34; STICKLINE(TJ21,H,L,2,0),COLORYELLOW;DRAWTEXT(TJ21,L-0.08,'大牛'),COLORYELLOW;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);DRAWTEXT(ST,H+0.09,'清'),COLOR00FF00;DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;DEA2:=EMA(DIF1,9),COLORWHITE,LINETHICK2;AA8:=COUNT(CROSS(DIF1,DEA2),BARSLAST(DEA2>=0));二次金叉:=CROSS(DIF1,DEA2) AND DEA2<0 AND COUNT(AA8=2,21)=1; DRAWTEXT(二次金叉,L-0.08,' 二次金叉'),COLORYELLOW;A18:=BARSLAST(REF(CROSS(DIF1,DEA2),1));底背离:=REF(CLOSE,A18+1)>CLOSE AND DIF1>REF(DIF1,A18+1) AND CROSS(DIF1,DEA2);DRAWTEXT(底背离,L-0.08,' 底背离'),COLOR00FF00;。

通达信指标公式源码 主图趋势画线 源码主图

通达信指标公式源码 主图趋势画线 源码主图

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR6:=(VAR5 + ((VAR5 * 6) / 100));春买:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;阴观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,NODRAW,COLOR999999;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRA W;离场:=IF(红持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;进:=IF(阴观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLOR00FF00,NODRAW;STICKLINE(ISLASTBAR AND (红持股OR REF(红持股,1)=1),今离场价,今离场价,20,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (阴观望OR REF(阴观望,1)=1),今进场价,今进场价,20,1),COLOR00FF00;XX2:EMA(EMA((CLOSE+LOW+HIGH)/3,3),23),COLORGREEN, LINETHICK2; XX3:=REF(XX2,1);IF(XX2>XX3,XX2,DRAWNULL),COLORRED, LINETHICK2;B11:=MA(CLOSE,1);B22:=SMA(SMA(SMA(B11,2,1),2,1),2,1) ;SMA2:=MA(B22,3) ;DRAWBAND(B22,RGB(255,0,0),SMA2,RGB(0,255,0));下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压力位:=IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压力位,压力位,40,0),COLORFF00FF,LINETHICK2; STICKLINE(ISLASTBAR ,底部位,底部位,35,0),COLOR00FFFF,LINETHICK2;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND(B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);STICKLINE(持股,B1,CLOSE,3,0),COLOR000099;变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,3,0),COLOR0099EF;下跌:=(CLOSE=CMIN AND (B1<B2 OR B1<B3)) OR ((B1=CMIN AND(B2=CMAX OR B3=CMAX)) AND CLOSE<B2) OR(B2=CMIN AND B3=CMAX AND CLOSE<B1) OR (B3=CMIN AND CLOSE<B1 AND CLOSE<B2);STICKLINE(下跌,B1,CLOSE,3,0),COLOR009900;STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,3,0),COLOR009900;买入:=(B1=CMIN AND CLOSE>=B2) OR ((B2=CMIN AND B1<=B3) OR(B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1);STICKLINE(买入,B1,B2,3,0),COLOR00FFFF;抛售:=(B1=CMAX AND CLOSE<B2) OR ((B2=CMAX AND B1>B3) OR(B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1);STICKLINE(抛售,B1,B2,3,0),COLORFFFFFF;STICKLINE(C>=O,L,H,0,1),COLORRED;STICKLINE(C<O,H,L,0,1),COLORGREEN;STICKLINE(持股OR 买入,O,C,1.5,0),COLORRED;STICKLINE(下跌OR 抛售,O,C,1.5,0),COLORGREEN;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;MMA:=CONST(HHV(H,90));MMB:=CONST(LLV(L,90));WN:=3;{原码N:=3;}WA1:=REF(H,WN)=HHV(H,2*WN+1); WB1:=FILTER(WA1,WN);WC1:=BACKSET(WB1,WN+1); WD1:=FILTER(WC1,WN);{高点}WA2:=REF(L,WN)=LLV(L,2*WN+1); WB2:=FILTER(WA2,WN);WC2:=BACKSET(WB2,WN+1); WD2:=FILTER(WC2,WN);{低点}WE1:=(REF(LLV(L,2*WN),1)+REF(HHV(H,2*WN),1))/2;WE2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}WH1:=(WD1 AND NOT(WD2 AND WE1>=WE2)) OR ISLASTBAR OR BARSCOUNT(C)=1;WL1:=(WD2 AND NOT(WD1 AND WE1<WE2)); WH2:=WD1 AND NOT(WD2 AND WE1>=WE2);WX1:=REF(BARSLAST(WH1),1)+1; WF1:=BACKSET(WH1 ANDCOUNT(WL1,WX1)>0,LLVBARS(IF(WL1,L,10000),WX1));WG1:=WF1>REF(WF1,1); WI1:=BACKSET(WG1,2);WLD:=WI1>REF(WI1,1);{过滤后低点}WL2:=WLD OR ISLASTBAR OR BARSCOUNT(C)=1;WX2:=REF(BARSLAST(WL2),1)+1; WF2:=BACKSET(WL2 ANDCOUNT(WH2,WX2)>0,HHVBARS(IF(WH2,H,0),WX2));WG2:=WF2>REF(WF2,1); WI2:=BACKSET(WG2,2);WHD:=WI2>REF(WI2,1);{过滤后高点}WR1:=BACKSET(ISLASTBAR,BARSLAST(WHD)+1); WS1:=WR1>REF(WR1,1); {前一高}WT1:=BACKSET(ISLASTBAR,BARSLAST(WLD)+1); WU1:=WT1>REF(WT1,1); {前一低}WR2:=BACKSET(WS1,REF(BARSLAST(WHD),1)+2); WS2:=WR2>REF(WR2,1); {前二高}WT2:=BACKSET(WU1,REF(BARSLAST(WLD),1)+2); WU2:=WT2>REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WLD),1)+2); WU3:=WT3>REF(WT3,1); {前三低}WT4:=BACKSET(WU3,REF(BARSLAST(WLD),1)+2); WU4:=WT4>REF(WT4,1); {前四低}WR3:=BACKSET(WS2,REF(BARSLAST(WHD),1)+2); WS3:=WR3>REF(WR3,1); {前三高}WR4:=BACKSET(WS3,REF(BARSLAST(WHD),1)+2); WS4:=WR4>REF(WR4,1); {前四高};压力1:=DRAWLINE(WS2,H,WS1,H,1),COLOR008888; {★压力1:}支撑1:=DRAWLINE(WU2,L,WU1,L,1),COLOR008888;{★支撑1:}压力2:=DRAWLINE(WS3,H,WS2,H,1),COLOR888000; {★压力2:}支撑2:=DRAWLINE(WU3,L,WU2,L,1),COLOR888000;{★支撑2:}压力3:=DRAWLINE(WS4,H,WS3,H,1),COLOR0000CC;{★压力3:}支撑3:=DRAWLINE(WU4,L,WU3,L,1),COLOR0000CC;{★支撑3:};BSC:=CONST(MAX(BARSLAST(WS4),BARSLAST(WU4))*3),NODRAW;IF(BETWEEN(压力1,MMA,MMB),压力1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(支撑1,MMA,MMB),支撑1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(压力2,MMA,MMB),压力2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(支撑2,MMA,MMB),支撑2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(压力3,MMA,MMB),压力3,DRAWNULL),COLOR0000CC,LINETHICK1;IF(BETWEEN(支撑3,MMA,MMB),支撑3,DRAWNULL),COLOR0000CC,LINETHICK1;底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);WZ6:=EMA(WZ5,9);WZ7:=2*(WZ5-WZ6);WZ8:=REF(WZ7,1);WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;VAR1T:=EMA(CLOSE,8);VAR2T:=EMA(VAR1T,20);VAR3T:=CROSS(VAR1T,VAR2T);VAR4T:=VAR1T<MA(CLOSE,120);VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR6T:=SMA(VAR5T,5,1);VAR7T:=SMA(VAR6T,8,1);VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T<20;VAR9T:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;VARA:=IF(CLOSE>1000,VAR8T,VAR9T);起步:=VAR3T AND VAR4T;逃遁:=VARA;XL1:=EMA(CLOSE,10)/100;XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;XL3:=MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,LOW,'←反弹'),COLOR0000FF;DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4)) *4*25,87.5) AND VAR1T<40,87,0) AND X2>X3,LOW,'←短买'),COLOR0000AA; DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2 +HIGH+LOW)/4,26)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE* 2+HIGH+LOW)/4,26),2)))*5.8,0.47),LOW,0) AND X2>X3,LOW,'←加仓'),COLORFF5ED8;DRAWTEXT(CROSS(X4,X5),HIGH+C*0.01,'←减'),COLORB4FF00; DRAWTEXT(FILTER((WZ9 AND DJ>250) OR X9 ,5),HIGH+C*0.02,'←跑'),COLORBCFF8B;STICKLINE(起步>0,HIGH,LOW,0.8,0),COLOR00FFFF;STICKLINE(起步>0,OPEN,CLOSE,5,0),COLOR00FFFF;DRAWTEXT(逃遁>0,HIGH,'●←逃'),COLOR7FFFD6;X1P:=(C+L+H)/3;BB13:=ATAN(EMA(X1P,13)-REF(EMA(X1P,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1P,13)>REF(EMA(X1P,8),1),10),EMA8,'∠45上升'),COLORWHITE; 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),'★大胆搏'),COLOR00FFFF;L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; L24:=(HIGH+LOW+CLOSE)/3;L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));L27:=IF(L25>=150 AND L25<200 AND L26>=150 AND L26<200,10,0);L28:=IF(L25<=-150 AND L25>-200 AND L26<=-150 AND L26>-200,-10,L27); L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);L30:=IF(L29<90,L29,100);L31:=IF(L23>0,L23,0);XL11:=(IF(L28>=200 AND L25>=150,15,IF(L26<=-200 ANDL25<=-150,-15,L28)))+60;XL22:=L31>48 AND XL11>60 AND L30<100;DRAWTEXT(XL22 AND COUNT(XL22,30)=1,L,'大笔买入'),COLORFF00FF; VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))* 100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42)) *100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;DRAWTEXT_FIX(1,0,0,0,'市盈率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.08,0,0,CONST(DYNAINFO(39))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0,0,'每股收益(元):'),COLOR0080FF; DRAWNUMBER_FIX(1,0.29,0,0,CONST(FINANCE(33))),COLOR0080FF; DRAWTEXT_FIX(1,0.36,0,0,'莸利比例:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.46,0,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.05,0,'总股本(万股):'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.13,0.05,0,CONST(FINANCE(1)/10000)),COLORMAGE NTA;DRAWTEXT_FIX(1,0,0.1,0,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.1,0.1,0,HYBLOCK),COLOR0080FF;DRAWTEXT_FIX(1,0.21,0.1,0,DYBLOCK),COLOR0080FF;{量能饱和}SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOU NT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);DRAWTEXT_FIX(1,0.35,0.9,0,'量能饱和度:')COLOR00FFFF; DRAWNUMBER_FIX(1,0.48,0.9,0,CONST(SAT)),COLORYELLOW;。

通达信指标公式源码箱体 主图源码

通达信指标公式源码箱体 主图源码

用法,指标显示的很清楚,去头尾认真执行就行了!MA1:MA(CLOSE,17),COLORFF00FF,LINETHICK2;MA2:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORFF00FF,LINETHICK1; MA3:IF(REF(MA1,1)>MA1,MA1,DRAWNULL),COLOR59A100,LINETHICK2;箱顶:MA(REF(HHV(C,10),1),1),LINETHICK1,COLORFFA188;箱底:MA(REF(LLV(C,10),1),1),LINETHICK1,COLORFFA188;VARB:=IF(CLOSE>150,91.3,0.913);MA4:MA(CLOSE,2),COLOR0300B2,LINETHICK2;MA5:IF(MA4>=REF(MA4,1),MA4,DRAWNULL),COLORRED,LINETHICK1;MA6:IF(REF(MA4,1)>MA4,MA4,DRAWNULL),COLORFFEAC8,LINETHICK2;下沿:INTPART(CLOSE/VARB )*VARB,POINTDOT,LINETHICK4,COLOR5B6EE0; 上沿:下沿+VARB,POINTDOT,LINETHICK4,COLOR00FF00 ;中线:(下沿+上沿)/2,POINTDOT,COLORWHITE,LINETHICK4;STICKLINE(MA1>MA4,MA1,MA4,0,0),COLORFFA610;STICKLINE(MA1<MA4,MA4,MA1,0,0),COLOR00FFFF;STICKLINE((C<O),OPEN,CLOSE,3,0),COLORCC9A85;STICKLINE((C<O),HIGH,LOW,0,0),COLORCCBBAD;STICKLINE((C>=O),OPEN,CLOSE,3,0),COLOR0000DD;STICKLINE((C>=O),HIGH,LOW,0,0),COLOR0000FF;顶压:HHV(MA(H,11),50),COLOR00FFFF;短压:HHV(MA(H,11),15),COLOR0090E0;XL1:=LLV(MA(H,11),1);趋势:IF(XL1>=短压,短压,XL1),COLORFFFFFF;X1:=(3*C+H+L+O)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);{出货}X7:=SMA(MAX(CLOSE-X6,0),7,1)/SMA(ABS(CLOSE-X6),7,1)*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);{40}WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{减}WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);WZ6:= EMA(WZ5,9);WZ7:= 2*(WZ5-WZ6);{50}WZ8:= REF(WZ7,1);WZ9:= CROSS(WZ8,WZ7) AND WZ8>0;DRAWTEXT(WZ9 AND DJ>250,H,'←减'),COLORBCFF8B;VAR11:=EMA(CLOSE,8);{起步}VAR2:=EMA(VAR11,20);VAR3:=CROSS(VAR11,VAR2);VAR4:=VAR11<MA(CLOSE,120);VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命} VAR6:=SMA(VAR5,5,1);VAR7:=SMA(VAR6,8,1);{60}VAR8:=CROSS(VAR6,VAR7) AND VAR7<20;VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8;VARA:=IF(CLOSE>1000,VAR8,VAR9);起步:= VAR3 AND VAR4;逃遁:= VARA;STICKLINE(X2>X3,X2*0.98,X2,6,1),COLOR0000FF;STICKLINE(X2<X3,X2*0.98,X2,6,1),COLORF10011;WW1:= SUM( MA(C,10),9)/10.110;XX1:=MA(LOW,2)*0.96;XX2:=MA(LOW,26)*0.85;XX3:= REF(XX1,1)<XX2 AND REF(XX1,1)<XX1 AND REF(XX1,1)<REF(XX1,2); VAR1:=INDEXC;VAR12:=MA(VAR1,6);VAR13:=MA(VAR1,24);VAR14:=MA(VAR1,32);VAR15:=MA(VAR1,62);VAR16:=MA(VAR1,105);VAR17:=VAR15<REF(VAR15,1) AND VAR6<REF(VAR16,1) AND VAR15<VAR6*0.98; VAR18:=VAR14>VAR12*1.11 AND VAR13>VAR12*1.095;VAR19:=VAR12>VAR1*0.95;VAR111:=EMA(WINNER(CLOSE)*70,3);VAR112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);VAR113:=CLOSE/MA(CLOSE,40)*100<76;VAR114:=CLOSE/MA(CLOSE,60)*100<74;VAR115:=HIGH>LOW*1.051;VAR116:=VAR115 AND COUNT(VAR15,5)>1;VAR117:=VAR17 AND VAR8 AND VAR19 AND CLOSE/COST(8)<=0.8AND (CLOSE>OPEN OR CLOSE<OPEN)AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1))AND CLOSE>0.1 OR VAR16AND (VAR113 OR VAR114) AND VAR112<20 AND VAR111<20AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 OR TROUGHBARS(3,15,1)<4 AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));XL11:=EMA(CLOSE,10)/100;{70}XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;XL3:= MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0)AND X2>X3,L-0.1,'←●反弹'),COLORGREEN;DRAWTEXT(IF(CROSS((VAR11-LLV(VAR1,4))/(HHV(VAR11,4)-LLV(VAR11,4))*4*25,87.5) ANDVAR1<40,87,0) AND X2>X3,L-0.2,'←●短买'),COLORFFBBD8;DRAWTEXT(CROSS(VAR1,10) AND X2>X3,L-0.3,'←●买'),COLOR89B2FF; DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0)AND X2>X3,L-0.4,'←●加仓'),COLORFF5ED8;{80}LL1:=(EMA(CLOSE,3) - EMA(CLOSE,13));LL2:=EMA(LL1,9);LL3:=BARSLAST(CROSS(LL1,LL2));LL4:=REF(LL3,LL3+1);LL5:=LL2<REF(LL2,LL4);变盘:=CROSS(LL1,LL2) AND LL5;DRAWTEXT(起步>0,L,'★起步?'),COLOR00FF00;STICKLINE(起步>0,C*1.05,C,7,0),COLORRED;DRAWTEXT(逃遁>0,H*1.04,'●←逃'),COLOR7FFFD6;。

通达信指标公式源码绝妙箱体主图指标

通达信指标公式源码绝妙箱体主图指标

VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100; VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0); 筹码短期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOU NT/VOL/100)/100));筹码中期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMO UNT/VOL/100)/100));筹码长期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,20)/(AMO UNT/VOL/100)/100));DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11); MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1; VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);箱顶:HHV(MA((CLOSE),5),30)COLORRED,LINETHICK2;箱底:LLV(MA((CLOSE),5),30) ;长底:LLV(MA((CLOSE),5),120)LINETHICK2;JJ:=(CLOSE+HHV(MA((CLOSE),5),2)+LLV(MA((CLOSE),5),2))/3;DARS:=IF((DATETODAY(DATE))<9999,1,DRAWNULL);AA:=EMA(JJ,3)*DARS;BB:=REF(AA,1);STICKLINE(AA>BB,AA,BB,3,0),COLORYELLOW,;STICKLINE(AA<BB,AA,BB,3,0),COLORLICYAN,;XSR:=1970330;XS:=IF(DATE<XSR,1,DRAWNULL);DS:="MFI.MFI"(12,9)*XS;{反特别版处理}A9:= DATETODAY(DATE)*XS;{反特别版处理}DS1:=IF(A9<9999{0324},4.55,-DS);DS31:=IF(A9<9999{90324},4.7,-DS);DS 41:=IF(A9<9999{324},4.45,-DS);DS51:=IF(A9<9999{2094},4.75,-DS);DS61: =IF(A9<9999{0324},4.65,-DS);DS71:=IF(A9<9999{0324},4.5,-DS);DS81:=I F(A9<9999{2094},4.6,-DS);DS2:=IF(A9<9999{230},0.01,-DS);DS5:=IF(A9<9999{200},0.02,-DS);DS7:=I F(A9<9999{2},0.03,-DS);DS9:=IF(A9<9999{230},0.04,-DS);DS11:=IF(A9<9 999{230},0.05,-DS);DS13:=IF(A9<9999{30},0.06,-DS);DS15:=IF(A9<9999{20},0.002,-DS);DS17: =IF(A9<9999{230},0.004,-DS);DS19:=IF(A9<9999{230},0.006,-DS);DS21:= IF(A9<9999{230},0.008,-DS);AJ2:=A9>146 AND A9<200;AJ21:=A9>144 AND A9<146;AJ22:=A9>142 AND A9<144;AJ23:=A9>140 AND A9<142;AJ24:=A9>138 ANDA9<140;AJ25:=A9>136 AND A9<138;AJ26:=A9>134 AND A9<136;AI29:=A9>704 AND A9<706;AI28:=A9>702 AND A9<704;AI27:=A9>698 AND A9<700;AI2:=A9>696 AND A9<698;AI21:=A9>694 AND A9<696;AI22:=A9>692 AND A9<694;AI23:=A9>690 AND A9<692;AI24:=A9>688 AND A9<690;AI25:=A9>686 AND A9<688;AI26:=A9>684 AND A9<686;AH2:=A9>1315 AND A9<1365;AH21:=A9>1311 ANDA9<1313;AH22:=A9>1309 AND A9<1311;AH23:=A9>1307 AND A9<1309; AH24:=A9>1305 AND A9<1307;AH25:=A9>1303 ANDA9<1305;AH26:=A9>1299 AND A9<1301;AH27:=A9>1297 AND A9<1299; AA28:=A9>1860 AND A9<1862;AA27:=A9>1856 ANDA9<1858;AA2:=A9>1854 AND A9<1856;AA21:=A9>1852 ANDA9<1854;AA22:=A9>1848 AND A9<1850;AA23:=A9>1846 AND A9<1848;AA24:=A9>1844 ANDA9<1846;AA25:=A9>1842 AND A9<1844;AA26:=A9>1840 AND A9<1842; AL2:=A9>3290 AND A9<3292;AL21:=A9>3066 ANDA9<3068;AL22:=A9>3288 AND A9<3290;AL23:=A9>3292 ANDA9<3294;AL24:=A9>3294 AND A9<3296;AL25:=A9>3296 AND A9<3298;AL26:=A9>3068 ANDA9<3070;AL27:=A9>93054 AND A9<3056;AL28:=A9>93020 AND A9<3044; AK27:=A9>4711 AND A9<4713;AK2:=A9>4709 ANDA9<4711;AK21:=A9>4707 AND A9<4709;AK22:=A9>4705 ANDA9<4707;AK23:=A9>4703 AND A9<4705;AK24:=A9>4701 AND A9<4703;AK25:=A9>4699 ANDA9<4701;AK26:=A9>4697 AND A9<4699;AK28:=A9>4695 AND A9<4697; AB2:=A9>5280 AND A9<5320;AB21:=A9>5278 ANDA9<5280;AB22:=A9>5276 AND A9<5278;AB23:=A9>5274 AND A9<5276; AB24:=A9>5272 AND A9<5274;AB25:=A9>5270 ANDA9<5272;AB26:=A9>5268 AND A9<5270;AB27:=A9>5266 AND A9<5268; AC2:=A9>6520 AND A9<6523;{14180=6523}AC21:=A9>6523 ANDA9<6526;AC22:=A9>6526 AND A9<6529;AC23:=A9>6529 ANDA9<6532;AC24:=A9>6532 AND A9<6535;AE2:=A9>6828 AND A9<6878;AF2:=A9>7132 ANDA9<7134;AF21:=A9>7134 AND A9<7136;AF22:=A9>7136 ANDA9<7138;AF23:=A9>7138 AND A9<7140;AG2:=A9>7337 AND A9<7339;AG22:=A9>7339 ANDA9<7341;AG222:=A9>7341 AND A9<7343;AX2:=A9>8014 AND A9<8016;AX22:=A9>8016 ANDA9<8018;AX222:=A9>8018 AND A9<8020;AP2:=A9>8480 AND A9<8482;AP22:=A9>8482 ANDA9<8484;AP222:=A9>8484 AND A9<8486;AQ:=A9>8558 AND A9<8560;AQ2:=A9>8556 ANDA9<8558;AQ22:=A9>8554 AND A9<8556;AQ222:=A9>8552 ANDA9<8554;AQ2222:=A9>8550 AND A9<8552;AQ23:=A9>8548 AND A9<8550;AQ24:=A9>8546 ANDA9<8548;AQ25:=A9>8544 AND A9<8546;AQ26:=A9>8542 ANDA9<8544;AQ27:=A9>8540 AND A9<8542;AM2:=A9>99015 AND A9<9017;AM21:=A9>99017 ANDA9<9019;AM22:=A9>99019 AND A9<9021;AM23:=A9>99021 ANDA9<9023;AM24:=A9>99023 AND A9<9025;AM25:=A9>99025 AND A9<9027;AM26:=A9>99027 ANDA9<9029;AM27:=A9>99029 AND A9<9031;AM28:=A9>99037 AND A9<9040;AH1:=A9>786 AND A9<788;AH11:=A9>784 AND A9<786;AH12:=A9>782 AND A9<784;AH13:=A9>794 AND A9<796;AH14:=A9>792 ANDA9<794;AH15:=A9>790 AND A9<792;AH16:=A9>788 AND A9<790;AI1:=A9>520 AND A9<522;AI11:=A9>530 AND A9<532;AI12:=A9>522 AND A9<524;AI13:=A9>528 AND A9<530;AI14:=A9>526 ANDA9<528;AI15:=A9>524 AND A9<526;AI16:=A9>522 AND A9<524;AG1:=A9>1360 AND A9<1362;AG11:=A9>1358 ANDA9<1360;AG12:=A9>1356 AND A9<1358;AG13:=A9>1354 AND A9<1356; AG14:=A9>1366 AND A9<1368;AG15:=A9>1364 ANDA9<1366;AG16:=A9>1362 AND A9<1364;AL1:=A9>2333 AND A9<2383;AL11:=A9>2331 ANDA9<2333;AL12:=A9>2329 AND A9<2331;AL13:=A9>2327 ANDA9<2329;AL14:=A9>2325 AND A9<2327;AL15:=A9>2323 AND A9<2325;AL16:=A9>2321 ANDA9<2323;AL17:=A9>2319 AND A9<2321;AA1:=A9>3826 AND A9<3876;AA11:=A9>3824 ANDA9<3826;AA12:=A9>3822 AND A9<3824;AA13:=A9>3820 ANDA9<3822;AA14:=A9>3818 AND A9<3820;AA15:=A9>3816 AND A9<3818;AA16:=A9>3814 ANDA9<3816;AA17:=A9>3812 AND A9<3814;AK1:=A9>4856 AND A9<4906;AK11:=A9>4854 ANDA9<4856;AK12:=A9>4852 AND A9<4854;AK13:=A9>4850 AND A9<4852; AK14:=A9>4848 AND A9<4850;AK15:=A9>4846 ANDA9<4848;AK16:=A9>4844 AND A9<4846;AK17:=A9>4842 AND A9<4844; AB0:=A9>6140 AND A9<6142;AB1:=A9>6142 ANDA9<6144;AB11:=A9>6144 AND A9<6146;AB12:=A9>6146 AND A9<6148; AB13:=A9>6148 AND A9<6150;AB14:=A9>6152 ANDA9<6154;AB15:=A9>6154 AND A9<6156;AB16:=A9>6156 ANDA9<6158;AB17:=A9>6158 AND A9<6160;AB18:=A9>6160 AND A9<6162; AC1:=A9>6802 AND A9<6804;AC11:=A9>6800 ANDA9<6802;AC12:=A9>6798 AND A9<6800;AC13:=A9>6796 ANDA9<6798;AC14:=A9>6794 AND A9<6796;AC15:=A9>6792 AND A9<6794; AC16:=A9>96790 AND A9<6892;AC17:=A9>96788 AND A9<6790;AE14:=A9>6914 AND A9<6916;AE12:=A9>6908 ANDA9<6910;AE11:=A9>6910 AND A9<6912;AE1:=A9>6912 AND A9<6914;AF1:=A9>7258 AND A9<7260;AF11:=A9>7260 ANDA9<7262;AF111:=A9>7262 AND A9<7264;AF1111:=A9>7264 AND A9<7266; AX1:=A9>7422 AND A9<7499; AW1:=A9>7420 AND A9<7422;AX11:=A9>7418 AND A9<7420; AW11:=A9>8095 AND A9<8099;AWP1:=A9>8932 AND A9<8934; AWP11:=A9>8934 AND A9<8936;AWP12:=A9>8936 AND A9<8938; AWP13:=A9>8938 AND A9<8940;AWP14:=A9>8942 AND A9<8944; AWP15:=A9>8944 AND A9<8946;AWP16:=A9>8946 AND A9<8948;个股:=5*POW(SMA((C-LLV(L,65))/(HHV(H,65)-LLV(L,65)*DARS),6,1),2)*XS;{}Y1:=IF(A9<8948,0.5*(AWP15+AWP16+AWP13+AWP14+AK17+AH11+AH1 2+AH13+AH14+AH15+AH16+AI11+AI12+AI13+AI14+AI15+AI16+AG11+AG12+AG13+AG14+AG15+AG16+AL11+AL12+AL13+AL14+AL15+AL16+AL17 +AA11+AA12+AA13+AA14+AA15+AA16+AA17+AK11+AK12+AK13+AK14+A K15+AK16+AWP12+AWP11+AWP1+AA1+AB1+AC1+AE1+AF1+AG1+AH1+A I1+AK1+AL1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111+AE11+AE12+ AE14+AC11+AC12+AC13+AC14+AC15+AC16+AC17+AB11+AB12+AB13+AB 14+AB15+AB16+AB17+AB0+AB18)*14,DS1)*DARS;{反特别版处理}{}Y31:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS31);{反特别版处理}{}Y41:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS41);{反特别版处理}{}Y51:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS51);{反特别版处理}{}Y61:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理}}Y71:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+AL 1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理} Y81:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+AL1 +AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理} {}Y2:=IF(A9<9050,0.5*(AI29+AF23+AF21+AF22+AK27+AK28+AL27+AL28+ AA27+AA28+AI27+AI28+AJ21+AJ22+AJ23+AJ24+AJ25+AJ26+AI21+AI22+ AI23+AI24+AI25+AI26+AH21+AH22+AH23+AH24+AH25+AH26+AH27+AA2 1+AA22+AA23+AA24+AA25+AA26+AL21+AL22+AL23+AL24+AL25+AL26+A K21+AK22+AK23+AK24+AK25+AK26+AB2+AB21+AB22+AB23+AB24+AB25 +AB26+AB27+AM28+AM27+AM26+AM25+AM24+AM23+AM22+AM21+AM2 +AA2+AH2+AI2+AJ2+AK2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX2 22+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222+AQ23+A Q24+AQ25+AQ26+AQ27+AC21+AC22+AC23+AC24),DS2)*DARS;{反特别版处理}{}Y5:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS5);{反特别版处理}{}Y7:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS7);{反特别版处理}{}Y9:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS9);{反特别版处理}{}Y11:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS11);{反特别版处理}{}Y13:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS13);{反特别版处理}{}Y15:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS15);{反特别版处理}{}Y17:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS17);{反特别版处理}{}Y19:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS19);{反特别版处理}{}Y21:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS21);{反特别版处理}Y3:=CROSS(Y2,个股);Y4:=CROSS(Y1,个股) AND 个股>0.6;Y32:=CROSS(Y31,个股) AND 个股>0.6;Y42:=CROSS(Y41,个股) AND 个股>0.6;Y52:=CROSS(Y51,个股) AND 个股>0.6;Y62:=CROSS(Y61,个股) AND 个股>0.6;Y72:=CROSS(Y71,个股) AND 个股>0.6;Y82:=CROSS(Y81,个股) AND 个股>0.6;Y6:=CROSS(Y5,个股);Y8:=CROSS(Y7,个股);Y10:=CROSS(Y9,个股);Y12:=CROSS(Y11,个股);Y14:=CROSS(Y13,个股);Y16:=CROSS(Y15,个股); Y18:=CROSS(Y17,个股);Y20:=CROSS(Y19,个股);Y22:=CROSS(Y21,个股); DRAWICON((Y4 > 0),箱顶*1.03,2);DRAWICON((Y32> 0),箱顶*1.03,2);DRAWICON((Y42 > 0),箱顶*1.03,2);DRAWICON((Y52 > 0),箱顶*1.03,2);DRAWICON((Y62 > 0),箱顶*1.03,2);DRAWICON((Y72 > 0),箱顶*1.03,2);DRAWICON((Y82 > 0),箱顶*1.03,2);DRAWICON((Y3 > 0),长底,1);DRAWICON((Y6> 0),长底,1);DRAWICON((Y8> 0),长底,1);DRAWICON((Y10 > 0),长底,1);DRAWICON((Y12 > 0),长底,1); DRAWICON((Y14 > 0),长底,1);DRAWICON((Y16 > 0),长底,1);DRAWICON((Y18> 0),长底,1);DRAWICON((Y20> 0),长底,1);DRAWICON((Y22 > 0),长底,1);Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,FGBLOCK);Z3:=STRCAT(Z2,DYBLOCK);Z4:=STRCAT(Z3,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;。

通达信指标公式源码自用的主图

通达信指标公式源码自用的主图

强势区域:EMA(C,250),COLORYELLOW,DOTLINE;AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);JAX:=DMA((2*CLOSE+LOW+HIGH)/4,AA);压力:(1+9/100)*JAX,COLORLIRED;支撑:(1-9/100)*JAX,COLORLIRED;顶:(1+13/100)*JAX,COLORLIRED;底:(1-13/100)*JAX,COLORLIRED;下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLOR YELLOW;DRAWBAND(MA(C,13),RGB(155,50,50),MA(C,21),RGB(83,123,68));DRAWKLINE(H,O,L,C);主力线:MA(C,13),COLORLIRED;工作线:MA(C,21),COLORLIRED;生命线:EMA(CLOSE,60),COLORRED, LINETHICK1;强势判定:EMA(C,250),COLORRED,DOTLINE;ELE:=(((REF(HIGH,1))+(REF(LOW,1))+(REF(OPEN,1))+2*(REF(CLOSE,1)))/5);突破价:=(ELE+((REF(HIGH,1))-(REF(LOW,1)))),NODRAW;阻力价:=(2*ELE-(REF(LOW,1))),NODRAW;DRAWTEXT(ISLASTBAR,强势判定,'←强势判定'),COLORFFCC10,COLORMAGENTA; DRAWTEXT(ISLASTBAR,生命线,'←生命线'),COLORFFCC10,COLORMAGENTA; DRAWTEXT(ISLASTBAR,压力,'←压力'),COLORFFCC10,COLORYELLOW;DRAWTEXT(ISLASTBAR,支撑,'←支撑'),COLORFFCC10,COLORYELLOW;DRAWTEXT(ISLASTBAR,顶,'←落袋为安'),COLORFFCC10,COLORYELLOW; DRAWTEXT(ISLASTBAR,底,'←底.短线机会'),COLORFFCC10,COLORYELLOW; DRAWTEXT(ISLASTBAR,主力线,'←主力线'),COLORFFCC10,COLORYELLOW; DRAWTEXT(ISLASTBAR,工作线,'←工作线'),COLORFFCC10,COLORYELLOW;IF(主力线<=REF(主力线,1),主力线,DRAWNULL),COLORGREEN;IF(工作线<=REF(工作线,1),工作线,DRAWNULL),COLORGREEN;IF(压力<=REF(压力,1),压力,DRAWNULL),COLORGREEN;IF(支撑<=REF(支撑,1),支撑,DRAWNULL),COLORGREEN;IF(顶<=REF(顶,1),顶,DRAWNULL),COLORGREEN;IF(底<=REF(底,1),底,DRAWNULL),COLORGREEN;IF(生命线<=REF(生命线,1),生命线,DRAWNULL),COLORGREEN;IF(强势判定<=REF(强势判定,1),强势判定,DRAWNULL),COLORGREEN;。

通达信指标组合套装(一主图三副图,源码,贴图)

通达信指标组合套装(一主图三副图,源码,贴图)

通达信指标组合套装(一主图三副图,源码,贴图)该指标不仅镶嵌了均线系统、成交量、MACD、KDJ四个指标,在均线系统里又增加了60日均线和250日均线,绝大多数黑码股在启动之初,其股价在放量上穿30日或60日均线,并在它们上方带量运行一段时间后,在向下滑落过程中一般都会受30、60日均线的有力支撑,从而形成更为有力的涨升行情。

30日均线能有如此神秘的力量,正是它是中短期和中长期均线系统的结合点。

60日均线之所以也能有如此神秘的力量也决非偶然,其中也更隐藏着更为重大的战略意义,那就是绝大多数已被主力控制很深业以完成总体建仓的股票,主力大多会在拉升行情启动之前,再来一次紧急而迅速的集中建仓或增仓,且时间都控制在三个月左右。

所以起涨点恰巧都落在60日均线上。

250均线又称年线,反映的是长期趋势,有牛熊线之称,股价只有站上年线才能具备产生黑码和大牛股的基础。

所以,该指标兼备了既可对短期、又能对中长期趋势进行分析的指标。

只要镶嵌的四个指标有两个共振就会发出图标信号。

按照确认“主升浪”行情的标准,这个指标镶嵌了多空指数(EBBI)、3、7、21、54日平滑移动均线、MACD、三个指标与KDJ 的组合,当具备“主升浪”行情标准时,在KDJ指标坐标线0--10的位置上显示黄色柱,只要其中某个指标空头排列,黄柱消失,也就是主升浪结束。

由于这三个副图指标都增加了金叉信号(红色箭头),在四图组合画面里可以非常方便的识别出主图指标出现的图标信号是哪几个指标共振金叉。

应该注意的是:上面3 个副图指标不要在系统自带的指标里改编,因为每次启动后都会恢复原有的指标。

上面的一主三副指标如果设在一张四图组合画面里,我们可以同时用到七个指标,这对于在每个视角,每个方位分析盘面已经足够了{自用VOL}VOLUME:VOL,VOLSTICK;MAVOL5:MA(VOLUME,5);MAVOL10:MA(VOLUME,10),COLOR00FF00;DRAWICON(CROSS(MAVOL5,MAVOL10),0,1);{1号图标显示红箭头}{自用MACD}DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;DEA:EMA(DIFF,9),COLORYELLOW;MACD:2*(DIFF-DEA),COLORSTICK;DRAWICON(CROSS(DIFF,DEA),0,1);{1号图标显示红箭头}{自用KDJ }RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,1);D:SMA(K,9,1);J:3*K-2*D;BBI:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA( CLOSE,24))/4;EBBI:=(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4;FF1:=EMA(C,3)>EMA(C,7) AND EMA(C,7)>EMA(C,21) AND EMA(C,21)>EMA(C,54);DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);主升浪:IF(BBI>EBBI AND FF1 AND DIFF>DEA,10,0),COLORYELLOW,POINTDOT;STICKLINE(主升浪,10,0,1,1),COLORYELLOW;DRAWICON(CROSS(K,D) AND CROSS(J,D),10,1);{1号图标显示红箭头}。

通达信主图指标黑马(附源码)

通达信主图指标黑马(附源码)

通达信主图指标黑马(附源码){获利盘:WINNER(CLOSE)*100,NODRAW;DRAWBAND(MA(CLOSE,20),RGB(33,0,0),MA(CLOSE,60),RGB(0,0,0));DRAWBAND(MA(CLOSE,5),RGB(150,150,0),MA(CLOSE,10),RGB(0,0,150));DRAWKLINE(H,O,L,C);}上:=(SMA(HIGH,21,2) * 1.05);DRAWTEXT(FILTER(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)),5),HIGH*1.02,'减仓'),COLORFFFFFF;下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF;BMA:=MA(CLOSE,118);阻挡:=(SMA(HIGH,21,2) * 1.05);RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=((3 * K12) - (2 * D12));RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=((3 * K24) - (2 * D24));支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),COLOR00FF00;CB:=((AMOUNT / VOL) / 100);CD:=((CB > HIGH) OR (CB < LOW));黑马趋势:=MA(CLOSE,3);MA8:MA(CLOSE,8),COLORWHITE;MA13:MA(CLOSE,13),COLORRED;BB8:=((ATAN((MA8 - REF(MA8,1))) * 3.1416) * 10);DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((MA8 - REF(MA8,1)) > 0)) AND (CLOSE < 上)),3),LOW*0.98,'追击'),COLORD1E768; VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);支撑:=EMA(VARD,5);短期底部0:=LLV(OPEN,30);X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X2:=EMA(X1,10);X3:=REF(X2,1);X4:=((REF(HIGH,1) + REF(LOW,1)) / 2);X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);MAP1:=MA(CLOSE,60);均线30:=MA(CLOSE,30);均线89:=MA(CLOSE,89);均线:=MA(CLOSE,16);均线34:=MA(CLOSE,34);均线55:=MA(CLOSE,55);VAR1:=EMA(CLOSE,8);VAR2:=EMA(VAR1,20);VAR3:=CROSS(VAR1,VAR2);VAR4:=(VAR1 < MA(CLOSE,60));VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR6:=SMA(VAR5,5,1);VAR7:=SMA(VAR6,8,1);VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 16));VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8);VARA:=IF((CLOSE > 1000),VAR8,VAR9);黑马起步:=(VAR3 AND VAR4);逃遁:=VARA;均线20:=MA(CLOSE,20);均线120:=MA(CLOSE,120);牛熊线:=MA(CLOSE,250);VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));VB:=(MA(CLOSE,20) > MA(CLOSE,120));VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));VD:=(MA(CLOSE,20) < MA(CLOSE,120));VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));VF:=(MA(CLOSE,20) > MA(CLOSE,250));VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));DRAWTEXT((((((均线- REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF;短期底部:LLV(HIGH,30),COLOR0000FF;上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF;中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF;DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522;DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)) AND (CLOSE < 均线120)),HIGH*1.02,'减仓'),COLOR00FF00;DRAWTEXT(FILTER(((HIGH > 阻挡) AND (CLOSE < 阻挡)),5),HIGH*1.02,'逃命');DRAWTEXT(((VE > VG) AND (HIGH < 阻挡)),LOW*0.96,'★短线'),COLOR00FFFF;DRAWTEXT(FILTER(((((((((((OPEN < X2) AND (CLOSE > X2)) AND ((支撑- REF(支撑,1)) > 0)) AND ((支撑- REF(支撑,1)) > 0)) AND (CLOSE < 阻挡)) AND ((均线- REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < 阻挡)) AND ((MA8 -REF(MA8,1)) > 0)) AND ((阻挡-REF(阻挡,2)) > 0)),11),LOW*0.98,'★快马加鞭'),COLOR0000FF;DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 -REF(X2,1)) > 0)) AND (HIGH < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4),LOW*0.98,'★狂奔'),COLORD18073;DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★起步'),COLOR00FFFF;DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF;DRAWTEXT(X9,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((((黑马起步> 0) AND (LOW <= X2)) AND ((均线- REF(均线,1)) > 0)),(LOW*0.98),'★黑马起步'),COLOR00FF00;DRAWTEXT((逃遁> 0),(HIGH * 1.03),'●逃命'),COLOR0000FF;RDV:=SMA(LOW,8,1);DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 -REF(X2,1)) > 0)) AND ((RDV -REF(RDV,1)) > 0)) AND (K <= 33)),(LOW *0.98),'★黑马初现'),COLOR8500DE;DRAWTEXT(FILTER((((((((LOW <= 短期底部0) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (HIGH < 阻挡)) AND ((X2 -REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),LOW*0.98,'筑底'),COLOR85B256;RCK:=(SMA(LOW,21,2) * 0.95);趋势线:=SMA(LOW,5,1);大胆买入:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 - REF(X2,1)) > 0)),LOW,'★大胆买入'),COLORE50000;B1:=(((HIGH + LOW) + CLOSE) / 3);B6:=HHV(B1,(4 * 15));B7:=LLV(B1,(4 * 15));B8:=(B6 - B7);飞龙顶底线:=(MA(((B1 - B7) / B8),2) * 80);DRAWTEXT(FILTER(((((((飞龙顶底线<= 1) AND (WINNER(CLOSE) < 0.02)) AND (HIGH < 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部0)) AND (CLOSE > 短期底部0)),8),LOW*0.99,'黑马寻底'),COLORE7DD1F;DRAWTEXT(FILTER((((((((LOW <= 短期底部0) AND (WINNER(CLOSE) < 0.015)) AND ((OPEN / CLOSE) > 0.99)) AND ((J -REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部0)),25),LOW*0.98,'开始建仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((((LOW <= 均线30) AND ((MA8 - REF(MA8,1)) > 0)) AND ((均线- REF(均线20,1)) > 0)) AND ((趋势线- REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) AND ((CLOSE / OPEN) > 1.01)),3),LOW,'★天马奔月'),COLOR76B0FC;DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0)) AND (CLOSE > 均线89)) AND (BB8 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW,'★天马过桥'),COLORCC99FF;VAR001:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR001,13)-EMA(VAR001,73);SD:= EMA(SK,2);DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,LOW,'黑马短线'),COLORGREEN;。

箱体主图通达信指标公式源码.doc

箱体主图通达信指标公式源码.doc

@冷妞妞你好妞妞这个箱体挺好的能不能给这个箱体加一个半分位一半的位置,能看出股票所处的状态是进攻退守还是蓄势!{标注价格主图}HH:=FINDHIGH(H,0,20,1);LL:=FINDLOW(L,0,20,1);HHl:=FINDHIGH(H,20,20,l);LL1: = FINDLOW(L,20,20,1);HH2:=FINDHIGH(H,40,20,l);LL2: = FINDLOW(L,40,20,1);HH3:=FINDHIGH(H,60,20,1);LL3:=FINDLOW(L,60,20,1);HH4:=FINDHIGH(H,80,20,l);LL4: = FINDLOW(L,80,20,1);HH5:=FINDHIGH(H,100,20,1);LL5: = FINDLOW(L,100,20,1);STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 z CONST(HH),CONST(HH),8z O)COLORYELLOW;STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 ,CONST(LL),CONST(LL),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 ,(CONST(HH)+CONST(LL))/2,(CONST(HH)+CONST(LL))/2,8,・1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=20 ORCURRBARSCOUNT=1 z CONST(HH),CONST(LL)z O,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21 ,CONST(HH1),CONST(HH1),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21,CONST(LL1),CONST(LL1),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21 ,(CONST(HHl)+CONST(LLl))/2,(CONST(HHl)+CONST(LLl))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=40 ORCURRBARSCOUNT=21 ,CONST(HH1),CONST(LL1),0,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41,CONST(HH2),CONST(HH2),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41,CONST(LL2),CONST(LL2),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41 ,(CONST(HH2)+CONST(LL2))/2,(CONST(HH2)+CONST(LL2))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=60 ORCURRBARSCOUNT=41,CONST(HH2),CONST(LL2),OR)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61,CONST(HH3),CONST(HH3),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61,CONST(LL3)Z CONST(LL3),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61 ,(CONST(HH3)+CONST(LL3))/2,(CONST(HH3)+CONST(LL3))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=80 ORCURRBARSCOUNT=61,CONST(HH3),CONST(LL3),OR)COLORYELLOW;STICKLINE(CURRBARSCOUNT< 100 ANDCURRBARSCOUNT>81,CONST(HH4),CONST(HH4),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT< 100 ANDCURRBARSCOUNT>81,CONST(LL4),CONST(LL4),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT< 100 ANDCURRBARSCOUNT>81 ,(CONST(HH4)+CONST(LL4))/2,(CONST(HH4)+CONST(LL4))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=100 ORCURRBARSCOUNT=81,CONST(HH4),CONST(LL4),OQ)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101,CONST(HH5),CONST(HH5),8z O)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101,CONST(LL5),CONST(LL5),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101 ,(CONST(HH5)+CONST(LL5))/2,(CONST(HH5)+CONST(LL5))/2,8 ,-l)COLORYELLOW;STICKLINE(CURRBARSCOUNT=120 ORCURRBARSCOUNT=101,CONST(HH5),CONST(LL5),0,0)COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH,2)),‘ 元))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,1.9,0,STRCAT(STRCAT(‘ 最低价:',VAR2STR(LL,2)),‘元'))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,0.005,0,STRCAT(STRCAT(* 最高价:',VAR2STR(HH1,2)),‘元'))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,1.9,0,STRCAT(STRCAT(‘ 最低价:;VAR2STR(LL1Z2));元))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,0.005,0,STRCAT(STRCAT('最高价:;VAR2STR(HH2Z2));TC,))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,L9,0,STRCAT(STRCAT('最低价:;VAR2STR(LL2Z2));元))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH3,2)),‘元'))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,L9,0,STRCAT(STRCAT('最低价:;VAR2STR(LL3Z2));元))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,0.005,0,STRCAT(STRCATC 最高价:;VAR2STR(HH4,2));7C*))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL4,2)),‘元'))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101,0.005,0,STRCAT(STRCAT(* 最高价:',VAR2STR(HH5,2)),‘ 元,))COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101z1.9,0,STRCAT(STRCATCft 低价:;VAR2STR(LL5Z2));元))COLORYELLOW;{屏蔽价格主图}HH:=FINDHIGH(H,0,20,1);LL:=FINDLOW(L,0,20,1);HHl:=FINDHIGH(H,20,20,l);LL1:=FINDLOW(L,20,20,1);HH2:=FINDHIGH(H,40,20,l);LL2:=FINDLOW(L,40,20,1);HH3:=FINDHIGH(H,60,20,l);LL3: = FINDLOW(L,60,20,1);HH4:=FINDHIGH(H,80,20,l);LL4: = FINDLOW(L,80,20,1);HH5:=FINDHIGH(H,100,20,1);LL5:=FINDLOW(L,100,20,1);STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 ,CONST(HH),CONST(HH),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 ,CONST(LL),CONST(LL),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<20 ANDCURRBARSCOUNT>1 ,(CONST(HH)+CONST(LL))/2,(CONST(HH)+CONST(LL))/2,8,・1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=20 ORCU RRBARSCOU NT=1 z CONST(HH),CONST(LL)z O,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21 ,CONST(HH1),CONST(HH1),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21,CONST(LL1),CONST(LL1),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<40 ANDCURRBARSCOUNT>21 z(CONST(HHl)+CONST(LLl))/2,(CONST(HHl)+CONST(LLl))/2,8,-1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=40 ORCURRBARSCOUNT=21 ,CONST(HH1),CONST(LL1),0,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41,CONST(HH2),CONST(HH2),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41,CONST(LL2),CONST(LL2),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<60 ANDCURRBARSCOUNT>41 ,(CONST(HH2)+CONST(LL2))/2,(CONST(HH2)+CONST(LL2))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=60 ORCURRBARSCOUNT=41,CONST(HH2),CONST(LL2),OR)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61,CONST(HH3),CONST(HH3),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61,CONST(LL3),CONST(LL3),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<80 ANDCURRBARSCOUNT>61 ,(CONST(HH3)+CONST(LL3))/2,(CONST(HH3)+CONST(LL3))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=80 ORCURRBARSCOUNT=61,CONST(HH3),CONST(LL3),OR)COLORYELLOW;STICKLINE(CURRBARSCOUNT< 100 ANDCURRBARSCOUNT>81,CONST(HH4),CONST(HH4),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<100 ANDCURRBARSCOUNT>81,CONST(LL4),CONST(LL4),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<100 ANDCURRBARSC0UNT>81 ,(CONST(HH4)+CONST(LL4))/2,(CONST(HH4)+CONST(LL4))/2,8, -1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=100 ORCURRBARSCOUNT=81,CONST(HH4),CONST(LL4),OQ)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101,CONST(HH5),CONST(HH5)z8z O)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101,CONST(LL5),CONST(LL5),8,0)COLORYELLOW;STICKLINE(CURRBARSCOUNT<120 ANDCURRBARSCOUNT>101 ,(CONST(HH5)+CONST(LL5))/2,(CONST(HH5)+CONST(LL5))/2,8 ,-l)COLORYELLOW;STICKLINE(CURRBARSCOUNT=120 ORCURRBARSCOUNT=101,CONST(HH5),CONST(LL5)z O,0)COLORYELLOW;。

通达信指标公式源码极品主图(主图 源码)

通达信指标公式源码极品主图(主图 源码)

PT := REF(HIGH,1)-REF(LOW,1);重心:(HIGH + LOW + CLOSE)/3,NODRAW;压力Ⅰ: 2*重心-LOW,NODRAW;压力Ⅱ:重心+ PT,NODRAW;支撑Ⅰ:2*重心-HIGH,NODRAW;支撑Ⅱ: 重心- PT,NODRAW;MA5:MA(C,5),COLOR888899;MA20:MA(C,20),COLOR0099FF;MA30:MA(C,30),COLORYELLOW;MA60:MA(C,60),COLOR00FF00;MA250:MA(C,250),COLOR0099FF;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B;X1:=(C+L+H)/3;DD:=TOTALCAPITAL;SS:=FINANCE(7);GG:=FINANCE(33);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L ,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;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 ANDVAR14<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;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ; DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信主图测顶底(附源码)

通达信主图测顶底(附源码)

通达信主图测顶底(附源码){1}HH:=HHV(H,200);LL:=LLV(L,200);上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW;↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW;↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00;中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00; STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;{2}高:=天线;低:=地线;H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(下跌=0,高,'高'),COLORGREEN;DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN;DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY;DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW;DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED;DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA;DRAWTEXT(上涨=0,低,'低'),COLORRED;DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF;DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF;DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF;DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF;DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF;DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF;DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF; DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF; DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF; DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF; DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00; DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00; DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00; DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00; DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00; DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00; DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00; DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00; DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00; DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00; {3}C2:=REF(C,1);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,C,O,3.3,0),COLORBLUE; STICKLINE(跌停,H,L,0,0),COLORBLUE; STICKLINE(涨停,C,O,3.3,0),COLOR0077FF; STICKLINE(涨停,C,O,2.8,0),COLOR0099FF; STICKLINE(涨停,H,L,0,0),COLOR00FFFF;。

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

通达信综合箱体(主图源码附图)
{综合箱体主图}
N:=(3.00,30.00,10.00);
ST:=(CLOSE/OPEN-1)*100;
ZF:=(C/REF(C,1)-1)*100;
SX1:=ST>3 AND ST=HHV(ST,6);
SX2:=ZF>3 AND ZF=HHV(ZF,6);
SX3:=ZF>=9 AND CLOSE=HIGH;
烧香:IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF,NODRAW;
DYSJ:=BARSLAST(烧香);
跟踪:IF(DYSJ<=13 AND
COUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0),COLOR00FFFF,NODRAW;
关注:IF(DYSJ>=4 AND
COUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ)),COLORFFFFFF,NODRAW; ②:IF(关注=REF(L,DYSJ),REF(C,DYSJ),REF(L,DYSJ)),COLOR00FFFF,NODRAW; STICKLINE(跟踪,②,②,3,0),COLOR00FFFF;
BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;
BF2:=LOW<关注AND COUNT(LOW<关注,跟踪)=1;
拜佛:IF(BF1 OR BF2,1,0),COLOR00FF00,NODRAW;
{以下设置主图显示方式}
STICKLINE(C>0,关注,关注,5,-1),COLORFFFFFF;
支撑:STICKLINE(跟踪,关注,关注,3,0),COLORFF00FF;
HHJSJDA:=(2.97*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
【箱顶】:PEAK(CLOSE,N,1)*0.98;
【箱底】:TROUGH(CLOSE,N,1)*1.02;
【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;
{135均线战法}
YY1:=C>MA(C,11) AND OPEN<MA(C,11);{一阳三线}
YY3:=C>MA(C,33) AND OPEN<MA(C,33);
YY5:=C>MA(C,55) AND OPEN<MA(C,55);
DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.1,'一阳三线'),COLORRED;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'进'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;。

相关文档
最新文档