暴涨主图指标通达信指标公式源码

合集下载

通达信指标公式源码(MA均线)主图指标

通达信指标公式源码(MA均线)主图指标

(MA均线)主图指标M5:MA(C,5),COLORWHITE;M10:MA(C,10),COLORYELLOW;M20:MA(C,20),COLORCYAN;M60:MA(C,60),COLORGREEN,LINETHICK2;M120:MA(C,120),COLORRED,LINETHICK2;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;JRH:=HHV(C,2);JRL:=LLV(C,2);VAR01:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR02:=(REF(VAR01,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR03:=(REF(VAR02,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR04:=(REF(VAR03,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR05:=(REF(VAR04,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR06:=(REF(VAR05,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR07:=(REF(VAR06,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR08:=(REF(VAR07,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR09:=(REF(VAR08,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR09,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)); VAR010:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR011:=(REF(VAR010,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR012:=(REF(VAR011,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR013:=(REF(VAR012,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR014:=(REF(VAR013,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR015:=(REF(VAR014,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR016:=(REF(VAR015,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR017:=(REF(VAR016,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR018:=(REF(VAR017,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR01);VAR1A:=((REF(VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR01 OR VAR02 OR VAR03 OR VAR04 OR VAR05 OR VAR06 OR VAR07 OR VAR08 OR VAR09 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);今离场价:REF(离场,1),COLOR0000FF,NODRAW;明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORGREEN,NODRAW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0); 主力进:=(超B)+(大B),NODRAW;主力出:=(超S)+(大S),NODRAW;小散进:=(中B)+(小B),NODRAW;小散出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(主力进),MAX(ABS(主力出),MAX(ABS(小散进),ABS(小散出))))),NODRAW;DRAWRECTREL(0,CONST(940-(ABS(主力进)*250/DAZHIV)),30,960,IF(CONST(主力进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(940-(ABS(主力出)*250/DAZHIV)),62,960,IF(CONST(主力出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(70,CONST(940-(ABS(小散进)*250/DAZHIV)),100,960,IF(CONST(小散进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(102,CONST(940-(ABS(小散出)*250/DAZHIV)),132,960,IF(CONST(小散出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(主力进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.033,0.9,0,STRCAT('',CON2STR(主力出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.9,0,STRCAT('',CON2STR(小散进/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.101,0.9,0,STRCAT('',CON2STR(小散出/10,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,1,0,'(X10万元)'),COLOR00FFFF; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,'主进出'),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,'散进出'),COLORCYAN;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW; DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;VAR111:=ZIG(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 <REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LINETHICK1;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;年:MA(CLOSE,22),LINETHICK2,COLORWHITE;MAA5:MA(C,5),COLORFF00FF,LINETHICK2;MAA10:=MA(C,10);MAA30:MA(C,30),COLORRED;KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;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;STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,100,0),COLORWHITE; DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95);。

涨停战队主图通达信指标公式源码

涨停战队主图通达信指标公式源码

涨停战队主图(和谐全加密)通达信源码主图附图公式源码X:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,13)+MA(CLOSE,21))/5;牛熊线:X,COLORWHITE,LINETHICK2;ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;TDXSTEP250:STICKLINE(ZDF>9.85,OPEN,CLOSE,3.2,0),COLORRED;TDXSTEP251:STICKLINE(ZDF<(-9.85),OPEN,CLOSE,3.2,0),COLORBLUE;TDXSTEP252:DRAWTEXT(ZDF>9.85,LOW*0.95,2),COLORRED;TDXSTEP253:DRAWTEXT(ZDF<(-9.85),LOW*0.96,3),COLORBLUE;A4:=MA(CLOSE,20);A5:=CLOSE>MA(CLOSE,5);A6:=MA(CLOSE,5)>MA(CLOSE,10);A7:=CLOSE>MA(CLOSE,10);A8:=MA(CLOSE,5)>MA(CLOSE,20);A9:=CLOSE>MA(CLOSE,20);A10:=REF(A4,1);A11:=A4>A10;AVX:=IF(A5,10,0-10)+IF(A6,10,0-10)+IF(A7,10,0-10)+IF(A8,10,0-10)+IF(A9,10,0-10)+I F(A11,10,0-10);SC:=REF(AVX,1)<=0 AND AVX>0;A1:=AVX>10 AND AVX>=REF(AVX,1) AND AVX>=REF(AVX,2);A2:=AVX=60;{好股票网 整理}A3:=SC OR A1 OR A2;TDXSTEP254:STICKLINE(A3,OPEN,CLOSE,1.3,0),COLORMAGENTA;TDXSTEP255:STICKLINE(A2,OPEN,CLOSE,1.3,0),COLORYELLOW;CX:=BARSLAST(NOT(A3));CX1:=BARSLAST(NOT(A2));TDXSTEP256:STICKLINE(A3>0,REF(LOW,CX)*0.96,REF(LOW,CX)*0.965,4,0),COLORRED; TDXSTEP257:DRAWNUMBER(A2,REF(LOW,CX)*0.95,CX1),COLORYELLOW;V1:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);HY1:=REF(EMA(V1,3),1);DK:=MA((CLOSE-HY1)*28,2)*0.1;HS:=VOL*100/CAPITAL;ZL:=MA(HS,4);DH:=MA(HS,9);ZH:=MA(HS,17);SH:=MA(HS,34);JL:=(ZL+DH+ZH+SH)/4;ZLNL:=ZL-JL;AA1:=DK>=0 AND DK>=REF(DK,1) AND CLOSE>=X;AA2:=ZLNL>=0 AND ZLNL>=REF(ZLNL,1) AND CLOSE>=X;TDXSTEP258:DRAWICON(AA2,LOW*0.97,27);TDXSTEP259:DRAWTEXT_FIX(1,0,0,0,4),COLORE837EC;TDXSTEP260:DRAWTEXT_FIX(1,0,0.05,0,12),COLORE837EC;TDXSTEP261:DRAWTEXT_FIX(1,0,0.1,0,13),COLORE837EC;。

爆涨临界点通达信指标公式源码

爆涨临界点通达信指标公式源码

精准高成功率公式买点参考竖线及信号共振准【副图、说明、贴图】用法:不多说了,公式很简单,只要出现竖线,线周围至少3个图标信号就可以考虑关注。

竖线及信号共振准,连续两天多信号共振则说明启爆开始了。

公式内容非常多,综合了很多经典牛X的公式,更多的使用方法你挖掘。

DRAWGBK(1,RGB(36,38,40),RGB(24,16,51),0,1,0);VAR1B := (100 * (EMA(EMA(C - REF(C,1),6),6))) / (EMA(EMA(ABS(C - REF(C,1)),6),6)); 抄底红箭:= ((LLV(VAR1B,2) = LLV(VAR1B,7)) AND (COUNT(VAR1B < 0,2))) AND CROSS(VAR1B,MA(VAR1B,2));量能:= IF((MA((VOL - REF(VOL,1)) / REF(VOL,1),10)) = DRAWNULL,EMA((VOL - REF(VOL,1)) / REF(VOL,1),10),MA((VOL - REF(VOL,1)) / REF(VOL,1),10));股价:= IF(((CLOSE - MA(CLOSE,22)) / MA(CLOSE,22)) = DRAWNULL,(CLOSE -EMA(CLOSE,22)) / EMA(CLOSE,22),(CLOSE - MA(CLOSE,22)) / MA(CLOSE,22));主力量能:= IF(((股价* (100 + 量能)) - (MA(股价* (100 + 量能),7))) = DRAWNULL,(股价* (100 + 量能)) - (EMA(股价* (100 + 量能),7)),(股价* (100 + 量能)) - (MA(股价* (100 + 量能),7)));量能金叉:= CROSS(主力量能,0);TYP := ((HIGH + LOW) + CLOSE) / 3;CCI := (TYP - MA(TYP,14)) / (0.015 * AVEDEV(TYP,14));CCI金叉:= CROSS(CCI,-100);A1 := EMA(C,14);A1X := ((A1 - REF(A1,1)) / REF(A1,1)) * 100;出击A := IF(A1X >= 0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)) + 1),DRAWNULL);出击A金叉:= CROSS(A1X,0);DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD金叉:= CROSS(DIFF,DEA);MTR := EXPMEMA(MAX(MAX(HIGH - LOW,ABS(HIGH - REF(CLOSE,1))),ABS(REF(CLOSE,1) - LOW)),14);HD := HIGH - REF(HIGH,1);LD := REF(LOW,1) - LOW;DMP := EXPMEMA(IF((HD > 0) AND (HD > LD),HD,0),14);DMM := EXPMEMA(IF((LD > 0) AND (LD > HD),LD,0),14);PDI := (DMP * 100) / MTR;MDI := (DMM * 100) / MTR;ADX := EXPMEMA(((ABS(MDI - PDI)) / (MDI + PDI)) * 100,6);ADXR := EXPMEMA(ADX,6);X1 := MAX(C,O);X2 := MIN(C,O);X := ((REF(C > O,2)) AND (REF(X1,2) >= HHV(X1,2))) AND (REF(X2,2) <= LLV(X2,2));B := BARSLAST(X) + 2;A := ((REF(X1,B) >= HHV(X1,B)) AND (REF(X2,B) <= LLV(X2,B))) AND (EVERY(V <= REF(V,1),B));肉夹馍:= (((REF(A,1) AND (C > O)) AND (C > REF(HHV(H,B),1))) AND (V >REF(HHV(V,B),1))) AND (EVERY(MA(C,5) > MA(C,10),B + 1));平台起飞: IF(((LAST(((H - L) / REF(C,1)) < 0.1,5,0)) AND (VOL > (REF(VOL,1) * 2))) AND (C > (REF(C,1) * 1.05)),1,DRAWNULL),NODRAW,COLOR6060A0;NH := 18;LOWV := LLV(LOW,NH);HIGHV := HHV(HIGH,NH);MAV := MA(V,3);横盘:= ((HIGHV - LOWV) / NH) < 0.15;放量1 := V >= (1.8 * MAV);今天大阳:= ((C - REF(C,1)) / REF(C,1)) >= 0.05;启动: IF((横盘AND 放量1) AND 今天大阳,1,DRAWNULL),NODRAW,COLOR4080FF;A☆:= DMA(((H + L) + (C * 2)) / 4,0.9);B☆:= VOL / (((H - L) * 2) - (ABS(C - O)));C☆☆:= (IF(C > O,B☆* (H - L),IF(C < O,B☆* ((H - O) + (C - L)),VOL / 2))) + (IF(C > O,0 - (B☆* ((H - C) + (O - L))),IF(C < O,0 - (B☆* (H - L)),0 - (VOL / 2))));A☆☆:= (C☆☆/ 20) / 1.15;攻击流量:= ((A☆☆* 0.618) + (REF(A☆☆,1) * 0.382)) + (REF(HSL.HSL,2) * 0.168);B☆☆:= EMA(攻击流量,3);流量:= IF(B☆☆> REF(B☆☆,1),1,0);AA☆:= ((MAX(C,O) - MIN(C,O)) / MIN(C,O)) < 0.00618;BB☆:= ((H - MAX(C,O)) / MAX(C,O)) > 0.00382;DD☆:= ((MIN(C,O) - L) / L) > 0.00382;EE☆:= ((ABS(BB☆- DD☆)) / C) < 0.00618;星☆星:= ((AA☆AND BB☆) AND DD☆) AND EE☆;星线选:= ((((星☆星= 1) AND (流量= 1)) AND (C > O)) AND ((ABS((C - MA(C,20)) / MA(C,20))) > 0.0382)) AND ((H - MAX(C,O)) <= (MIN(C,O) - L));星线确认: IF(((IF((REF(星线选,1) = 1) AND (C >= REF(C,1)),1,0)) AND (C > O)) AND (((C - REF(C,1)) / REF(C,1)) > 0.00618),1,DRAWNULL),NODRAW,COLORFF3399;一阳穿三线: IF(((((CROSS(PDI,MDI) AND CROSS(PDI,ADX)) AND CROSS(PDI,ADXR)) AND (CLOSE > OPEN)) AND ((C / REF(C,1)) > 0.5)) AND (VOL > (MA(VOL,5) *1.5)),1,DRAWNULL),NODRAW,COLOR800080;T31 := (REF(C,1) / REF(C,2)) >= 1.095;T32 := (O > REF(C,1)) AND (C > O);T33 := ((H > C) AND (O > L)) AND (L >= REF(C,1));T34 := V > REF(V,1);涨停螺旋: IF(((T31 AND T32) AND T33) ANDT34,1,DRAWNULL),NODRAW,COLOR002080;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);KD金叉:= CROSS(K,D);A1B := EMA(((L + H) + (C * 2)) / 4,14);A1XB := ((A1B - REF(A1B,1)) / REF(A1B,1)) * 100;出击B := IF((A1XB >= 0) AND (BARSLAST(CROSS(A1XB,0)) > 0),REF((C + O) /2,BARSLAST(CROSS(A1XB,0))),DRAWNULL);出击B金叉:= CROSS(出击B,0);WMTM := CLOSE - REF(CLOSE,12);动量金叉:= CROSS(WMTM,0);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));K线金底:= (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;下跌:= ((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18;K线银底:= (下跌AND (C > O)) AND (C > REF(C,1));金银K线:= REF(K线银底,1) AND K线金底;HLC := REF(MA(((HIGH + LOW) + CLOSE) / 3,10),1);HV := EMA(HHV(HIGH,10),3);LV := EMA(LLV(LOW,10),3);麦克支撑压力:= EMA((HLC * 2) - LV,3);短线突击:= EMA((C + REF(C,1)) / 2,3);PSY := ((COUNT(CLOSE > REF(CLOSE,1),12)) / 12) * 100;PSYMA := MA(PSY,6);预选安全区域:= (C <= 麦克支撑压力) AND (C >= 短线突击);做空衰歇:= CROSS(ADX,MDI);做多金叉:= CROSS(PDI,MDI);拉升金叉:= CROSS(ADX,ADXR) AND (PDI > MDI);初选量能金叉:= 量能金叉AND (金银K线OR 抄底红箭);初选基础池:= (预选安全区域AND (((金银K线OR 抄底红箭) OR 动量金叉) OR (做空衰歇OR 做多金叉))) AND ((初选量能金叉OR CCI金叉) OR 出击A金叉);动量金叉确认:= (动量金叉OR (REF(动量金叉,1) AND (拉升金叉OR 做多金叉))) OR (做多金叉AND 做空衰歇);出击B金叉确认:= 出击B金叉AND ((REF(CCI金叉OR KD金叉,1)) OR 做空衰歇);做多金叉确认:= 做多金叉OR (做空衰歇AND 拉升金叉);MACD金叉确认:= MACD金叉AND REF(量能金叉,1);KD金叉确认:= KD金叉AND (REF((金银K线OR 抄底红箭) OR 做空衰歇,1));稳操胜券: IF((REF(初选基础池,1) AND ((动量金叉确认OR 出击B金叉确认) OR 启动)) AND ((做多金叉确认OR MACD金叉确认) OR KD金叉确认),1,DRAWNULL),COLORA000FF; 追涨: IF(((((肉夹馍OR 平台起飞) OR 启动) OR 一阳穿三线) OR 星线确认) OR 涨停螺旋,1,DRAWNULL),COLORRED;关注:= ((((((((金银K线+ 抄底红箭) + 量能金叉) + CCI金叉) + CROSS(出击A,0)) + CROSS(出击B,0)) + 拉升金叉) + 做多金叉) + KD金叉) + MACD金叉;DRAWBAND(关注,RGB(51,32,64),0,RGB(255,96,96));STICKLINE(稳操胜券,0,9.0,0.8,0),COLORLIMAGENTA;STICKLINE(涨停螺旋,0,4.0,0.3,0),COLOR002080;STICKLINE(星线确认,0,3.5,0.0,0),COLORFF0080;STICKLINE(肉夹馍,0,3.0,1.3,0),COLORRED;STICKLINE(一阳穿三线,0,2.5,1.8,0),COLORB040B0;STICKLINE(启动,0,2.0,2.3,0),COLOR0080FF;STICKLINE(平台起飞,0,1.5,2.8,0),COLOR6060A0;追涨显示条件:= ((((肉夹馍OR 平台起飞) OR 启动) OR 一阳穿三线) OR 星线确认) OR 涨停螺旋;金K线显示条件:= ((REFX(稳操胜券OR 追涨显示条件,1)) OR 初选基础池) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);银K线显示条件:= (REFX(K线金底AND 金K线显示条件,1)) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);STICKLINE(K线银底AND 银K线显示条件,0,0.5,3.5,0),COLORLIGRAY;STICKLINE(金银K线AND 金K线显示条件,0,1.0,3.3,0),COLOR006060;图标显示:= ((REFX(稳操胜券,1) OR 稳操胜券) OR 追涨显示条件) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);DRAWICON(抄底红箭AND 图标显示,0.3,1);DRAWICON(出击A金叉AND 图标显示,1.0,16);DRAWICON(出击B金叉AND 图标显示,2.0,17);DRAWICON(CCI金叉AND 图标显示,3.0,25);DRAWICON(量能金叉AND 图标显示,4.0,26);DRAWICON(KD金叉AND 图标显示,5.0,27);DRAWICON(MACD金叉AND 图标显示,6.0,34);DRAWICON(做多金叉AND 图标显示,7.0,13);DRAWICON(做空衰歇AND 图标显示,6.5,14);DRAWICON(拉升金叉AND 图标显示,8.0,23);DRAWICON(动量金叉AND 图标显示,9.5,30);。

非常全面十分够牛的主图指标【乖离 神枪手 短线暴涨 绝对底部】 通达信指标公式源码

非常全面十分够牛的主图指标【乖离 神枪手 短线暴涨 绝对底部】 通达信指标公式源码

非常全面十分够牛的主图指标【乖离神枪手短线暴涨绝对底部】MA5:MA(C,5);MA6:=MA(C,6);MA10:MA(C,10);MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);乖离2:=(MA20-MA30)/MA30*100; VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);MAX1:=MAX(MA20,MA30);MAX2:=MAX(MAX1,MA60);MIN11:=MIN(MA20,MA30);MIN2:=MIN(MIN11,MA60);K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}VAR2:=IF(K1<=8,1,0);上火车轨:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) ANDMA20-MA30>REF((MA20-MA30),1) ;STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;神枪手:=DRAWTEXT(FILTER(上火车轨AND "MACD.DIF"<0.15 AND"MACD.DIF">REF("MACD.DIF",1) ANDMA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND J1>REF(J1,1) AND( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20))),5),L*0.98,'←神枪手');神枪手选股:=FILTER(上火车轨AND "MACD.DIF"<0.15 AND"MACD.DIF">REF("MACD.DIF",1) ANDMA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND J1>REF(J1,1) AND( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20)) ),5);{44.40%15240}短线暴涨:DRAWTEXT(FILTER( (VAR1 OR VAR2) AND MA10>REF(MA10,1) AND COUNT(MA30>REF(MA30,1),3)=3 AND MA30>MA60 AND COUNT(CROSS(MA5,MA30),3) AND J1>MJ1 ANDMA(V,5)>MA(V,60)AND MA(V,60)>REF(MA(V,60),1),5),MA60*0.99,'短线暴涨'),COLORRED;DRAWTEXT(CROSS("KDJ.K"(5,2,3),"KDJ.D"(5,2,3)) AND "KDJ.D"(5,2,3)<30 AND J1>MJ1 ANDMA60>REF(MA60,1) AND COUNT(J1<1,3)>=1 ,L*0.995,'←买入'),COLORYELLOW; DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3)) AND "KDJ.D"(5,2,3)>65 AND J1<MJ1 ANDCOUNT(J1>1,3)>=1,H*1.005,'←卖出'),COLORGREEN;DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6)) AND "KDJ.D"(18,9,6)>60 AND "KDJ.J"(45,15,15)>90,H*1.03,'←顶'),COLORRED;DRAWTEXT(CROSS(MA5,MA6) AND "KDJ.K"(5,3,3)>=50 AND "KDJ.J"(5,3,3)<31 ,L*0.92,'←再买'),COLORMAGENTA;XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点');DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部');X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4: =(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR1 2,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE ,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;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=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信指标公式源码 指导线指标 主图源码

通达信指标公式源码 指导线指标 主图源码

{背景长线}UR:=10;LR:=10;TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));A:=EMA((LOW+CLOSE+OPEN)/3,28);B:=REF(EMA((LOW+CLOSE+OPEN)/3,28),1);N:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C)); D:=C>=MA(C,N);E:=C<MA(C,N);上线:=SMA(C,6.5,1);下线:=SMA(C,13.5,1);上线1:=SMA(C,3,1);下线1:=SMA(C,8,1);{}STICKLINE( A>B OR D>0 OR 上线>下线,UPPER*1.01,LOWER*0.99,4.2,0),COLORADEAEA; STICKLINE( A<B OR E>0 OR 下线>上线,UPPER*1.01,LOWER*0.99,4.2,0),COLORA8A8A8; {背景中线}AA10:=MA(CLOSE,8);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);JJ:=(CLOSE+HIGH+LOW)/3;A1:=EMA(JJ,10);B1:=REF(A1,1);A0:=(L+H+C*2)/4;A111:=EMA(A0,14),LINETHICK2;A211:=EMA(A0,25),LINETHICK2;A1X:=(A111-REF(A111,1))/REF(A111,1)*100,NODRAW;A2X:=(A211-REF(A211,1))/REF(A211,1)*100,NODRAW;看多:=IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRA WNULL);逃顶:=IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRA WNULL);AF:=EMA((CLOSE+HIGH+LOW)/3,10);BF:=IF(YEAR<=2017,IF(YEAR<2017,REF(AF,1),IF(YEAR=2017 ANDMONTH<10,REF(AF,1),0)),0);{}STICKLINE(A1>B1 OR AA10>AA12 OR A1X>=0 ORAF>BF ,UPPER,LOWER,4.2,0),COLORADEAEA;STICKLINE(A1<B1 OR AA10<AA12 OR (A1X<0 AND A2X<0) ORAF<BF ,UPPER,LOWER,4.2,0),COLORGRAY;{};DRAWKLINE(H,O,L,C);{MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF( YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL, 8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7 *REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF( YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:=MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;} {1}{AA05:MA(C,5),LINETHICK3,COLOR00CCFF;五日乖离率:=(C-AA05)/AA05*100;BB051:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB051>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORRED;AA101:=MA(C,10);AA20:=MA(C,20);BB101:=ATAN((AA101/REF(AA101,1)-1)*100)*180/3.1416;IF(BB051<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK3,COLORGREEN;}{};{1}AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4) +3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1,COLORWHITE;中线:=VAR6,COLORYELLOW;DRAWBAND(短线,RGB(220,163,0),中线,RGB(0,0,220));{提示点}买线:=EMA(C,4);卖线:=EMA(SLOPE(C,20)*10+C,35);DRAWTEXT(CROSS(买线,卖线),LOW*0.98,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖线,买线),HIGH*1.02,'卖'),COLORGREEN;{}FF1:=EMA(CLOSE,3);MA151:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF1,MA151),(LOW * 0.99),'上拐点'),COLOR00FFFF; DRAWTEXT(CROSS(MA151,FF1),(HIGH * 1.02),'下拐点'),COLOR00FF00;{}MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) ANDCROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖1'),COLORGREEN;{}{}多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3 ,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) ,3,1),2,1);天线:=78.89;DRAWTEXT(CROSS(天线,多方趋势),H*1.01,'逃顶'),COLOR00FF00; {}VAR51:=3;VAR52:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) -LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE -LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)); DRAWTEXT(CROSS(VAR52,VAR51), LOW,'←启动')COLORMAGENTA;。

通达信牛暴涨主图指标公式通达信指标公式源码

通达信牛暴涨主图指标公式通达信指标公式源码

通达信牛暴涨主图指标公式Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTL INE,COLORBLUE;ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINET HICK2,COLORRED;ZD2:EMA(ZD1,25),LINETHICK2;DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRAWKLINE(H,O,L,C);STICKLINE(ZD1>LOW ANDZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORYELLOW; STICKLINE(ZD1>MIN(C,O) ANDZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORYELLOW;VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6 );回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));XG:=ZD1>HIGH AND 回调买AND L<=ZD1;DRAWTEXT(XG,L,'▲买入'),COLORRED;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN (OPEN,CLOSE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ -MIN(CLOSE,OPEN))));QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,( HIGH-MAX(OPEN,CLOSE))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX (CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA, LINETHICK;V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMA(V2*120/FROMOPEN*5,2,1);V10:=SMA(V5,5,1);V20:=SMA(V10,5,1);DY:=CURRBARSCOUNT=1 AND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;{DRAWTEXT(XG2,L,'▲抓牛'),COLORYELLOW;}DRAWTEXT(XG2 AND L<ZD1,L,'↖牛暴涨'),COLORRED;超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+中B+小B)+(超S+大S+中S+小S);大宗净流入:=(超B+大B)+(超S+大S);超大单:=(超B)+(超S);大单:=(大B)+(大S);中单:=(中B)+(中S);小单:=(小B)+(小S);大宗进:=(超B)+(大B);大宗出:=(超S)+(大S);非大宗进:=(中B)+(小B);非大宗出:=(中S)+(小S);资金流向:=(超B+大B+中B+小B)+(超S+大S+中S+小S);近5日流向:=SUM(资金流向,5);近10日流向:=SUM(资金流向,10);主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHI CK2;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单))))),NODRAW;DRAWRECTREL(5,CONST(830-(ABS(超大单)*500/AAB))/2,35,460,IF(CONST(超大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(40,CONST(830-(ABS(大单)*500/AAB))/2,70,460,IF(CONST(大单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWRECTREL(110,CONST(830-(ABS(小单)*500/AAB))/2,140,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(0,255,255)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超户大户中户散户'),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超大单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(大单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(小单)),COLORWHITE;TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);筹码突破:=C>TYX3AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORRED;A111:=COST(85);A222:=COST(15);A333:=A111-A222;A444:=(A111+A222)/2;单峰密集:=A333/A444*100<30,LINETHICK0;{A5:=A3/A4*100<30;}B1:=HHV(HIGH,250);B2:=LLV(LOW,250);B3:=B1-B2;B4:=(A444-B2);低位:=A444<(B3*04+B2),LINETHICK0;低位单峰密集:=单峰密集AND 低位;B5:=C/REF(C,1)>1.04; {AND V/REF(V,1)>2;{ AND H=C;}主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);主力持仓大于75%:=主力持仓%>=75 {AND 主力持仓%<=91} AND C>0 AND CLOSE>OPEN AND C=H;敢死吗:=主力持仓大于75% AND 低位单峰密集AND B4 ANDWINNER(C)>=0.91 AND B5,COLORGREEN,LINETHICK3;{DRAWTEXT(FILTER(敢死吗=1,5),L,'----敢死吗'),COLORGREEN;} DRAWICON(FILTER(敢死吗=1,5),L*0.995,25);DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA1:=EMA(DIF1,9);AAA1:=(DIF1-DEA1)*2*60;AAA上:=IF(AAA1>REF(AAA1,1),AAA1,DRAWNULL);AAA下:=IF(AAA1<REF(AAA1,1),AAA1,DRAWNULL);买:=13;入:=AAA1-REF(AAA1,1);正大:=CROSS(入,买);DIF2:=EMA(DCLOSE,10)-EMA(DCLOSE,72);DEA2:=EMA(DIF2,17);AAA:=(DIF2-DEA2)*2*60;入2:=AAA-REF(AAA,1);牛股:=CROSS(入2,13);正大牛股:=正大AND 牛股;DRAWICON(正大牛股,L*0.99,1);VAR1:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; VAR3:=SMA(VAR2,3,1);天:=100+(-ABS(VAR1)),COLORRED;下:=SMA(VAR3,2,1);无:=ABS(VAR1),COLORGREEN;敌:=50,COLORFFAA00,LINETHICK3;LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 卖:=CROSS(90,操作线);DRAWICON(卖,H*1.01,8);绝底线:=5;买阴线1:操作线<5 AND ZD1>ZD2 AND L<ZD1;DRAWICON(买阴线1,L*0.98,7);买阴线2:操作线<5 AND ZD1<ZD2 AND L<ZD1;DRAWICON(买阴线2,L*0.995,7);DRAWTEXT_FIX(1,0.20,0.88,0,HYBLOCK),COLORGREEN; DRAWTEXT_FIX(1,0.20,0.94,0,EXTERNSTR(0,3))COLORFF88FF;。

通达信最好的致命指标,不看你就损失大了(源码主图公式)

通达信最好的致命指标,不看你就损失大了(源码主图公式)

通达信最好的致命指标,不看你就损失大了(源码主图公式)公式说明:任何指标都不可能让人傻瓜式操作都赚大钱,都必须要自己总结一些规律,并且要结合市场情况对指标的可信度做出判断。

今天把选股公式的一些体悟跟大家分享一下,说的不对说的不好请大家多指正,共同探讨才能让自己的技术进步!涨停位置:A2:=MA(C,18);A3:=(C-A2)/A2*100>=-9.9 AND C谷底涨停:A3 AND C/REF(C,1)>1.099,COLORRED;B1:=BARSLAST(LLV(C,100));B2:=C/REF(C,1)>=1.095;B3:=MA(C,10)>REF(MA(C,10),1);低位涨停: B2 AND B3 AND O/LLV(C,100)<1.3 AND B1<20;D2:=C/REF(C,1)>=1.095;D3:=MA(C,20)>REF(MA(C,20),1) AND MA(C,55)>REF(MA(C,55),1);中位涨停: D2 AND D3 AND O/LLV(C,100)>1.3 AND O/LLV(C,100)<1.5;一阳穿六均线选股预警公式指标源码:MA5:=MA(C,5);MA13:=MA(C,13);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);MA144:=MA(C,144);收盘低:=REF(C,1)收盘高:=CROSS(C,MA5) AND CROSS(C,MA13) AND CROSS(C,MA30) AND CROSS(C,MA60) AND CROSS(C,MA120) AND CROSS(C,MA144);选股XG:收盘低 AND 收盘高;老鸭头选股公式:D!LYT (老鸭头) 缺省周期:日线MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));{5日均线上穿60日均线} pday2 := barslast(cross(ma10,ma60));{10日均线上穿60日均线,至此形成鸭颈部}pday3 := barslast(high=hhv(high,pday2));{形成头部,要下跌} pday4 := barslast(cross(ma10,ma5));{下跌后,5日均线和10日均线死叉}pday5 := barslast(cross(ma5,ma10));{回落不久,5日均线和10日均线形成金叉,形成嘴部}a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;A1 AND A2;四合一金叉选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:='KDJ.K';J1:='KDJ.J';金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;一阳穿三线选股公式:MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);低:=REF(C,1)高:=CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA5);选股:低 AND 高;次日涨停公式:A : MA(CLOSE,26);UP: A 2*STD(CLOSE,26);LOWER: A - 2*STD(CLOSE,26);W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3);捕捉中短线牛股指标:WX:=MAX(MA(C,5),MAX(MA(C,10),MAX(MA(C,20),MAX(MA( C,60),MA(C,120)))));ZS:=IF(CROSS(C,WX) AND COUNT(C>WX,5)=1,1,0);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA12 0:=MA(C,120);A1:=CROSS(MA5,MA10);B1:=C>MA60 AND MA5>MA60 AND MA10>MA60;C1:=MA60>MA120;D1:=A1 AND B1 AND C1;ZB:=CROSS(MACD.MACD,0) AND C>MA(C,5);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;AB:=CROSS(K,D);第一阳起爆:COUNT(D1,5)=1>0 AND COUNT(ZS,3) AND ZB AND AB;日线盘中抓涨停:盘中满足下面所有条件的个股,出现报警。

暴涨信号和和金钻极品通达信指标公式源码.doc

暴涨信号和和金钻极品通达信指标公式源码.doc

A E节以giE才后申任I 奸—成加『♦邮* tiaWM 4用驹卞勺商ft ,.:Ti的解行金尊二is*名务土的女SM* 津"Ff:妍宝mu叽映等小炭土U成左部1? 1•.枝『妙5?樨得粕H房*:上亭* 勤舛%:)木捋R竖* •小g 梨帷±19打I甘0 5—,壬初(泌咒2 d,,田拉月技是多〉暮胡E?5 ?:0 <a{暴涨信号主图}{主升上车主图}VAR1:=5;VAR2: = 10;VAR3:=20;VAR4:=60;MA1:MA(CLOSE,VAR1);MA2:MA(CLOSE,VAR2);MA3:MA(CLOSE,VAR3);MA4:MA(CLOSE,VAR4);VAR5:=EMA(DCLOSE,12)-EMA(DCLOSE,26);VAR6:=EMA(VAR5,9);VAR7:=(VAR5-VAR6)*2*60;VAR8:=CR0SS(VAR7-REF( VAR7,1),15);DRAWICON(VAR8,LOW*0.99,25);{金钻极品}修改版幅图DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF・DEA)*2,COLORSTICK;{柱状线}AAA1:=(DIF-DEA)*2*6O;必涨天上:IF(AAA1>REF(AAA1,1),AAAI,DRAWNULL),STICK,COLORRED,LINETHICK1;必涨天下:IF(AAAlvREF(AAAl,1),AAAI,DRAWNULL),STICK,COLORYELLOW,LINETHICK1;黑马线:10,POINTDOT,COLORFFFFFF;黑白线:25,POINTDOT,COLORFFFFFF;白马线:40,POINTDOT,COLORFFFFFF;暴涨线:60,POINTDOT,COLORFFFFFF;主力:AAA1-REF(AAA1Z1),COLORRED; DRAWICON(CROSS(主力,黑马线),黑马线,34); DRAWICON(CROSS(主力,黑白线),黑白线,9); DRAWICON(CROSS(主力,白马线),白马线,25); DRAWICON(CROSS(主力,暴涨线),暴涨线,11); 合二为一源码:{暴涨信号主图}这个是添加到均线主图公式后面的VAR5A:=EMA(DCLOSE,12)-EMA(DCLOSE,26); VAR6A:=EMA(VAR5A,9);VAR7A:=(VAR5A-VAR6A)*2*60;VAR8A:=CROSS(VAR7A-REF(VAR7A Z1),15); DRAWICON(VAR8A,LOW*1.09,25);黑马线:15,POINTDOT,COLORFFFFFF;主力:VAR7A-REF(VAR7A,1),COLORRED; DRAWICON(CROSS(主力,黑马线),黑马线,25);。

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

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

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;。

超级主图,不赚都不行通达信指标公式源码

超级主图,不赚都不行通达信指标公式源码

超级主图,不赚都不行EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*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);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=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,COLORYELLOW; 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;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 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COL ORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COL ORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。

暴涨主图指标通达信指标公式源码

暴涨主图指标通达信指标公式源码

暴涨主图指标暴涨主图MA5:MA(CLOSE,M1);MA10:MA(CLOSE,M2);MA24:MA(CLOSE,M3);MA30:MA(CLOSE,M4);MA60:MA(CLOSE,M5);MA120:MA(CLOSE,M6);MA250:MA(CLOSE,M7);DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIF,9);AAA:=(DIF-DEA)*2*60;起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2; DRAWTEXT(起爆,L*0.99,'◆■◆↖暴张'),COLORYELLOW,LINETHICK2; STICKLINE(REF(COUNT(C<MA(REF(HHV((C+L+O+H)/4,40),1),3),5)=5,1) AND C>MA(REF(HHV((C+L+O+H)/4,40),1),3) ANDC>O,C,O,1.3,0),COLORYELLOW;TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);STICKLINE(REF(COUNT(C<TYX2,5)=5,1) AND C>TYX2 ANDC>O,C,O,1.3,0),COLORBLUE;DRAWTEXT(HIGH>REF(HIGH,1) ANDREF(HIGH,2)>REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,2)>REF(LOW,1)AND MA(CLOSE,5)<MA(CLOSE,10),L-0.4,'■底方买进'),COLORMAGENTA;主力:=EMA(((2*C+H+L)/4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13){*VAR2}, COLORRED;散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),COLORFF9933;上扬:IF(CROSS(主力,30) AND 散户<主力,L,DRAWNULL),POINTDOT,LINETHICK7,COLORLIMAGENTA;{35,STICK,LINETHICK2,COLOR000000;强弱分界线:=50, POINTDOT, LINETHICK2, COLORFFFF00;}买入脉冲:IF(CROSS(主力,散户) AND 主力<35,L*0.99,DRAWNULL),POINTDOT,LINETHICK7,COLORLIBLUE;VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;操盘线:=SMA(VAR1,5,1),LINETHICK2,COLORRED;趋势线:=SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;买入航标:IF(CROSS(操盘线,趋势线) AND 趋势线<25,L*0.98,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;卖出脉冲:IF(CROSS(散户,主力) AND 散户>75,H*1.03,DRAWNULL),CROSSDOT,LINETHICK3,COLORGRAY; DRAWTEXT(CROSS(主力,散户) AND 主力<22,L,'起动'),COLORYELLOW; DRAWTEXT(CROSS(主力,30) AND 散户<主力,L,'上扬'),COLOR00CCFF; DRAWTEXT(CROSS(主力,65) AND 散户<主力,H,'冲顶'),COLOR9933FF; DRAWTEXT(CROSS(主力,75) AND 散户<主力,H,'小心被套'),COLORRED; DRAWTEXT(CROSS(散户,主力) AND 散户>75,H,'头部'), COLORYELLOW; DRAWTEXT(买入航标>0,L,'买入'),COLORMAGENTA;DRAWTEXT(CROSS(趋势线,操盘线)AND 操盘线>70,H*1.02,'卖出'),COLOR00FF00;FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★追涨'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VARA1:=LLV(LOW,21);VARA2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 100),5);AK:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○关注'),COLORYELLOW;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,COLOR0099FF; DRAWTEXT(介入,L*0.99,'介入'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★买入'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;VZ:=INTPART(AMOUNT)/INTPART(V)/100;DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;EMA20:EMA(C,20),COLORWHITE,NODRAW;EMA40:EMA(C,40),COLORYELLOW,NODRAW;EMA60:EMA(C,60),COLORFF00FF;MA020:=EMA(CLOSE,20);MA040:=EMA(CLOSE,40);MA060:=EMA(CLOSE,60);A1:=OPEN<MA020 OR OPEN<MA040 OR OPEN<MA060;A2:=C>MAX(MA020,MAX(MA040,MA060));A3:=V/MA(V,10)>1.2;A4:=C/REF(C,1)>1.049;A5:=VOL/REF(VOL,1)>=1.9;出水芙蓉:=A1 AND A2 AND A3 AND A4 AND A5 AND O<MA060 AND C>MA060; DRAWTEXT(出水芙蓉,H-0.20,'出水芙蓉');。

通达信指标公式源码 精准的K线主图公式源码

通达信指标公式源码 精准的K线主图公式源码

BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;MA(C,N1);MA(C,N2);MA(C,N3),LINETHICK2;MA(C,N4),COLORLIRED,LINETHICK2; 买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);中:=(MA(CLOSE,30)+MA(C,72))/2,COLOR999999,LINETHICK0;HLY1:=中*1.1,POINTDOT,COLOR999999,LINETHICK0;VAR61:=(CLOSE*2+HIGH+LOW)/4;VAR62:=EMA(VAR61,3);VAR63:=EMA(VAR62,6);L1:=EMA(VAR61,3),LINETHICK0;L2:=EMA(VAR62,4),LINETHICK0;L3:=EMA(VAR63,5),LINETHICK0;{正常上涨}STICKLINE(C>=O,H,L,0,0 ),COLOR0000FF; {红色}STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3.2,0) ,COLOR000055;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.6,0) ,COLOR000077;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.9,0) ,COLOR000099;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.1,0) ,COLOR0000BB;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.2,0) ,COLOR0000FF; {STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0) ,COLOR0000EE;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.4,0) ,COLOR0000FF;}{正常下跌}STICKLINE(OPEN>=CLOSE,H,L,0,0 ),COLORFFFF00; {天蓝}STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3.2,0 ),COLORFF5500;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.6,0 ),COLORFF7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.9,0 ),COLORFF9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.1,0 ),COLORFFBB00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.2,0 ),COLORFFDD00; {STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.2,0 ),COLORFFEE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.4,0 ),COLORFFFF00;}{整理下跌区}{STICKLINE(L1<L2,H,LOW,0 ,0 ),COLORFFFFFF;{灰色}{STICKLINE(L1<L2,CLOSE ,OPEN,3.0,0 ),COLOR555555;STICKLINE(L1<L2,CLOSE ,OPEN,2.5,0 ),COLOR777777;STICKLINE(L1<L2,CLOSE ,OPEN,1.9,0 ),COLOR999999;STICKLINE(L1<L2,CLOSE ,OPEN,1.2,0 ),COLORBBBBBB;STICKLINE(L1<L2,CLOSE ,OPEN,0.4,0 ),COLORDDDDDD;}{STICKLINE(L1<L2,CLOSE ,OPEN,3,0 ),COLORFFEE00;STICKLINE(L1<L2,CLOSE ,OPEN,2,0 ),COLORFFFF00;}{下跌开始}VAR44:=REF(L1,1)>L1 AND L1>L2;STICKLINE(VAR44,H,LOW,0,0 ),COLORFF0000; {蓝色}{STICKLINE(VAR44,CLOSE,OPEN,3.0,0) ,COLOR550000;STICKLINE(VAR44,CLOSE,OPEN,2.5,0) ,COLOR660000;}STICKLINE(VAR44,CLOSE,OPEN,3.2,0) ,COLOR660000;STICKLINE(VAR44,CLOSE,OPEN,2.6,0) ,COLORAA0000;STICKLINE(VAR44,CLOSE,OPEN,1.9,0) ,COLOREE1100;STICKLINE(VAR44,CLOSE,OPEN,1.1,0) ,COLORFF3300;STICKLINE(VAR44,CLOSE,OPEN,0.2,0) ,COLORFF5500;{顶部钝化区}STICKLINE((CLOSE >= HLY1),H,LOW,0 ,0),COLORFF00FF;{粉色}STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,3.2,0),COLOR770077;STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,2.6,0),COLORAA00AA;STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,1.9,0),COLORDD00DD;STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,1.1,0),COLORFF22FF;STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,0.2,0),COLORFF66FF;{STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,3,0),COLORFFDDFF;STICKLINE((CLOSE >= HLY1),CLOSE ,OPEN,2,0),COLORFFEEFF;}{单边下跌}STICKLINE(买线<卖线,H,LOW,0,0 ),COLOR00FF00; {绿色}STICKLINE(买线<卖线,CLOSE ,OPEN,3.2,0),COLOR004400;STICKLINE(买线<卖线,CLOSE ,OPEN,2.6,0),COLOR005500;STICKLINE(买线<卖线,CLOSE ,OPEN,1.9,0),COLOR007700;STICKLINE(买线<卖线,CLOSE ,OPEN,1.1,0),COLOR009900;STICKLINE(买线<卖线,CLOSE ,OPEN,0.2,0),COLOR00CC00;{STICKLINE(买线<卖线,CLOSE ,OPEN,3,0),COLOR00DD00;STICKLINE(买线<卖线,CLOSE ,OPEN,2,0),COLOR00FF00;}{向上变盘}STICKLINE(CROSS(买线,卖线),H,L,0,0),COLOR0033DD;{橘黄}STICKLINE(CROSS(买线,卖线),C,OPEN,3.2,0),COLOR000077;STICKLINE(CROSS(买线,卖线),C,OPEN,2.6,0),COLOR003399;STICKLINE(CROSS(买线,卖线),C,OPEN,1.9,0),COLOR0033DD;STICKLINE(CROSS(买线,卖线),C,OPEN,1.1,0),COLOR0055FF;STICKLINE(CROSS(买线,卖线),C,OPEN,0.2,0),COLOR0099FF;{向下变盘}STICKLINE(CROSS(卖线,买线),H,L,0,0),COLOR00FFFF;{黄色}STICKLINE(CROSS(卖线,买线),C,OPEN,3.2,0),COLOR008888;STICKLINE(CROSS(卖线,买线),C,OPEN,2.6,0),COLOR00AAAA;STICKLINE(CROSS(卖线,买线),C,OPEN,1.9,0),COLOR00CCCC;STICKLINE(CROSS(卖线,买线),C,OPEN,1.1,0),COLOR00EEEE;STICKLINE(CROSS(卖线,买线),C,OPEN,0.2,0),COLOR44FFFF;N1,N2,N3,N4:分别为:5,10,30,60。

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

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

强势区域: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;。

准爆主图 源码通达信指标公式源码

准爆主图 源码通达信指标公式源码

指标源码:DRAWTEXT_FIX(1,0.0,0.02,0,'多空平衡线| 最低点低吸'),COLORRED; DRAWTEXT_FIX(1,0.0,0.08,0,'红线:工作| 蓝线:休息'),COLORFFFFFF; DRAWTEXT_FIX(1,0.0,0.14,0,'红点:买入| 绿点:清仓'),COLORGREEN; DRAWTEXT_FIX(1,0.0,0.2,0,'线上阴线买| 买错也要买'),COLORRED; DRAWTEXT_FIX(1,0.0,0.26,0,'线下阳线卖| 卖错也要卖'),COLORRED;多方强度:EMA(CLOSE,3),LINETHICK1,COLORFFFFDD;IF(多方强度<REF(多方强度,2),多方强度,DRAWNULL),COLORFFFFFF;空方强度:EMA(CLOSE,8),LINETHICK3,COLORFF00FF;IF(空方强度<REF(空方强度,2),空方强度,DRAWNULL),COLORFF0000;多空平衡:EMA(CLOSE,17),LINETHICK4,COLORRED;IF(多空平衡<REF(多空平衡,2),多空平衡,DRAWNULL),COLORYELLOW;洗盘线:EMA(CLOSE,27),LINETHICK1,COLOR80FF00;IF(洗盘线<REF(洗盘线,1),洗盘线,DRAWNULL),LINETHICK1,COLOR408080; DRAWICON(CROSS(多方强度,空方强度),空方强度,34);DRAWICON(CROSS(空方强度,多方强度),空方强度,35);LC:=REF(CLOSE,1);RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100; DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'见机★买'),COLORRED; DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.05,'★卖'),COLORFF00FF; 量:=REF(C,REF(HHV(V,21),0));M1:=MA(C,1);A:=V>1*REF(V,1) AND (C/REF(C,1)-1)*100>9.5 AND M1>=量;DRAWICON(CROSS(A,1),L*0.98,1);DRAWTEXT(A,L*0.93,'追涨停'),COLORFF00FF;古道:=MA(CLOSE,5),LINETHICK1,COLOR00FFFF;西风:=MA(CLOSE,10),LINETHICK1,COLORFF00FF;瘦马:=MA(CLOSE,25),LINETHICK1,COLOR0000FF;断肠:=MA(CLOSE,34),LINETHICK1,COLORFFFF00;人在:=MA(CLOSE,62),LINETHICK1,COLORFF0000;天涯:=MA(CLOSE,99),LINETHICK1,COLOR00FF00;荣归故里:=MA(CLOSE,181),LINETHICK1,COLORFFFFFF;VAR1:=(OPEN+LOW+HIGH+CLOSE)/(4);STICKLINE(1,VAR1,VAR1,6,0),COLORFF00FF;FA:=BARSLAST(CROSS(西风,古道)) AND CROSS(古道,西风);FB:=FA AND (古道>断肠) AND (西风>断肠) AND (西风>REF(西风,1));STICKLINE(FB,LOW,LOW-0.09,4,0),COLORFFFFFF;DRAWTEXT(FB,LOW-0.13,'西风'),COLORFFFFFF;FA1:=BARSLAST(CROSS(人在,瘦马)) AND CROSS(瘦马,人在);FB1:=FA AND (瘦马>天涯) AND (人在>天涯) AND (瘦马>REF(瘦马,1));STICKLINE(FB,LOW,LOW-0.09,4,0),COLORFFFFFF;DRAWTEXT(FB,LOW-0.13,'西风'),COLOR00FF00;VARA:=((AMOUNT)/(VOL))/(100);VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC:=((SUM(AMOUNT,7))/(VARA))/(100);VARD:=DMA(VARB,(VOL)/(VARC));VARE:=((CLOSE-VARD)/(VARD))*(100);VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);VARJ:=MA(VARE,20)+STD(VARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);K:=SMA(VARF,3,1);DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (K>79),HIGH+0.1,'风雨飘摇'),COLOR00FFFF;。

通达信指标公式源码K线主图 主图指标 源码

通达信指标公式源码K线主图 主图指标 源码

源码如下:M5:MA(CLOSE,5);M10:MA(CLOSE,10);M20:MA(CLOSE,20);M30:MA(CLOSE,30);M60:MA(CLOSE,60);M120:MA(CLOSE,120);M250:MA(CLOSE,250);中线【买入】:=COUNT(CLOSE<M20,5)=4 AND CLOSE/M20>1.004 AND CROSS(CLOSE,M20) AND M20>=REF(M20,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;VL:=REF(LOW,1);VAR112:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;VAR114:=MA(VAR112,13);VAR115:=LLV(LOW,34);VAR118:=EMA(IF(LOW<=VAR115,VAR114,0),3);VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR 110*10.9;T:=FILTER(IF(VAR111<=VAR110 AND VAR118>REF(VAR118,1),VAR118*8,0),20); DRAWTEXT(T,LOW-0.5,'←洗盘结束'),COLORFF00FF;DRAWTEXT(T,LOW-0.3,'|'),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.5,'←抄底'),COLORRED;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.3,'|'),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.5,'←逃'),COLORGREEN;JG:=CROSS(M5,M10);VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);NL:=CROSS(MAVOL1,MAVOL2);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2,COLORSTICK;NA:=CROSS(DIF,DEA);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;KD:=CROSS(K,D) AND CROSS(J,D);一招定乾坤:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR(JG AND NA AND KD) OR (NL AND NA AND KD),L*0.95,'←一招定乾坤'),COLORYELLOW; X:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW*0.98,'←短进'),COLORLIMAGENTA;空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11); DRAWTEXT(VAR5,L*0.98,'←追涨'),COLORRED;PT:=EMA(H,20);PAN:=EMA(CLOSE,7);RUO:=MEMA(CLOSE,3);DRAWICON(LONGCROSS(PAN,RUO,0.25) AND PT>H ,L*0.98,1);VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;DRAWTEXT(CROSS(84,VARC),H*1.01,'逃'),COLORYELLOW ;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进场'),COLORYELLOW;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),'出局'),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A75:=(CLOSE > M5);A76:=(M5 > M10);A77:=(CLOSE > M10);A78:=(M5 > M20);A79:=(CLOSE > M20);A710:=REF(M20,1);A711:=(M20 > 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=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右。

通达信指标公式源码必赚钱主图指标

通达信指标公式源码必赚钱主图指标

DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4);。

通达信指标公式源码 分时主图 打板 做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万处画十字星,以示警戒};。

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

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

涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0984,1.110) AND C=H AND C>O; MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORGREEN;MA60:MA(CLOSE,60),COLORBROWN,DOTLINE;MA120:MA(CLOSE,120),COLORLIMAGENTA,DOTLINE;DRAWICON(CROSS(MA10,MA20),MA20,1);DRAWICON(CROSS(MA20,MA60),MA60,1);DRAWICON(CROSS(MA20,MA120),MA120,1);DRAWICON(CROSS(MA60,MA120),MA60,1);反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);DRAWTEXT(月蜘蛛,MA20-0.08,'△蜘'),COLORMAGENTA;DRAWTEXT(反弹托,MA20-0.08,'△反弹'),COLORMAGENTA;DRAWTEXT(月价托,MA20-0.1,'△月托'),COLORMAGENTA;DRAWTEXT(季价托,MA60-0.0.1,'△季托'),COLORMAGENTA;DRAWTEXT(短长价托,L+0.05,'△短长托'),COLOR36C0C1;DRAWTEXT(半年托,MA120-0.05,'△牛来'),COLORRED;DRAWTEXT(熊来,MA60+0.05,'▽熊来'),COLORGREEN;压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10); DRAWTEXT(压,MA20+0.012,'▽压'),COLORYELLOW;VOL5:=MA(VOL,5),COLORWHITE; {好}VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.05,'△芙'),COLORFF00FF;STICKLINE(芙蓉出水,H+2,L-2,0.001,0),COLORYELLOW,DOTLINE;R1:=(C>REF(C,1) AND C>REF(C,2));R2:=(REF(R1,1) AND C<=REF(C,1) AND C>=REF(C,2));R3:=(REF(R2,1) AND C>=REF(C,1) AND C<=REF(C,2));R4:=(REF(R3,1) AND C<=REF(C,1) AND C>=REF(C,2));R5:=(REF(R4,1) AND C>=REF(C,1) AND C<=REF(C,2));R6:=(REF(R5,1) AND C<=REF(C,1) AND C>=REF(C,2));R7:=(REF(R6,1) AND C>=REF(C,1) AND C<=REF(C,2));R8:=(REF(R7,1) AND C<=REF(C,1) AND C>=REF(C,2));R9:=(REF(R8,1) AND C>=REF(C,1) AND C<=REF(C,2));RA:=(REF(R9,1) AND C<=REF(C,1) AND C>=REF(C,2));RB:=(REF(RA,1) AND C>=REF(C,1) AND C<=REF(C,2));RC:=(REF(RB,1) AND C<=REF(C,1) AND C>=REF(C,2));RD:=(C<REF(C,1) AND C<REF(C,2));RE:=(REF(RD,1) AND C>=REF(C,1) AND C<=REF(C,2));RF:=(REF(RE,1) AND C<=REF(C,1) AND C>=REF(C,2));R10:=(REF(RF,1) AND C>=REF(C,1) AND C<=REF(C,2));R11:=(REF(R10,1) AND C<=REF(C,1) AND C>=REF(C,2));R12:=(REF(R11,1) AND C>=REF(C,1) AND C<=REF(C,2));R13:=(REF(R12,1) AND C<=REF(C,1) AND C>=REF(C,2));R14:=(REF(R13,1) AND C>=REF(C,1) AND C<=REF(C,2));R15:=(REF(R14,1) AND C<=REF(C,1) AND C>=REF(C,2));R16:=(REF(R15,1) AND C>=REF(C,1) AND C<=REF(C,2));R17:=(REF(R16,1) AND C<=REF(C,1) AND C>=REF(C,2));R18:=(REF(R17,1) AND C>=REF(C,1) AND C<=REF(C,2));R19:=((REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15OR 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);蓝心板:=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);RSV9:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1);出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0);绿心板:=(出手就赢=50 OR REF("KDJ.J",1)<0) AND "KDJ.J">0;红心板:=蓝心板AND 绿心板;绿心过滤:=IF((蓝心板),DRAWNULL,绿心板);蓝心过滤:=IF((绿心板),DRAWNULL,蓝心板);STICKLINE(涨停,O,C,3.6,1),COLORYELLOW;STICKLINE(涨停AND 蓝心过滤,O,C,0.4,0),COLORBLUE;STICKLINE(涨停AND 绿心过滤,O,C,0.4,0),COLORGREEN;STICKLINE(涨停AND 红心板,O,C,0.4,0),COLORRED;AAA:=CONST(HHV(H,90));AA2:=AMOUNT/V;BB2:=L<AA1*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,5)*0.921;EE2:=V<MA(V,5)*1.5;老鼠仓:=BB2 AND CC2 AND DD2 AND EE2,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=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;,'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

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

暴涨主图指标
暴涨主图
MA5:MA(CLOSE,M1);
MA10:MA(CLOSE,M2);
MA24:MA(CLOSE,M3);
MA30:MA(CLOSE,M4);
MA60:MA(CLOSE,M5);
MA120:MA(CLOSE,M6);
MA250:MA(CLOSE,M7);
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2; DRAWTEXT(起爆,L*0.99,'◆■◆↖暴张'),COLORYELLOW,LINETHICK2; STICKLINE(REF(COUNT(C<MA(REF(HHV((C+L+O+H)/4,40),1),3),5)=5,1) AND C>MA(REF(HHV((C+L+O+H)/4,40),1),3) AND
C>O,C,O,1.3,0),COLORYELLOW;
TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);
STICKLINE(REF(COUNT(C<TYX2,5)=5,1) AND C>TYX2 AND
C>O,C,O,1.3,0),COLORBLUE;DRAWTEXT(HIGH>REF(HIGH,1) AND
REF(HIGH,2)>REF(HIGH,1) AND LOW>REF(LOW,1)
AND REF(LOW,2)>REF(LOW,1)
AND MA(CLOSE,5)<MA(CLOSE,10),L-0.4,'■底方买进'),COLORMAGENTA;

力:=EMA(((2*C+H+L)/4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13){*VAR2}, COLORRED;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),COLORFF9933;
上扬:IF(CROSS(主力,30) AND 散户<主
力,L,DRAWNULL),POINTDOT,LINETHICK7,COLORLIMAGENTA;
{35,STICK,LINETHICK2,COLOR000000;
强弱分界线:=50, POINTDOT, LINETHICK2, COLORFFFF00;}
买入脉冲:IF(CROSS(主力,散户) AND 主力
<35,L*0.99,DRAWNULL),POINTDOT,LINETHICK7,COLORLIBLUE;
VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
操盘线:=SMA(VAR1,5,1),LINETHICK2,COLORRED;
趋势线:=SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;
买入航标:IF(CROSS(操盘线,趋势线) AND 趋势线
<25,L*0.98,DRAWNULL),POINTDOT,LINETHICK5,COLORRED;
卖出脉冲:IF(CROSS(散户,主力) AND 散
户>75,H*1.03,DRAWNULL),CROSSDOT,LINETHICK3,COLORGRAY; DRAWTEXT(CROSS(主力,散户) AND 主力<22,L,'起动'),COLORYELLOW; DRAWTEXT(CROSS(主力,30) AND 散户<主力,L,'上扬'),COLOR00CCFF; DRAWTEXT(CROSS(主力,65) AND 散户<主力,H,'冲顶'),COLOR9933FF; DRAWTEXT(CROSS(主力,75) AND 散户<主力,H,'小心被套'),COLORRED; DRAWTEXT(CROSS(散户,主力) AND 散户>75,H,'头部'), COLORYELLOW; DRAWTEXT(买入航标>0,L,'买入'),COLORMAGENTA;
DRAWTEXT(CROSS(趋势线,操盘线)AND 操盘线>70,H*1.02,'卖出
'),COLOR00FF00;
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★追涨'),COLORRED;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;
VARA1:=LLV(LOW,21);
VARA2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 100),5);
AK:=EMA((((CLOSE - VARA1) / (VARA2 - VARA1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'○关注'),COLORYELLOW;
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,COLOR0099FF; DRAWTEXT(介入,L*0.99,'介入'),COLOR0099FF;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★买入'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓
'),COLOR00FFFF;
VZ:=INTPART(AMOUNT)/INTPART(V)/100;
DRAWTEXT_FIX(1,0.00,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.06,0,'所属行业:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;
EMA20:EMA(C,20),COLORWHITE,NODRAW;
EMA40:EMA(C,40),COLORYELLOW,NODRAW;
EMA60:EMA(C,60),COLORFF00FF;
MA020:=EMA(CLOSE,20);
MA040:=EMA(CLOSE,40);
MA060:=EMA(CLOSE,60);
A1:=OPEN<MA020 OR OPEN<MA040 OR OPEN<MA060;
A2:=C>MAX(MA020,MAX(MA040,MA060));
A3:=V/MA(V,10)>1.2;
A4:=C/REF(C,1)>1.049;
A5:=VOL/REF(VOL,1)>=1.9;
出水芙蓉:=A1 AND A2 AND A3 AND A4 AND A5 AND O<MA060 AND C>MA060; DRAWTEXT(出水芙蓉,H-0.20,'出水芙蓉');。

相关文档
最新文档