转载 下面这些指标,是开博以来大家相对比较喜欢的! 百万文字论坛综合转载

原文地址:下面这些指标,是开博以来大家相对比较喜欢的!作者:大鹅

欢迎加入二群187357951(可加入)群共享下载通达信最新版

通达信大智慧两用量乘价负为零.确立买卖点(源码.附图.副图.说明)


当2*C-H-L是负数时量价为零.这一概念很重要.他使线条只能显示正数.则负数就是零.这样以来我们就可以明确的知道.我们应该持股还是持币观望.对于我们炒股的人来说这一点相当重要.公式就要必须明白无误的公式我们是该买还是该卖.可是【迷糊鱼2010】利用对数.因为对数是不能表示负数的.【南草】同学说;在公式里用【BB:IF(B<=0,0,B)+100,COLOR00FF00,LINETHICK2;】.也是完全可以不显示负数的.我也是这么认为.而且避开用对数在通达信里不能为零的毛病.(函数的内在原因).
本来我想改改原来的标题.可是已过去24小时.无奈我只好另发这个题目.我的目的是更清楚的说明问题.竟管现在我们不用对数可是这个公式【现在有个问题.一字形涨停时C=H=L此时A=0多大成交量也不能显示.当然用此公式心中有数就可以了.虽然不影响使用本公式.但是毕竟是不合理.大家有没有解决办法.那位能人指导.指导.改进公式的办法.】

现在重发通达信的源码.:-------------------------------

A:=(2*C-H-L)*VOL;
B:=WMA(A,5);
BB:IF(B<=0,0,B)+100,COLOR00FF00,LINETHICK2;
IF(BB>REF(BB,1),BB,DRAWNULL),COLORRED,LINETHICK2;
6,COLOR00FF00,LINETHICK2;
GG:=BB-REF(BB,1);
STICKLINE(GG>0,BB,REF(BB,1),1,0),COLOR0077FF;
STICKLINE(GG<0,BB,REF(BB,1),1,0),COLORFF9900;

再发大智慧的源码:-----------------------------------------------------
INPUT:N(1,1,4);
DRAWGBKlast(c>0,strip(RGB(0,0,100),RGB(0,0,0),0));
DRAWTEXTREL(10,20,'★【第'+N+'方案】'),COLOR0077FF,LINETHICK2;
IF N=1 THEN BEGIN
重心差:=(2*C-H-L);
SV:=重心差*VOL;
WMV:=WMA(SV,5);
END
IF N=2 THEN BEGIN
重心差:=C-(2*C+H+L)/4;
SV:=重心差*VOL;
WMV:=WMA(SV,3);
END
IF N=3 THENBEGIN
重心差:=(3*C-H-L-O);
SV:=SUM(IF(重心差>0,VOL,IF(重心差<0,-VOL,0)),3);
WMV:=WMA(SV,3);
END
IF N=4 THEN BEGIN
重心差:=C-(C+H+L)/3;
SV:=SUM(IF(重心差>0,VOL,IF(重心差<0,-VOL,0)),3);
WMV:=WMA(SV,2);
END
BB:IF(WMV<=0,0,WMV)+100,Color0000ff,LINETHICK2;
0,Color00ff00,LINETHICK2;
PARTLINE(BB,BB<REF(BB,1)),COLORGREEN,LINETHICK2;
GG:=BB-REF(BB,1);
STICKLINE(GG>0,BB,REF(BB,1),3,0),Color0077FF;
STICKLINE(GG<0,BB,REF(BB,1),3,0),ColorFF9900;

{RSI=81}
LC:=REF(C,1);
RSI:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) *100),LINETHICK0;
DRAWTEXT(CROSS(RSI,81),BB*1.01,'R:'+NUMTOSTRN(RSI,0)+''),COLOR00ffFF,ALIGN1,LINETHICK2;





发一个顶低集结号(源码.附图.副图.大智慧)
{J顶低集结}
DRAWGBKlast(c>0,strip(RGB(0,0,60),RGB(0,0,0),0));
80,DOTLINE;20,DOTLINE;
J9:EMA("KDJ.J"(9,3,3),5) ,COLOR0000FF,LINETHICK2;
J18:EMA("KDJ.J"(18,3,3),5) ,COLOR00FFFF,DOTLINE;
J27:EMA("KDJ.J"(27,3,3),5) ,COLOR00FF00,DOTLINE;
J36:EMA("KDJ.J"(36,3,3),5) ,COLOR0077FF,DOTLINE;
J45:EMA("KDJ.J"(45,3,3),5) ,COLOR00FFCC,LINETHICK2;
A级顶:=J9>80 AND J18>80 ANDJ27>80 AND J36>80 ANDJ45>80;
B级顶:=(J9>80 OR J18>80) AND(J27>80 OR J36>80 ORJ45>80);
A级低:=J9<5 AND J18<5 ANDJ27<5 AND J36<5 ANDJ45<5;
B级低:=J9<10 AND J18<20 AND(J27<10 OR J36<10 ORJ45<10);
IF(A级顶,90,100),COLOR0077FF,LINETHICK3,LAYER2;
IF(B级顶 ,80,100),COLOR00FF00,LINETHICK2,LAYER0;
IF(A级低,10,0),COLOR00FF00,LINETHICK2,LAYER0;
IF(B级低,20,0),COLORFF9900,LINETHICK2,LAYER2;
FILLRGN(IF(A级顶,90,100),90),ColorFF2200,LAYER5;;
FILLRGN(IF(B级顶,80,100),80),ColorFF9900,LAYER6;;
FILLRGN(100,80),Color000000,LAYER7;;
FILLRGN(10,20,10<20,RGB(0,40,60)),LAYER7;
FILLRGN(0,10,0<10,RGB(0,60,0)),LAYER7;
选股A:A级低,LINETHICK0;
{低部}
DIBU:= "KDJ.K"(9,3,3)<15 AND"KDJ.D"(9,3,3)<15 AND"KDJ.K"(18,3,3)<15 AND"KDJ.D"(18,3,3)<15
AND "KDJ.K"(27,3,3)<20 AND"KDJ.D"(27,3,3)<20 AND"KDJ.D"(36,3,3)<20 AND"KDJ.D"(54,3,3)<20;
STICKLINE(DIBU=1,30,20,1,0),COLORff00ff,LAYER5;
STICKLINE(DIBU=1,20,10,2,0),COLORYELLOW,LAYER5;
STICKLINE(DIBU=1,10,0,8,0),COLORff8000,LINETHICK2,LAYER5;
选股B:DIBU,LINETHICK0;

{大盘KDJ}
DRSV:=(INDEXC-LLV(INDEXL,27))/(HHV(INDEXH,27)-LLV(INDEXL,27))*100;
DK:=SMA(DRSV,3,1);
DD:=SMA(DK,3,1);
DJ:EMA((3*DK-2*DD),5),COLOR00FFFF;
PARTLINE(DJ,(DJ>REF(DJ,1))-1,rgb(0,255,0),1,rgb(255,0,0)),POINTDOT,LINETHICK6,LAYER1;


{MACD}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0;
DEA:=EMA(DIF,9);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
UP:=IF(DIF>VAR1 ANDDEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIF<VAR2 ANDDEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
PARTLINE(105,DIF>UP,RGB(255,0,0)),LINETHICK5,LAYER4;
PARTLINE(104,DIF>UP,RGB(255,120,0)),LINETHICK5,LAYER5;
PARTLINE(103,DIF>UP,RGB(255,200,0)),LINETHICK5,LAYER6;
PARTLINE(-3,DIF<DN,RGB(0,130,100)),LINETHICK5,LAYER4;
PARTLINE(-4,DIF<DN,RGB(0,220,0)),LINETHICK6,LAYER5;
{KDJ周金叉死叉}
周K:"KDJ.K#WEEK"(9,2,5),COLOR0000FF,LINETHICK0,LAYER3;
周D:"KDJ.D#WEEK"(9,2,5),COLOR00FF00,LINETHICK0;
DRAWTEXT(CROSS(周K,周D),30,'J周金叉'),ALIGN1,color00FFFF,LINETHICK1;
DRAWTEXT(CROSS(周D,周K),70,'J周死叉'),ALIGN1,COLOR0077FF,LINETHICK1;
KDB:=BARSLAST(REF(CROSS(周K,周D),1));
KDDB:=REF(WMA(C,5),KDB+1)>WMA(C,5) ANDREF(周K,KDB+1)<周K AND CROSS(周K,周D);
K底背:=IF(FILTER(KDDB>0,5),1,0);
DRAWTEXT(K底背=1,15,'J周底背'),COLOR00FFFF,LINETHICK1;
KDD:=BARSLAST(REF(CROSS(周D,周K),1));
K顶背:=REF(WMA(C,5),KDD+1)<WMA(C,5) ANDREF(周K,KDD+1)>周K AND CROSS(周D,周K);
DRAWTEXT(FILTER(K顶背>0,5),80,'J周顶背'),COLOR0077FF,LINETHICK1;
{顶底背离}
{1.MACD}
A1:=BARSLAST(REF(CROSS("MACD.DIFF","MACD.DEA"),1));
B1:=REF(C,A1+1)>C ANDREF("MACD.DIFF",A1+1)<"MACD.DIFF" ANDCROSS("MACD.DIFF","MACD.DEA");
DRAWTEXT(B1>0,-2,'M底背'),COLOR00FFFF,LINETHICK1;{MACD底背离};
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIFf"),1));
D1:=REF(C,C1+1)<C ANDREF("MACD.DIFf",C1+1)>"MACD.DIFf" ANDCROSS("MACD.DEA","MACD.DIFf");
DRAWTEXT(D1>0,105,'M顶背'),COLOR00FF00,LINETHICK1;{MACD顶背离};
{2.KDJ}
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A2+1)>C ANDREF("KDJ.K",A2+1)<"KDJ.K" ANDCROSS("KDJ.K","KDJ.D");
DRAWTEXT(B2,5,'J9底背'),COLOR00FFFF,LINETHICK1;{KDJ底背离};
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C ANDREF("KDJ.K",C2+1)>"KDJ.K" ANDCROSS("KDJ.D","KDJ.K");
DRAWTEXT(D2>0,80,'J9顶背'),COLOR0077FF,LINETHICK1;{KDJ顶背离};
{3.RSI}
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1",A3+1)<"RSI.RSI1" ANDCROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(B3>0,24,'R底背'),COLOR00FFFF,LINETHICK1;{RSI底背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C ANDREF("RSI.RSI1",C3+1)>"RSI.RSI1" ANDCROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(D3>0,95,'R顶背'),COLOR0077FF,LINETHICK1;{RSI顶背离};



数价量很有特点用于大智慧不好用图形不合理.我与他讨论明白以后编辑的源码用于大智慧我看蛮好用的.不知还有没有毛病.请大家帮忙再改改完善完善.源码如下:-----------
DRAWGBKlast(c>0,strip(RGB(0,0,100),RGB(0,0,0),0));
A:=(2*C-H-L)*VOL;
B:=WMA(A,5);
LNB:=LN(B);
BB:IF(LNB>1,B,LNB)+100,Color0000ff,LINETHICK2;
BB=0,Color00ff00,LINETHICK2;
PARTLINE(BB,BB<REF(BB,1)),COLORGREEN,LINETHICK2;
GG:=BB-REF(BB,1);
STICKLINE(GG>0,BB,REF(BB,1),3,0),Color0077FF;
STICKLINE(GG<0,BB,REF(BB,1),3,0),ColorFF9900;
=================================================================
【1】A:=(2*C-H-L)*VOL;这就是两倍的收盘价减去(H+L)再乘以成交量.此时A>0或者A<0.当然A>0是强势.显然是K线的收盘的重心向上.A才能大于零.(VOL一定是正的了.)
【2】B:=WMA(A,5); 取其对数值.LNB:=LN(B);【A】当A是正数时.因为成交量远远大于价格所以A必定大于1.其对数LNB:=LN(B)也必定大于1;【B】A为负数时A<0时.不可能有对数值.那时LNB:=LN(B);就是处于不存在的状态.
【3】BB:IF(LNB>1,B,LNB)+100,Color0000ff,LINETHICK2;这条线就是要他仅仅显示A>1.B:=WMA(A,5)>1;时其对数LNB:=LN(B)>1; 的状态.否侧不显示.(+100就是为了归零.)
【4】其他几句没什么特别就无需解释了看图就可以了.因此用【对数价量】买卖点相当清晰易于判别.

海风三号(无未来 副图 源码 贴图 说明)


海风三号源码

//适合于短线或中线操作,“红进绿出”是该主图的基本点,并请结合图中的均线系统,来调整成适合于自己的短线或中线操作策略。不追求买在最低卖在最高。黄色K线的出现,表示有短线爆发的机会,比较适合于追涨。
{海风三号}

N:=10;
量:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * 1.2 *CLOSE;
量1:=EMA(量,3);
量2:=EMA(量,5);
量3:=EMA(量,7);
STICKLINE(量1 >= 量2,量3,量1,8,0),color0000AA;
STICKLINE(量1 >= 量2,量3,量1,7,0),color0000BB;
STICKLINE(量1 >= 量2,量3,量1,6,0),color0000CC;
STICKLINE(量1 >= 量2,量3,量1,5,0),color0000DD;
STICKLINE(量1 >= 量2,量3,量1,4,0),color0000EE;
STICKLINE(量1 >= 量2,量3,量1,3,0),color0000FF;
STICKLINE(量1 <= 量2,量3,量1,8,0),colorFF0000;
STICKLINE(量1 <= 量2,量3,量1,7,0),colorFF3300;
STICKLINE(量1 <= 量2,量3,量1,6,0),colorFF5500;
STICKLINE(量1 <= 量2,量3,量1,5,0),colorFF7700;
STICKLINE(量1 <= 量2,量3,量1,4,0),colorFF9900;
STICKLINE(量1 <= 量2,量3,量1,3,0),colorFFBB00;
STICKLINE(量1 <= 量2,量3,量1,2,0),colorFFDD00;
STICKLINE(量1 <= 量2,量3,量1,1,0),colorFFFF00;
T1:=量2 >= 量3 AND 量1 <REF(量1,1);
T2:=量2 < 量3 AND 量1 > REF(量1,1);
STICKLINE(T1,量1,量3,8,0),colorFFBB11;
STICKLINE(T1,量1,量3,7,0),colorFFCC22;
STICKLINE(T1,量1,量3,5,0),colorFFDD33;
STICKLINE(T1,量1,量3,3,0),colorFFEE44;
STICKLINE(T1,量1,量3,1,0),colorFFFF55;
STICKLINE(T2,量1,量3,10,0),color338FDD;
STICKLINE(T2,量1,量3,8,0),colorFF00FF;
STICKLINE(T2,量1,量3,1,0),color00DDFF;
STICKLINE(T2,量1,量3,8,0),color00AAFF;
STICKLINE(T2,量1,量3,6.6,0),color00BBFF;
STICKLINE(T2,量1,量3,4.4,0),color00CCFF;
STICKLINE(T2,量1,量3,3.3,0),color00DDFF;
STICKLINE(T2,量1,量3,2.2,0),color00EEFF;
STICKLINE(T2,量1,量3,1,0),color00FFFF;
大涨:CLOSE/REF(CLOSE,1)>=1.09 OR((H-L)/REF(C,1)>0.1 ANDC=H),LINETHICK0,color00ffFF;
STICKLINE(大涨,量1,量3,8,0),color00ffFF;
大跌:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098 OR((H-L)/REF(C,1)>0.1 ANDC=L),LINETHICK0,color00ff00;
STICKLINE(大跌,量1,量3,8,0),color00ff00;
HH:=HHV(量1,N);
LL:=LLV(量1,N);

y:ma(量1,6);
y1:ma(y,2);
y2:ma(y,4);
y3:ma(y,6);

显示涨跌停、买卖精品(主图源码)

5:MA(C,5);
10:MA(C,10);
20:MA(C,20);
30:MA(C,30);
60:MA(C,M);
90:MA(C,90);
120:MA(C,120);
250:MA(C,250) COLORRED;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORLIGREEN;
强势:=IF((C-C3)*100/C3>=(5-0.01*100/C3) AND(C-C3)*100/C3<(10-0.01*100/C3),2,0);
STICKLINE(强势,OPEN,CLOSE,2,0),COLOR11AAFF;
弱势:=IF((C3-C)*100/C3>=(5-0.01*100/C3) AND(C3-C)*100/C3<(10-0.01*100/C3),2,0);
STICKLINE(弱势,OPEN,CLOSE,2,0),COLORBLUE;

VAR10:=IF(TROUGH(3,16,1)=0 ANDHIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR1A:=EMA(VAR19,100);
VAR1B:=2*(VAR19-VAR1A);
VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);
VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1E:=EMA(VAR1D*0.97,3);
VAR1F:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));
VAR21:=CROSS(VAR1E,LOW);
买点1:=VAR10;
买点2:=(VAR11+VAR13+VAR15+VAR17);
卖点1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2;

VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR31:=MA(CLOSE,30);
VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC1:=INTPART(VARB1*100)/100;
VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE1:=EMA(VARD1,9);
VAR131:=REF(VARE1,1);
VAR141:=VARE1;
VAR151:=VAR141-VAR131;
VAR161:=REF(VARD1,1);
VAR171:=VARD1;
VAR181:=VAR171-VAR161;
VAR191:=OPEN;
VAR1A1:=CLOSE;
DRAWICON(买点1>0,LOW-0.01,11),COLORRED;
DRAWICON(买点2>0,LOW-0.01,11),COLORBLUE;
DRAWICON(卖点1>0,HIGH+0.1,12),COLOR33FF33;

彩云主图
彩云上升你跟进.下降你就逃.跟准彩云走年收益30%你也是股神...它好象是宣传口号!其实你能做到(1)不贪漤,(2)不恐惧,(3)不三心二意犹肠寡断,[人的本性难改!!]越是大涨大跌你越能挣大钱,抄股不怕涨跌,怕横盘买也不是,卖也不是,一年抄过好几十个股你不会挣大钱!!同样一年天天满仓的也不会挣大钱!!股价下跌你观望。股价横盘你也观望,没见低你也观望(何以见底看彩云起动没有),波段没做完你也观望,别半道下车(看彩云变脸没有),其实”观望“也是需要练就的功夫,空仓心里就是痒痒,总是卖啦回头一看涨起来啦!没卖又跌啦!世上没卖后悔药的!可抄股的人天天后悔,不唠叨了!祝你先练就好心态,


{彩云}
STICKLINE(CLOSE>= REF(CLOSE,1) ,HIGH,LOW,0,1),COLORRED;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,3,0),COLOR000066;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,2.6,0),COLOR000099;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,2,0),COLOR0000CC;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,1.2,0),COLOR0000FF;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,0.4,0),COLORCC66FF;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0),COLORCC0000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.6,0),COLORFF4400;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2,0),COLORFF8800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.2,0),COLORFFCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.4,0),COLORCYAN;
现价: DYNAINFO(7),COLOR0077FF,POINTDOT;
KC:=(2*C+H+L+O)/5;
CB:EMA(KC,5),COLOR00FF00,LINETHICK2;
XL:=SLOPE(CB,3)>0;
IF(CB>REF(CB,1),CB,DRAWNULL),COLORRED,LINETHICK3;
{实时趋势流向}
动向流:CB,COLORFF8DAD;
MA(动向流,30), COLORFF1111,LINETHICK4;
MA(动向流,29) ,COLORFF2222,LINETHICK3;
MA(动向流,28) ,COLORFF3333,LINETHICK2;
MA(动向流,27) ,COLORFF4444;
MA(动向流,26) ,COLORFF5555;
MA(动向流,25) ,COLORFF6666;
MA(动向流,24) ,COLORFF7777;
MA(动向流,23) ,COLORFF8888;
MA(动向流,22) ,COLORFF9999;
MA(动向流,21) ,COLORFFAAAA;
MA(动向流,20), COLORFFBBBB,LINETHICK3;
MA(动向流,19) ,COLORFFCCCC;
MA(动向流,18), COLORFFDDDD;
MA(动向流,17), COLORFFEEEE;
MA(动向流,16) ,COLORFFFFFF;
MA(动向流,15) ,COLOREEEEFF;
MA(动向流,14) ,COLORDDDDFF;
MA(动向流,13), COLORCCCCFF;
MA(动向流,12) ,COLORBBBBFF;
MA(动向流,11) ,COLORAAAAFF;
MA(动向流,10) ,COLOR9999FF,LINETHICK3;
MA(动向流,9) ,COLOR8888FF;
MA(动向流,8), COLOR7777FF;
MA(动向流,7) ,COLOR6666FF;
MA(动向流,6) ,COLOR5555FF;
MA(动向流,5) ,COLOR4444FF;
MA(动向流,4) ,COLOR3333FF;
MA(动向流,3) ,COLOR2222FF;
MA(动向流,2) ,COLOR1111FF,LINETHICK2;

VAR1:=(SMA(HIGH,20,2) *1.05);
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE< VAR1)) AND ((CLOSE - REF(CLOSE,1))> 0)),CLOSE,OPEN,3,0),COLOR00B5FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE< VAR1)) AND ((CLOSE - REF(CLOSE,1))> 0)),CLOSE,OPEN,1,0),COLOR00E4FF;

STICKLINE(((((CLOSE< REF(CLOSE,1)) AND (CLOSE <REF(CLOSE,1))) AND (HIGH > VAR1)) AND (CLOSE< VAR1)),CLOSE,OPEN,2,0),COLOR0077FF;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE< REF(CLOSE,1))) AND (HIGH > VAR1))AND (CLOSE <VAR1)),CLOSE,OPEN,1,0),COLOR00FF00;

一根筋主图 通达信



根筋主图,关键均线加了变色,简单得拿不出手,但重要性大家应该知道的,不多说了!

MA1:MA(CLOSE,20) COLORGREENLINETHICK2;

MA1红:IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED,LINETHICK2;


黄金买点 当天买入价 绝对牛 大智慧


zz:=(o+h+l)/3;
hjmd:EMA(zz,4),COLORYELLOW,LINETHICK1;
xxb:=CLOSE*VOL;
xxbym:EMA((EMA(xxb,3)/EMA(VOL,3)+EMA(xxb,6)/EMA(VOL,6)+EMA(xxb,12)/EMA(VOL,12)+EMA(xxb,24)/EMA(VOL,24))/4,13),colorff00ff,LINETHICK0;

爱心:=EMA(CLOSE,13)-EMA(CLOSE,55);
无价:=EMA(爱心,3);
PARTLINE(xxbym,爱心>=无价,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;
DRAWTEXTREL(700,120,'今日买点:'+NUMTOSTRN(hjmd,2)),LINETHICK2,coloryellow;


yc:=(h+l)/2;
ychjx:=(EMA(zz,4))+(yc-ref(zz,3))/4;
DRAWTEXTREL(650,20,'昨测今日买点:'+NUMTOSTRN(ref(ychjx,1),2)),LINETHICK2,colorFF00FF;
DRAWTEXTREL(700,220,'明日买点:'+NUMTOSTRN(ychjx,2)),LINETHICK2,colorff00ff;

自用CCI指标(源码、副图、附图、说明、无末来函数)


源码、副图、附图、说明、无末来函数
STICKLINE(C,320,-320,5,0),COLOR80A16F;
M:=14;Q:=6;N:=20;
MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0))))))));
AVG:=(HIGH+LOW+CLOSE)/3;
CCI:=(AVG-MA(AVG,MM))/(0.015*AVEDEV(AVG,MM));
DIF:CCI-REF(CCI,1),LINETHICK0,COLOR00FF00;
前差值:ABS(REF(CCI,1)-REF(CCI,2)),NODRAW;
差值20:IF(DIF>15 ANDDIF<120,DIF,0),NODRAW,COLOR0000FF;
PI:=ATAN(1)*4;
PERIODS:=30;
HIGHHIGH:=HHV(HIGH,PERIODS);
LOWLOW:=LLV(LOW,PERIODS);

RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;
EMA34:=EMA(CLOSE,34);
X1_EMA34:=0;
X2_EMA34:=1;
Y1_EMA34:=0;
Y2_EMA34:=(REF(EMA34,1)-EMA34)/AVG*RANGEV;
C_EMA34:=SQRT((X2_EMA34-X1_EMA34)*(X2_EMA34-X1_EMA34)+(Y2_EMA34-Y1_EMA34)*(Y2_EMA34-Y1_EMA34));
ANGLE_EMA34V:=ROUND(ABS(180*ACOS((X2_EMA34-X1_EMA34)/C_EMA34)/PI));
ANGLE_EMA34:=IF(Y2_EMA34>0,-ANGLE_EMA34V,ANGLE_EMA34V);
LSMA25:=FORCAST(CLOSE,25);
X1_LSMA25:=0;
X2_LSMA25:=1;
Y1_LSMA25:=0;
Y2_LSMA25:=(REF(LSMA25,1)-LSMA25)/AVG*RANGEV;
C_LSMA25:=SQRT((X2_LSMA25-X1_LSMA25)*(X2_LSMA25-X1_LSMA25)+(Y2_LSMA25-Y1_LSMA25)*(Y2_LSMA25-Y1_LSMA25));
ANGLE_LSMA25V:=ROUND(ABS(180*ACOS((X2_LSMA25-X1_LSMA25)/C_LSMA25)/PI));
ANGLE_LSMA25:=IF(Y2_LSMA25>0,-ANGLE_LSMA25V,ANGLE_LSMA25V);
ARRAY:=CCI;
HIGHBARS:=BARSLAST(NOT(ARRAY>0));
LOWBARS:=BARSLAST(NOT(ARRAY<0));
UPCONDITION:=BARSLAST(HIGHBARS>=6 ANDSUM(ARRAY>100,5)>0);
DNCONDITION:=BARSLAST(LOWBARS>=6 ANDSUM(ARRAY<-100,5)>0);
UPTREND:=ARRAY>0 ANDUPCONDITION<DNCONDITION;
DNTREND:=ARRAY<0 ANDUPCONDITION>DNCONDITION;
TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) ORLOWBARS>=5 AND NOT(DNTREND);
STICKLINE(UPTREND,0,CCI,1,0),COLORFF0000;
STICKLINE(DNTREND,0,CCI,1,0),COLOR0000FF;
STICKLINE(TRTREND,0,CCI,1,0),COLOR00FFFF;
STICKLINE(NOT(UPTREND OR DNTREND ORTRTREND),0,CCI,1,0),COLOR808080;
WCCI:CCI,LINETHICK2,COLORBLACK;
TCCI:(AVG-MA(AVG,N))/(0.015*AVEDEV(AVG,N)),COLOR7A56B7,LINETHICK1;
STICKLINE(ANGLE_EMA34>=5,-301,-321,2,0),COLORD0E040;
STICKLINE(ANGLE_EMA34<5 ANDANGLE_EMA34>=3.57,-301,-321,2,0),COLOR006400;
STICKLINE(ANGLE_EMA34<3.57 ANDANGLE_EMA34>=2.14,-301,-321,2,0),COLOR98FB98;
STICKLINE(ANGLE_EMA34<2.14 ANDANGLE_EMA34>=0.71,-301,-321,2,0),COLOR00FF00;
STICKLINE(ANGLE_EMA34<0.71 ANDANGLE_EMA34>-0.71,-301,-321,2,0),COLOR00FFFF;
STICKLINE(ANGLE_EMA34<=-0.71 ANDANGLE_EMA34>-2.14,-301,-321,2,0),COLORE0FFFF;
STICKLINE(ANGLE_EMA34<=-2.14 ANDANGLE_EMA34>-3.57,-301,-321,2,0),COLOR00A5FF;
STICKLINE(ANGLE_EMA34<=-3.57 ANDANGLE_EMA34>-5,-301,-321,2,0),COLOR0000FF;
STICKLINE(ANGLE_EMA34<=-5,-301,-321,2,0),COLOR00008B;
SW:=IF(ABS(ANGLE_EMA34)>=15 ANDABS(ANGLE_EMA34+ANGLE_LSMA25)>=50,IF(ANGLE_LSMA25>0,2,-2),IF(ABS(ANGLE_EMA34)>=0AND (ANGLE_EMA34>=0 ANDANGLE_LSMA25>=0 OR ANGLE_EMA34<=0 ANDANGLE_LSMA25<=0) ANDABS(ANGLE_EMA34+ANGLE_LSMA25)>=5,IF(ANGLE_LSMA25>0,1,-1),0));
STICKLINE(ABS(SW)=2,301,321,2,0),COLOR00FF00;
STICKLINE(ABS(SW)=1,301,321,2,0),COLOR00FFFF;
STICKLINE(ABS(SW)=0,301,321,2,0),COLOR0000FF;
IF(CLOSE>LSMA25,0,DRAWNULL),LINETHICK3,COLOR00FF00;
IF(CLOSE<LSMA25,0,DRAWNULL),LINETHICK3,COLOR0000FF;
IF(CLOSE=LSMA25,0,DRAWNULL),LINETHICK3,COLOR00FFFF;
DRAWICON(ABS(CCI)>=200,CCI,12);
STICKLINE(C,200,200,1.5,0),COLORFFFF00;
STICKLINE(C,-200,-200,1.5,0),COLORFFFF00;
STICKLINE(C,100,100,1.5,0),COLORFFFF00;
STICKLINE(C,-100,-100,1.5,0),COLORFFFF00;


逢低买入指标

A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) ANDCROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) ANDUP>REF(DOWN,1);

随波逐流

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORLIBLUE;
DEA:EMA(DIF,9),COLORBLUE;
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD<REF(MACD,1) ANDMACD>0,0,MACD,1,0),COLORLIBLUE;
STICKLINE(MACD>REF(MACD,1) ANDMACD<0,0,MACD,1,0),COLORFF00FF;
IF(DEA<DIF,DEA,DRAWNULL),COLORRED;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORBLACK;

C底:ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;
DRAWTEXT(ABS(C底)>0,C底*1.30,' 抄底'),COLORRED;
DRAWICON(ABS(C底)>0,C底*1.10,4);

{低位金叉,二次金叉,背离}
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,0.3,2,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORBLACK;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE ANDDIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背离,0,0.1,2,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE ANDREF(DIF,A2+1)> DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;
DRAWTEXT(低位金叉 AND 二次金叉 AND底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;
{黄金坑}
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-0.1,RRA)=1);
RRD:=RRA<-0.1 AND RRB>0.3;
黄金坑:IF(RRD,-0.15,DRAWNULL),COLORYELLOW,STICK,LINETHICK3;

个股强度

股:(CLOSE-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORRED;
大盘:(INDEXC-REF(INDEXC,21))/REF(INDEXC,21)*100,COLORWHITE,LINETHICK2;
乖离:EMA(个股-大盘,2),COLORYELLOW;
平衡轴:0,COLORGREEN;
{说明:本公式为大智慧个股与大盘走势强度的比较分析。个股在平衡轴上方且乖离大者为佳。)

筹码主升

说明:红、黄、蓝、紫四色同时出现关注结合其他形势买入。
源码无特别函数,通用通达信、飞狐、大智慧的。

主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),NODRAW;
主筹:WINNER(C)*100,NODRAW;
散筹:(WINNER(C*1.1)-WINNER(C*0.9))*100,NODRAW;
STICKLINE(主力持仓>散筹,0,25,6,0),COLORRED;
STICKLINE(主筹>散筹,26,50,6,0),COLORMAGENTA;
STICKLINE(主力持仓>50,51,75,6,0),COLORBLUE;
STICKLINE(主筹>80 AND散筹<REF(散筹,1),76,100,6,0),COLORYELLOW;


布林主图,通达信

{布林主图}
布林中线:MA(CLOSE,21);
布林上线:布林中线+2*STD(CLOSE,21) COLORGREEN;
布林下线:布林中线-2*STD(CLOSE,21) COLORRED;
局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);
局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);
局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);
局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);
局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);
局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);
局部极点A:=局部低点预选C+局部高点预选C;
AAAA:IF(局部低点预选C=-1,L,IF(局部高点预选C=1,H,DRAWNULL)) CIRCLEDOTCOLORYELLOW;
缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));
距前高天:=BARSLAST(局部高点预选C=1);
距前低天:=BARSLAST(局部低点预选C=-1);
小值周期:=LOWRANGE(L);
大值周期:=TOPRANGE(H);
低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1)AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 ORLLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);
低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) ANDL<REF(H,距前高天+1),-1,0);
预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) ORREF(低保留S,距前低天)=0,1,0);
判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND大值周期>REF(小值周期,距前低天) AND大值周期>REF(大值周期,距前高天),1,0);
高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) ANDHHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);
高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) ANDREF(低保留S,距前低天)=-1 AND (距前低天>=4 ORHHV(缺口判断,距前低天)=1),1,0);
高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) ANDH>REF(L,距前低天+1),1,0);
预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) ORREF(高保留,距前高天)=0,1,0);
判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND小值周期>REF(大值周期,距前高天) AND小值周期>REF(小值周期,距前低天),-1,0);
低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND(距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR判断A=-1),-1,0);
低保留:=IF((低保留A=-1 OR 低保留B=-1) ANDL<REF(H,距前高天+1),-1,0);
AAAD:=IF(高保留=1 AND 低保留=-1 ANDH>REF(H,REF(距前高天,1)+2),1,IF(高保留=1 AND 低保留=-1 ANDL<REF(L,REF(距前低天,1)+2),-1,0));
极点保留:=IF(AAAD=0,高保留+低保留,AAAD);
局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOTCOLORYELLOW;
DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORBLUE;
DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE;



Q2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK3;
趋势线:EMA(Q3, 3),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80,REF(长趋势,3), '顶'),COLORRED,LINETHICK5;
逢低买: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND趋势线>1.3*长趋势,长趋势,'逢低买'),LINETHICK1;
买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND长趋势>1.3*趋势线,趋势线,'买'),COLORRED,LINETHICK1;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;
DRAWTEXT(顶A=50,45,'快逃'),COLOR00FF00;
金叉: CROSS(长趋势,趋势线);
DRAWTEXT(金叉,趋势线,'★'),COLORRED;
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:SMA(V3,2,1);
V5:SMA(V4,2,1);
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买入:IF((V7 AND COUNT(V7,3)=1),30,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(买入,35,'买入 '),COLORYELLOW,LINETHICK3;

很好的通达信指标《三金叉》

DIF2:"MACD.DIF";
DEA2:"MACD.DEA";
单金叉:CROSS(DIF2,DEA2);
三金叉:(单金叉 AND COUNT(单金叉,15)>=2)*2;


逢低买入指标


A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) ANDCROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) ANDUP>REF(DOWN,1);

本人在用多年的珍藏指标之一《出手必中》主图指标公式原码

《出手必中》主图指标公式原码
{ N:20,M:32,P1:80,P2:100}
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:=100*(卖出-买入)/买入,NODRAW;
L卖:L/卖出-1,NODRAW;
O卖:O/卖出-1,NODRAW;
H卖:H/卖出-1,NODRAW;
L买:L/买入-1,COLORYELLOW,NODRAW;
O买:O/买入-1,NODRAW;
中:(买入+卖出)/2,COLORWHITE;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(C,买入) OR(L<买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(C,卖出) OR(H>卖出),HIGH*1.02,'S'),COLORGREEN;
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) ANDCROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;

{遵守操作记律,看图信号波段买卖,不贪婪者定有厚报。}


{变色增减}
DRAWGBKLAST(C>EMA(C,5),STRIP(RGB(0,0,80),RGB(80,0,0),1));
DRAWGBKLAST(C<=EMA(C,5),STRIP(RGB(0,0,80),RGB(40,40,0),1));
DRAWGBKLAST(C<=EMA(C,10),STRIP(RGB(0,0,180),RGB(0,80,0),1));
DRAWGBKLAST(C<=EMA(C,20),STRIP(RGB(0,0,80),RGB(0,0,0),1));
DRAWTEXTABS(10,8, '所属板块: '+BKNAME),Color0077FF;
DRAWTEXTABS(10,26,'流通A股:'+NUMTOSTRN(FINANCE2(37)/10000,2)+'亿股,市盈率:'+NUMTOSTRn(DYNAINFO(39),1)+'倍'),Color5EFFFF,LINETHICK2;
{以下设置五彩立体K线}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000FF;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR00FF00;

B1:EMA(C,3),COLORFF9900;
B2:EMA(C,5),COLORFF9900,LINETHICK2;
B3:EMA(C,7),COLORFF9900;
B4:EMA(C,10),COLORFF9900;
B5:EMA(C,15),COLORFF9900;
B6:EMA(C,20),COLORFF9900,LINETHICK2;
B7:EMA(C,25),COLORFF9900;
B8:EMA(C,30),COLORFF9900;
B9:EMA(C,35),COLORFF9900;
B10:EMA(C,40),COLORFF9900;
B11:EMA(C,45),COLORFF9900;
B12:EMA(C,50),COLORFF9900;
B13:EMA(C,55),COLORFF9900;
B14:EMA(C,60),COLORFF9900,LINETHICK2;
B15:EMA(C,85),COLORFF9900;
B16:EMA(C,120),COLORFF9900;
B17:EMA(C,180),COLORFF9900;
B18:EMA(C,240),COLORFF9900,LINETHICK2;
partline(B1,B1>REF(B1,1),rgb(255,0,0));
partline(B2,B2>REF(B2,1),rgb(255,0,10)),LINETHICK2;
partline(B3,B3>REF(B3,1),rgb(255,0,20));;
partline(B4,B4>REF(B4,1),rgb(255,0,30));
partline(B5,B5>REF(B5,1),rgb(255,0,40));
partline(B6,B6>REF(B6,1),rgb(255,120,0)),LINETHICK2;
partline(B7,B7>REF(B7,1),rgb(255,0,60));
partline(B8,B8>REF(B8,1),rgb(255,0,70));
partline(B9,B9>REF(B9,1),rgb(255,0,80));
partline(B10,B10>REF(B10,1),rgb(255,0,90));
partline(B11,B11>REF(B11,1),rgb(255,0,100));
partline(B12,B12>REF(B12,1),rgb(255,0,110));
partline(B13,B13>REF(B13,1),rgb(255,0,120));
partline(B14,B14>REF(B14,1),rgb(255,150,0)),LINETHICK2;
partline(B15,B15>REF(B15,1),rgb(255,0,180));
partline(B16,B16>REF(B16,1),rgb(255,0,200));
partline(B17,B17>REF(B17,1),rgb(255,0,220));
partline(B18,B18>REF(B18,1),rgb(255,0,255)),LINETHICK2;
红线1:if(B1>REF(B1,1),1,0),LINETHICK0;
红线2:if(B2>REF(B2,1),1,0),LINETHICK0;
红线3:if(B3>REF(B3,1),1,0),LINETHICK0;
红线4:if(B4>REF(B4,1),1,0),LINETHICK0;
红线5:if(B5>REF(B5,1),1,0),LINETHICK0;
红线6:if(B6>REF(B6,1),1,0),LINETHICK0;
红线7:if(B7>REF(B7,1),1,0),LINETHICK0;
红线8:if(B8>REF(B8,1),1,0),LINETHICK0;
红线9:if(B9>REF(B9,1),1,0),LINETHICK0;
红线10:if(B10>REF(B10,1),1,0),LINETHICK0;
红线11:if(B11>REF(B11,1),1,0),LINETHICK0;
红线12:if(B12>REF(B12,1),1,0),LINETHICK0;
红线13:if(B13>REF(B13,1),1,0),LINETHICK0;
红线14:if(B14>REF(B14,1),1,0),LINETHICK0;
红线15:if(B15>REF(B15,1),1,0),LINETHICK0;
红线16:if(B16>REF(B16,1),1,0),LINETHICK0;
红线17:if(B17>REF(B17,1),1,0),LINETHICK0;
红线18:if(B18>REF(B18,1),1,0),LINETHICK0;
满堂红:红线1+红线2+红线3+红线4+红线5+红线6+红线7+红线8+红线8+红线10+红线11+红线12+红线13+红线14+红线15+红线16+红线17+红线18,PRECIS0,LINETHICK0;
分水岭:红线2+红线4+红线6,PRECIS0,LINETHICK0;
DRAWTEXTABS(550,5,'【满堂红18条线:现在→★红'+NUMTOSTRN(满堂红,0)+'条】'),Color0044ff,LINETHICK5,PRECIS0;
DRAWTEXTABS(545,35,'【其中:MA5,MA10,MA20,3条线:→★红'+NUMTOSTRN(分水岭,0)+'条】'),Color00FFff,LINETHICK3,PRECIS0;
DRAWTEXTABS(10,45,'▓历史最高价:'+NUMTOSTRN(HHV(HIGH,0),2)+'元 ' ),Color00FFFF,LINETHICK3;
DRAWTEXTABS(10,65,'▓历史最低价:'+NUMTOSTRN(LLV(LOW,0),2)+'元 ' ),Color00FF00,LINETHICK3;
DRAWTEXTABS(10,85,'▓十日内最高价:'+NUMTOSTRN(hhv(h,10),2)+'元'),Color0099FF,LINETHICK3;
DRAWTEXTABS(10,105,'▓十日内最低价:'+NUMTOSTRN(LLV(LOW,10),2)+'元'),ColorFF9900,LINETHICK3;
DRAWTEXTABS(10,125,'▓分水岭MA20:'+NUMTOSTRN(B6,2)+'元'),Color0000FF,LINETHICK3;

KD:last(红线2 ),LINETHICK0,PRECIS0;
DRAWTEXT(红线2,B16,''+(KD)+''),color00FFff,LINETHICK1;

STICKLINE(l>ref(h,1),l,ref(h,1),50,1),COLORRED;
STICKLINE(h<ref(l,1),h,ref(l,1),50,1),colorgreen;

准确率很高的指标 源码


金叉共振
源码:
市场成本:DMA(AMOUNT/V/100,V/CAPITAL),COLORRED;
DRAWICON(CROSS(C,市场成本),L-0.20,1);{1号图标显示红脸}
{PARTLINE(市场成本,市场成本>REF(市场成本,1),RGB(255,0,0),NOT(市场成本<REF(市场成本,1)),RGB(0,0,255),1,RGB(0,0,255)),LINETHICK2;}
MA7:MA(C,7),COLORWHITE;
MA21:MA(C,21),COLORYELLOW;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C ANDREF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(5,6,6),"KDJ.D"(5,6,6)),1));
B2:=REF(C,A2+1)>C ANDREF("KDJ.K"(5,6,6),A2+1)<"KDJ.K"(5,6,6) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
B4:=CROSS(DIFF,DEA) AND CROSS("KDJ.K"(5,6,6),"KDJ.D"(5,6,6));
DRAWTEXT(B1,L-0.20,'▲'),COLORWHITE;
DRAWTEXT(B1,L-0.30,'MACD底背'),COLORWHITE;
DRAWTEXT(B2,L-0.20,'●'),COLORFF00FF;
DRAWTEXT(B2,L-0.30,'KDJ 底背'),COLORFF00FF;
DRAWTEXT(B3,L-0.20,'$'),COLORYELLOW;
DRAWTEXT(B3,L-0.30,'RSI底背'),COLORYELLOW;
DRAWTEXT(B4,L-0.20,'★'),COLOR0099FF;
DRAWTEXT(B4,L-0.30,'金叉共振'),COLOR0099FF;

整合量方差+CCI+WR,副图



本指标是对前期所发做多做空指标的优化,一是加入了量标准差,就是彩带和标准差线及强弱线,二是对WR的参数进行了优化。用法说明,量方差中的白线基本要求是要在强弱线上运行,在绿彩带上方运行较好,在红彩带上方运行更好;第二要看CCI与WR的关系这是波段操作的好依据,CCI上穿WR是较好的买点,此外在参照CCI与WR的数值。
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
kX:=(R+R1)/2;
ZJ1:=AMOUNT/VOL/100;
ZJ3:=SUM(AMOUNT,35)/ZJ1/100;
ZJ4:=DMA(KX,VOL/ZJ3);
ZJ:=100*(KX-ZJ4)/ZJ4;
上轨:(MA(ZJ,20)+STDP(ZJ,20)),COLORYELLOW;
下轨:(MA(ZJ,20)-STDP(ZJ,20)),COLORGREEN;
强轨:(MA(ZJ,20)+1.7*STDP(ZJ,20)),COLORRED;
弱轨:(MA(ZJ,20)-1.7*STDP(ZJ,20)),COLORCYAN;
FILLRGN(KX,上轨,下轨),COLORBLUE;
FILLRGN(KX,上轨,强轨),COLORBROWN;
FILLRGN(KX,弱轨,下轨),COLORAAAA00;
标准线:ZJ,COLORWHITE,LINETHICK2;
强弱线:(上轨+下轨)/2,LINEDASHDOT,COLORYELLOW;

CCI:(R-MA(R,84))/(0.015*AVEDEV(R,84))/20,COLORYELLOW,LINETHICK2;
做多:(3*SMA(CCI,2,1)+2*SMA(SMA(CCI,2,1),2,1))/5,COLORMAGENTA,LINETHICK;
PARTLINE(CCI<做多,CCI),COLORFFCCAA,LINETHICK2;

WR1:(100*(HHV(R1,42)-KX)/(HHV(R1,42)-LLV(R,42)))/20*5-10,COLORMAGENTA,LINETHICK2;
做空:(3*SMA(WR1,2,1)+2*SMA(SMA(WR1,2,1),2,1))/5,COLOR00bb00,LINETHICK;
PARTLINE(WR1>做空,wr1),COLOR00bb00,LINETHICK2;
0,COLORYELLOW;5,COLOR6600FF,LINEDOT;

简单指标---市场价值线

源码:
n:=3;(n可调)
AA:=SUM(C*V,N);
BB:=SUM(V,N);
市场价值线:MA(AA/BB,7),LINETHICK3;

买卖副图

买卖原码副图:Var1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
Var2:=HIGH-REF(HIGH,1);
Var3:=REF(LOW,1)-LOW;
Var4:=SUM(IF(Var2>0 ANDVar2>Var3,Var2,0),25);
Var5:=SUM(IF(Var3>0 ANDVar3>Var2,Var3,0),25);
Var6:=Var4*100/Var1;
Var7:=Var5*100/Var1;
Var8:=MA(ABS(Var7-Var6)/(Var7+Var6)*100,15);
Var9:=(Var8+REF(Var8,15))/2;
A:=(Var7>Var6 AND Var7>25 ANDVar6<25);
B:ZIG(3,50/5)*100,colorwhite;
g:MA(B,2),coloryellow;
D:=CROSS(B,g)*1000,colorred;
W:=cross(g,B)*1000,colorblue;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
Var10:=F AND F<8;
Var11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var12:=SMA(Var11,3,1);
Var13:=SMA(Var12,3,1);
Var14:=Var13 AND Var13<20;
mm:=A AND D AND Var10 AND Var14 ;
DRAWTEXT(W=1000,b*1.05,'卖' ),COLOR00ff00;
DRAWTEXT(D=1000,b*1.05,'买'),COLORred;

{一目了然}
MA多:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2;
多方:EMA(MA多,5),COLOR0000FF,LINETHICK2;

IF(多方<=45,多方,DRAWNULL),COLORGREEN,LINETHICK2;
IF(多方<=25,多方,DRAWNULL),COLORWHITE,LINETHICK2;

预警28:IF(多方<28 AND多方>=25 ANDC<=REF(C,1),40,25),COLORLIBLUE,LINETHICK3;
准备25:IF(多方<25 AND 多方>=20 ANDC<REF(C,1) ANDL=LLV(L,5),50,25),COLORGREEN,LINETHICK3;
到底20:IF(多方<20 AND 多方>=15 ANDC<REF(C,1) ANDL=LLV(L,5),65,25),COLOR009900,LINETHICK3;
超跌15:IF(多方<15,71,25),COLORRED,LINETHICK3;
M:=REF(多方,1)<25 ANDREF(多方,1)<REF(多方,2) ANDREF(多方,2)<REF(多方,3) AND多方>REF(多方,1);
转向:=DRAWICON(M,50,11);

STICKLINE(多方>70,70,62,1.2,0),COLORGREEN;
STICKLINE(多方>75,70,62,1.2,0), COLORYELLOW;
STICKLINE(多方>80,70,62,1.2,0),COLORRED;

非常好的指标,非常准的

WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2,0 ,2 ,0 ),COLORGREEN;
STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5,0 ,2 ,0 ),COLORYELLOW;
STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1,0 ,2 ,0 ),COLORCYAN;
STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5,0 ,2 ,0 ),COLORBLUE;
XYS1:MA(XYS0,2);
XYS2:MA(XYS0,1);

大盘行情不好,发个精品指标。源码副图

{【精品指标】}
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR4:=(VAR3-LLV(VAR1,9))/(HHV(VAR2,9)-LLV(VAR1,9))*100;
VAR5:=SMA(VAR4,3,1);
【阳】: SMA(VAR5,3,1),COLORRED,LINETHICK2;
Y1:=SMA(【阳】,3,1);
VAR6:=(HHV(VAR2,9)-VAR3)/(HHV(VAR2,9)-LLV(VAR1,9))*100;
【阴】: SMA(VAR6,3,1),COLORYELLOW,LINETHICK2;
Y2:=SMA(【阴】,3,1);
VAR7:=REF(VAR3,1);
VAR8:=SMA(MAX(VAR3-VAR7,0),13,1)/SMA(ABS(VAR3-VAR7),13,1)*100;
VARB:=MA(INDEXC,3)*100/MA(INDEXC,10)-100;
VARC:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;
VARD:=CLOSE*100/MA(CLOSE,10)-100;
VARE:=IF(VARB>10,10,VARB);
VARF:=IF(VARE<-10,-10,VARE);
VAR10:=IF(VARC>10,10,VARC);
VAR11:=IF(VAR10<-10,-10,VAR10);
VAR12:=REF(VARB,1);
VAR13:=100*(VAR3-REF(VAR3,1))/REF(VAR3,1);
VAR14:=INDEXC;
VAR15:=REF(VAR14,1);
VAR16:=100*(VAR14-VAR15)/VAR14;
VAR17:=MA(VAR13,3);
VAR18:=MA(VAR16,3);
VAR19:=(3*CLOSE+VAR1+OPEN+HIGH)/6;
VAR1A:=(20*VAR19+19*REF(VAR19,1)+18*REF(VAR19,2)+17*REF(VAR19,3)+16*REF(VAR19,4)+15*REF(VAR19,5)+14*REF(VAR19,6)+13*REF(VAR19,7)+12*REF(VAR19,8)+11*REF(VAR19,9)+10*REF(VAR19,10)+9*REF(VAR19,11)+8*REF(VAR19,12)+7*REF(VAR19,13)+6*REF(VAR19,14)+5*REF(VAR19,15)+4*REF(VAR19,16)+3*REF(VAR19,17)+2*REF(VAR19,18)+REF(VAR19,20))/210;
VAR1B:=MA(VAR1A,12);
VAR1C:=EMA(VAR1A,5);
VAR1D:=ABS(VAR1A-VAR1B);
VAR1E:=REF(VAR3,1)*0.015;
VAR1F:=REF(INDEXC,1);
VAR24:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);
VAR25:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);
VAR26:=MA(CLOSE,26);
VAR27:=VAR26+2*STD(VAR3,26);
VAR28:=VAR26-2*STD(VAR3,26);
VAR29:=VAR26+2*STD(REF(VAR3,1),26);
VAR2A:=VAR26-2*STD(REF(VAR3,1),26);
VAR2B:=IF(VAR24 AND VAR1<VAR28,1,0);
VAR2C:=IF(VAR25*VAR1 AND VAR2>VAR27,2,VAR2B);
VAR2D:=IF(VAR2C=1,80,45);
VAR2E:=IF(VAR2C=2,0,VAR2D);
VAR2F:=VAR2E;
D1:=EMA(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),5);
D2:=REF(D1,1);
STICKLINE(D1>=REF(D1,1),D1,D2,5,0),COLOR0055AA;
STICKLINE(D1<REF(D1,1),D1,D2,5,0),COLOR006600;
{STICKLINE(D1>=REF(D1,1),D1,D2,2,0),COLOR0077CC;}
STICKLINE(D1>=REF(D1,1),D1,D2,1,0),COLOR0099DD;
{STICKLINE(D1<REF(D1,1),D1,D2,2,0),COLOR009900;}
STICKLINE(D1<REF(D1,1),D1,D2,1,0),COLOR00BB00;
【强弱】:SMA(MAX(VAR3-VAR7,0),5,1)/SMA(ABS(VAR3-VAR7),5,1)*100;
DRAWTEXT(ISLASTBAR=1 AND (CROSS(【强弱】,Y2) ORVAR2E>45),80,' 短期吃货!'),COLORRED;
DRAWTEXT(ISLASTBAR=1 AND (CROSS(Y1,【强弱】) ORVAR2E<45),80,' 短期出货!'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1 AND VAR17>VAR18,60,'个股强于大盘!'),COLORFF00FF;
DRAWTEXT(ISLASTBAR=1 AND VAR12>VARF,50,'大盘处在下降通道'),COLORCCFF99;
DRAWTEXT(ISLASTBAR=1 AND VAR18>=VAR17,60,'个股弱于大盘!'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR=1 AND VAR1A>VAR1B ANDVAR1D>VAR1E AND NOT(CROSS(75,VAR8)),40,'持股待涨!'),COLOR0099FF;
DRAWTEXT(ISLASTBAR=1 AND VAR1A<VAR1B ANDVAR1D>VAR1E AND NOT(CROSS(【强弱】,20)),40,'下调减持!'),COLORFF9900;
DRAWTEXT(ISLASTBAR=1 AND VAR1D<=VAR1E,40,'盘整阶段!'),COLORFF9900;
DRAWTEXT(ISLASTBAR=1 AND(INDEXC-VAR1F)/VAR1F>0.035,40,'出现井喷行情!'),COLORRED;



名称是随便取的(能赚钱就好),使用说明:红箭头出现买入;绿箭头出现卖出,每次出现绿箭头可能会有一波下跌;

觉得没用请飘过;觉得有用就拿去,使用中自己体会,谢谢!!!

DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
A:=(DIF1-DEA1)*2*60;
买入:8.05,POINTDOT,COLORRED;
卖出:-4,POINTDOT,COLORGREEN;
X1:=(A-REF(A,1));
X:IF(A-REF(A,1)<=-4.8,-4.9,IF(A-REF(A,1)>=10,10,X1)),COLORYELLOW;
DRAWICON(CROSS(X,买入),买入,1);
DRAWICON(CROSS(卖出,X),卖出,2);


仙人指路 -- 炒股:由理念点亮一生!!!
炒股:由理念点亮一生!降股即降庄,我只想跟庄,不敢降庄

仙人指路:REF(COUNT((H-MAX(O,C))/MAX(O,C)*100>3.5,2)=1,1)AND C/REF(C,1)>1.025;

斜率----追涨先锋

{斜率3.7.15}
XX51:=XMA((EXPMA(CLOSE,3)-REF(EXPMA(CLOSE,3),1))*100/REF(EXPMA(CLOSE,3),1),4),LINETHICK2,COLORYELLOW;
XX101:=XMA((EXPMA(CLOSE,7)-REF(EXPMA(CLOSE,7),1))*100/REF(EXPMA(CLOSE,7),1),7),LINETHICK2,COLORBLUE;
XX2001:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),20);

AA11:=XX2001>=0.2AND REF(XX2001,1)<XX2001 AND XX51>XX101 AND XX101>XX2001
AND REF(XX51,2)<REF(XX101,2) ANDREF(XX101,2)< REF(XX2001,2) ;
XX2021:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),22);
AA21:=XX2021>=0.2 ANDREF(XX2001,1)<XX2001 ANDXX51> XX101 ANDXX101>XX2021
AND REF(XX51,2)<REF(XX101,2) ANDREF(XX101,2)< REF(XX2021,2) ;
XX2041:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),24);
AA31:=XX2041>=0.2AND REF(XX2001,1)<XX2001 AND XX51>XX101 AND XX101>XX2041
AND REF(XX51,2)<REF(XX101,2) ANDREF(XX101,2)< REF(XX2041,2) ;
XX2061:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),26);
AA41:=XX2061>=0.2AND REF(XX2001,1)<XX2001 AND XX51>XX101 AND XX101>XX2061
AND REF(XX51,2)<REF(XX101,2) ANDREF(XX101,2)< REF(XX2061,2) ;

XX2070:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),20);
AA70:=XX2070>=0.2 ANDREF(XX2070,1)<XX2070 AND CROSS(XX101,XX2070)
ANDCROSS(REF(XX51,1),REF(XX2070,1));

XX20710:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),23);
AA710:=XX20710>=0.2 ANDREF(XX20710,1)<XX20710 ANDCROSS(XX101,XX20710)
ANDCROSS(REF(XX51,1),REF(XX20710,1));

XX20720:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),26);
AA720:=XX20720>=0.2 ANDREF(XX20720,1)<XX20720 ANDCROSS(XX101,XX20720)
ANDCROSS(REF(XX51,1),REF(XX20720,1));

XX2080:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),20);
AA80:=XX2080>=0.2 ANDREF(XX2080,1)<XX2080 AND CROSS(XX101,XX2080)
ANDCROSS(XX51,XX2080);
XX20810:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),23);
AA810:=XX20810>=0.2 ANDREF(XX20810,1)<XX20810 ANDCROSS(XX101,XX20810)
ANDCROSS(XX51,XX20810);

XX20820:=XMA((EXPMA(CLOSE,15)-REF(EXPMA(CLOSE,15),1))*100/REF(EXPMA(CLOSE,15),1),26);
AA820:=XX20820>=0.2 ANDREF(XX20820,1)<XX20820 ANDCROSS(XX101,XX20820)
ANDCROSS(XX51,XX20820);

{VARV01:=HIGH/REF(LOW,1)> 0.18 ANDABS(HHV(HIGH,10)-LLV(LOW,10))/CLOSE>
0.06 AND ABS(CLOSE-REF(CLOSE,50))/CLOSE> 0.2 ANDREF(C,1)<REF(C,2)
AND REF(C,2)<REF(C,3) AND "ZXNH"; }

斜率:AA11 OR AA21 OR AA31 OR AA41 ORAA70 OR AA710 OR AA720 OR AA80 OR AA810
OR AA820 ,COLORFF00FF,LINETHICK1;

{斜率356}
X5:=EXPMA(CLOSE,3);
X10:=EXPMA(CLOSE,5);
X20:=EXPMA(CLOSE,6);
五日斜率:=(X5-REF(X5,1))*100/REF(X5,1);
十日斜率:=(X10-REF(X10,1))*100/REF(X10,1),LINETHICK1;
二十斜率:=(X20-REF(X20,1))*100/REF(X20,1),LINETHICK1,COLORWHITE;

XX200:XMA(二十斜率,10),LINETHICK1;
AA1:=XX200>=0.2 ANDREF(XX200,1)<XX200 AND XMA(五日斜率,4)>XMA(十日斜率,7) AND
XMA(十日斜率,7)>XX200ANDREF(XMA(五日斜率,4),2)<REF(XMA(十日斜率,7),2) ANDREF(XMA(十日斜率,7),2)<
REF(XX200,2) ;
XX202:XMA(二十斜率,11),LINETHICK1;
AA2:=XX202>=0.2 ANDREF(XX200,1)<XX200 ANDXMA(五日斜率,4)> XMA(十日斜率,7) AND
XMA(十日斜率,7)>XX202
ANDREF(XMA(五日斜率,4),2)<REF(XMA(十日斜率,7),2) ANDREF(XMA(十日斜率,7),2)< REF(XX202,2) ;
XX204:XMA(二十斜率,12),LINETHICK1;
AA3:=XX204>=0.2 ANDREF(XX200,1)<XX200 AND XMA(五日斜率,4)>XMA(十日斜率,7) AND
XMA(十日斜率,7)>XX204
ANDREF(XMA(五日斜率,4),2)<REF(XMA(十日斜率,7),2) ANDREF(XMA(十日斜率,7),2)< REF(XX204,2) ;
XX206:XMA(二十斜率,13),LINETHICK1;
AA4:=XX206>=0.2 ANDREF(XX200,1)<XX200 AND XMA(五日斜率,4)>XMA(十日斜率,7) AND
XMA(十日斜率,7)>XX206
ANDREF(XMA(五日斜率,4),2)<REF(XMA(十日斜率,7),2) ANDREF(XMA(十日斜率,7),2)< REF(XX206,2) ;

XX207:XMA(二十斜率,10),LINETHICK1;
AA7:=XX207>=0.2 ANDREF(XX207,1)<XX207 ANDCROSS(XMA(十日斜率,7),XX207)
ANDCROSS(REF(XMA(五日斜率,4),1),REF(XX207,1));

XX2071:XMA(二十斜率,12),LINETHICK1;
AA71:=XX2071>=0.2 ANDREF(XX2071,1)<XX2071 ANDCROSS(XMA(十日斜率,7),XX2071)
ANDCROSS(REF(XMA(五日斜率,4),1),REF(XX2071,1));

XX2072:XMA(二十斜率,14);
AA72:=XX2072>=0.2 ANDREF(XX2072,1)<XX2072 ANDCROSS(XMA(十日斜率,7),XX2072)
ANDCROSS(REF(XMA(五日斜率,4),1),REF(XX2072,1));

XX208:XMA(二十斜率,10),LINETHICK1;
AA8:=XX208>=0.2 ANDREF(XX208,1)<XX208 ANDCROSS(XMA(十日斜率,7),XX208)
ANDCROSS(XMA(五日斜率,4),XX208);
XX2081:XMA(二十斜率,12),LINETHICK1;
AA81:=XX2081>=0.2 ANDREF(XX2081,1)<XX2081 ANDCROSS(XMA(十日斜率,7),XX2081)
ANDCROSS(XMA(五日斜率,4),XX2081);

XX2082:XMA(二十斜率,14);
AA82:=XX2082>=0.2 ANDREF(XX2082,1)<XX2082 ANDCROSS(XMA(十日斜率,7),XX2082)
ANDCROSS(XMA(五日斜率,4),XX2082);


斜率356:(AA1 OR AA2 OR AA3 OR AA4 ORAA7 OR AA71 OR AA72 OR AA8 OR AA81 OR AA82)
,COLORFFFFFF,LINETHICK1;


DRAWTEXT(AA1=1,0.050,'A'),COLORRED;
DRAWTEXT(AA2=1,0.00,'B'),COLORRED;
DRAWTEXT(AA3=1,0.00,'C'),COLORRED;
DRAWTEXT(AA4=1,0.00,'D'),COLORRED;
DRAWTEXT(AA7=1,0.00,'E'),COLORRED;
DRAWTEXT(AA71=1,0.00,'A6'),COLORRED;
DRAWTEXT(AA72=1,0.00,'A7'),COLORRED;
DRAWTEXT(AA8=1,0.00,'A8'),COLORRED;
DRAWTEXT(AA81=1,0.05,'A9'),COLORRED;
DRAWTEXT(AA82=1,0.00,'A10'),COLORRED;

通达信公式源码导入方法教程

通达信公式源码导入方法教程

本文主要讲解有公式源码,如何导入 通达信中的方法教程(这里的源码指的是公式源代码);

第一步:按 ctrl+f调出公式管理器,这时会出现以下画面,有“技术指标公式”,“条件选股公式”。

如果你的源码是指标公式(就是画面上显示的指标),那就先点下“技术指标公式”选项,然后点击 新建按钮;

如果你的源码是条件选股公式,那就先点下“条件选股公式”选项,然后点击新建 按钮;






第二步:按照下图中红色文字提示操作,有的公式带有参数,比如(N 1 10010)就是指参数为N,最小1,最大100,缺省10.

如果你的源码是主图公式,也就是像几日均线一样,在K线上叠加显示的话,那需要把画线方法一栏调成 主图 模式,

最后,点击测试公式按钮通过了,就点击确定按钮保存,OK了.




下面是一个完整的公式演示


综合了五个指标共振买卖TDX

综合了五个指标---
{中线选股1/100/27}
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:=SMA(RSV,9,1)*10;
D:=SMA(K,3,1);
趋势J1:=3*K-2*D;
趋势J2:=EMA(K,3);
WH:=DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1);
CROSS(趋势J1,WH)AND CROSS(趋势J2,WH);
{美人如玉剑如虹}
A2:=MA(C,18);
A3:=(C-A2)/A2*100>=-9.9 ANDC<A2;
美人如玉剑如虹:A3 AND C/REF(C,1)>1.099,COLORRED;
{老鸭头优化}
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,60);
VAR4:=BARSLAST(CROSS(VAR1,VAR3));
VAR5:=BARSLAST(CROSS(VAR2,VAR3));
VAR6:=BARSLAST(HIGH=HHV(HIGH,VAR5));
VAR7:=BARSLAST(CROSS(VAR2,VAR1));
VAR8:=BARSLAST(CROSS(VAR1,VAR2));
VAR9:=VAR4>VAR5 AND VAR5>VAR6 ANDVAR6>VAR7 AND VAR7>VAR8 ANDVAR8<5;
VARA:=COUNT(CROSS(VAR2,VAR1),VAR5)=1;
老鸭头:VAR9 AND VARA ANDVAR3>REF(VAR3,1);
DRAWICON( VAR9 ANDVARA ANDVAR3>REF(VAR3,1),1.1,1);
{弄点钱玩}
JJ:=(H+L+C)/3;QJ0:=VOL/IF(H=L,4,H-L);J:="KDJ.J";
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(C,O)),QJ0*(MIN(O,C)-L));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJ-MIN(C,O)));
QJ3:=QJ0*(H-MAX(O,C));QJ4:=QJ0*(MAX(C,O)-JJ);
QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;DDZ:=DD*17;
DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;
弄点钱玩:CROSS(J,0) AND ((DDX>0 ANDDDY>0) OR DDZ>400);
二、绝路买入就赢,综合了三个指标
{出手就赢+阴线买入+绝路航标}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
STICKLINE(VAR9>-150,0,VAR9,3,1), ,COLORFF00FF;
底部吸筹指标:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00;
STICKLINE(CROSS(底部吸筹指标,-24),100,0,4,1), , COLORFFFFFF;
先知:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, , COLORFF00FF;
可能放量拉升: IF(CROSS(底部吸筹指标,-24),1,0), , COLORFFFFFF;
短线获利:STICKLINE(REF("KDJ.J",1)<0 AND"KDJ.J">0,60,0,2,0),COLOR0000FF;
VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);波段王:=SMA(VARK3,3,1), ,COLORRED,LINETHICK2;
波段鬼:=SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;
趋势线:=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),,
COLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1),COLORSTICK;
出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND(DK1-REF(DK1,1))>9,50,0), STICK,
COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);
买点准备:IF(趋势线<=10,0,10), COLORFF9933,LINETHICK3;
STICKLINE( CROSS(趋势线,10),0,73,4,1), COLOR3366FF,;
DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),COLORWHITE ;
DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'$备钱'),COLOR33FFCC,;
DRAWTEXT(REF("KDJ.J",1)<0 AND"KDJ.J">0,50,'短买'),,,,COLORRED ,;
DRAWTEXT(CROSS(底部吸筹指标,-24),80,'抄底'),COLORWHITE ,;
{绝路航标}
VAR11:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
B:SMA(VAR11,N,1);
VAR12:SMA(B,M,1);
绝路航标:IF(CROSS(B,VAR12) AND B<40,50,0);

{阴线买入}
VAR11AA:=EMA(CLOSE,30)-EMA(CLOSE,17);
VAR12AA:=EMA(VAR11AA,5);
九:=TROUGHBARS(3,10,1)<1 ANDCROSS(VAR11AA,VAR12AA);
DRAWICON(九>0,8,1 );
DRAWTEXT(九,99,'九'),COLOR000000;
VAR2A:=(EMA(CLOSE,26)-EMA(CLOSE,52))/MA(CLOSE,60)*100;
VAR3A:=EMA(VAR2A,18);
VAR4A:=VAR2A<-1;
VAR5A:=VAR4A AND CROSS(VAR2A,VAR3A);
追2:=VAR5A;
追涨C:=IF(追2>0,0.8,0),STICK,COLORYELLOW,LINETHICK4;
XX:=EMA(CLOSE,30)-EMA(CLOSE,17);
YY:=EMA(XX,13);
短针2:=TROUGHBARS(3,5,1)<1 ANDXX<YY;
阴:=IF(短针2>0,0.4,0),STICK,COLORF0F000,LINETHICK4;
DRAWICON(阴>0,8,1 );
DRAWTEXT(阴,85,'阴'),COLOR000000;
N1:=30;N2:=17;N3:=5;N4:=6;
VAR1X:=EMA(CLOSE,N1)-EMA(CLOSE,N2);
VAR2X:=EMA(VAR1X,N3);
剑:=CROSS(VAR1X,VAR2X) AND TROUGHBARS(3,7,1)<1;
DRAWICON(剑>0,8,1 );
DRAWTEXT(剑,73,'剑'),COLOR000000;
阴剑: 九 OR 剑 OR 阴;
三、量比叶陈抄底,综合了三个指标
LB:=VOL/REF(MA(VOL,5),1)/(FROMOPEN/240);
量比:LB,VOLSTICK;
{量比}关注线:1,COLOR00DDDD,LINETHICK1;
{量比}突破线:4,COLOR555555,LINETHICK1;
{陈氏抄底}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
抄底:IF(乖离<-12 AND 乖离>=-18,-4,0),COLORCYAN,LINETHICK1;
STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,1), COLORCYAN;
抄底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;
STICKLINE(乖离<-18,3,0,6,1),COLORFF35FF;
抄底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;
STICKLINE(乖离<-6,5,3,2,1),COLORRED;
抄底四:IF(乖离<-4.5,0,1),COLOR00FFFF,LINETHICK1;
STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;
VARD1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
VARD2:=DMA(CLOSE,VOL/MA(VOL,31)/31);
VARD3:=(CLOSE-VARD1)/VARD1*100<-10;
VARD4:=(VARD1-VARD2)/VARD2*100<-16;
VARD5:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;
VARD6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),3,1)*100>16;
VARD7:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));
VARD8:=INDEXC;
VARD9:=MA(VARD8,6);
VARDA:=MA(VARD8,24);
VARDB:=MA(VARD8,32);
VARDC:=VARDB>VARD9*1.11 ANDVARDA>VARD9*1.095;
SSS:=(VARD3 AND VARD4 AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 OR VARD5 ANDVARD6 AND CROSS(VARD7,79) OR VARDC ANDCLOSE/COST(8)<=0.8)*100;
抄底王:SSS>0,COLORWHITE,LINETHICK1;
STICKLINE(SSS>0,0,6,6,1),COLORWHITE;
{叶烨专用}
VAR1:=1992231;
VAR2:=IF(DATE<=VAR1,1,0);
VAR3:=1/WINNER(CLOSE);
VAR4:=MA(CLOSE,13);
VAR5:=100-ABS((CLOSE-VAR4)/VAR4*100);
VAR6:=LLV(LOW,75);
VAR7:=HHV(HIGH,75);
VAR8:=(VAR7-VAR6)/100;
VAR9:=SMA((CLOSE-VAR6)/VAR8,20,1);
VARA:=SMA((OPEN-VAR6)/VAR8,20,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=3*VARA-2*SMA(VARA,15,1);
VARD:=100-VARC;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=VAR18<=25 AND VAR19<-95 ANDVAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CLOSE>=-0.25 ANDVAR15<22 AND VAR16<55 ANDVAR17>50;
明天低买CGL90%: IF(CROSS(VAR20,0.5),8,0)*VAR2,COLOR00FFFF,LINETHICK2;
AA:=LLV(LOW,34);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
绝谷:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
买入成功率80%:IF(CROSS(绝谷,90) AND(DD<40),8,0),COLORFFFF00;
{MA10:MA(LB,10);
MA5:MA(LB,5);};

波段操盘(通达信指标副图)

副图源码---
拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE;
拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;
做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;
多头:IF(做空>=REF(做空,1),做空,DRAWNULL),COLORRED,LINETHICK3;
DRAWICON(做空>=REF(做空,1) ANDREF(做空,1)<REF(做空,2),做空,23);
空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3;
{DRAWICON(做空<=REF(做空,1) ANDREF(做空,1)>REF(做空,2),做空,19);}
短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;
中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;
红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
{红柱}
STICKLINE(红柱<REF(红柱,1)AND红柱>0,0,红柱,2,0),COLOR888800;
STICKLINE(红柱<REF(红柱,1)AND红柱>0,0,红柱,1.5,0),COLORAAAA00;
STICKLINE(红柱<REF(红柱,1)AND红柱>0,0,红柱,0.8,0),COLORDDDD00;
STICKLINE(红柱<REF(红柱,1)AND红柱>0,0,红柱,0.3,0),COLORFFFF00;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,2,0),COLOR000088;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,1.5,0),COLOR0000AA;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,0.8,0),COLOR0000DD;
STICKLINE(红柱>REF(红柱,1)AND红柱>0,0,红柱,0.3,0),COLOR0000FF;
STICKLINE(蓝柱<REF(蓝柱,1) AND蓝柱>0,0,蓝柱,2,0),COLOR008800;
STICKLINE(蓝柱<REF(蓝柱,1) AND蓝柱>0,0,蓝柱,1,0),COLOR00AA00;
STICKLINE(蓝柱<REF(蓝柱,1) AND蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00;
STICKLINE(蓝柱<REF(蓝柱,1) AND蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00;
{蓝柱}
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,2,0),COLOR880088;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,1.5,0),COLORAA00AA;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,0.8,0),COLORDD00DD;
STICKLINE(红柱>REF(红柱,1)AND红柱<0,0,红柱,0.3,0),COLORFF00FF;
STICKLINE(红柱<REF(红柱,1)AND红柱<0,0,红柱,2,0),COLOR888800;
STICKLINE(红柱<REF(红柱,1)AND红柱<0,0,红柱,1.5,0),COLORAAAA00;
STICKLINE(红柱<REF(红柱,1)AND红柱<0,0,红柱,0.8,0),COLORDDDD00;
STICKLINE(红柱<REF(红柱,1)AND红柱<0,0,红柱,0.3,0),COLORFFFF00;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,2,0),COLOR009999;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD;
STICKLINE(蓝柱>REF(蓝柱,1)AND蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF;
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300) AND VAR300<2.1 ANDC>O;
STICKLINE(A1,5,0,4,0),COLOR770077;
STICKLINE(A1,5,0,3,0),COLOR990099;
STICKLINE(A1,5,0,2,0),COLORBB00BB;
STICKLINE(A1,5,0,1,0),COLORDD00DD;
STICKLINE(A1,5,0,0.3,0),COLORFF00FF;
DRAWTEXT(A1,5.2,'全仓'),COLORRED;

跟着主力走吃喝不用愁(通达信股软)

源码---

RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD;
TGLXS:=(TFXXS-REF(TFXXS,1));
换手率:VOL/CAPITAL*100,LINETHICK0;
看好点位找背离:MA(TFXXS,5)-换手率;
点位留给有心人:MA(TFXXS,15)+换手率;
STICKLINE(TGLXS>0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;
STICKLINE(TGLXS>0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;
STICKLINE(TGLXS>0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;
STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;
STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;
STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;

STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;
STICKLINE(TGLXS>0 ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;
STICKLINE(TGLXS>0 ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;
STICKLINE(TGLXS<0 ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;
STICKLINE(TGLXS<0 ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;
STICKLINE(TGLXS<0 ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;
STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;
STICKLINE(TGLXS=0 ANDREF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;

缠中说禅指标TDX<本人认为是经典>

源码:

布林中线:MA(CLOSE,21);
布林上线:布林中线+2*STD(CLOSE,21) COLORGREEN;
布林下线:布林中线-2*STD(CLOSE,21) COLORRED;
局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);
局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);
局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);
局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);
局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);
局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);
局部极点A:=局部低点预选C+局部高点预选C;
AAAA:IF(局部低点预选C=-1,L,IF(局部高点预选C=1,H,DRAWNULL)) CIRCLEDOTCOLORYELLOW;
缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));
距前高天:=BARSLAST(局部高点预选C=1);
距前低天:=BARSLAST(局部低点预选C=-1);
小值周期:=LOWRANGE(L);
大值周期:=TOPRANGE(H);
低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1)AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 ORLLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);
低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) ANDL<REF(H,距前高天+1),-1,0);
预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) ORREF(低保留S,距前低天)=0,1,0);
判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND大值周期>REF(小值周期,距前低天) AND大值周期>REF(大值周期,距前高天),1,0);
高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) ANDHHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);
高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) ANDREF(低保留S,距前低天)=-1 AND (距前低天>=4 ORHHV(缺口判断,距前低天)=1),1,0);
高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) ANDH>REF(L,距前低天+1),1,0);
预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) ORREF(高保留,距前高天)=0,1,0);
判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND小值周期>REF(大值周期,距前高天) AND小值周期>REF(小值周期,距前低天),-1,0);
低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) ANDLLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND(距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR判断A=-1),-1,0);
低保留:=IF((低保留A=-1 OR 低保留B=-1) ANDL<REF(H,距前高天+1),-1,0);
AAAD:=IF(高保留=1 AND 低保留=-1 ANDH>REF(H,REF(距前高天,1)+2),1,IF(高保留=1 AND 低保留=-1 ANDL<REF(L,REF(距前低天,1)+2),-1,0));
极点保留:=IF(AAAD=0,高保留+低保留,AAAD);
局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOTCOLORYELLOW;
DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORBLUE;
DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE;

自从有了它,没在亏过钱

同花顺极品公式,自从有了它,没在亏过钱。

PS:大智慧第一代也可以用!

A1: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);
黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,coloryellow;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑马线,1)>90 ANDA2<0,7),黑马线,'跑'),COLOR00FF00;
DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');
DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');
DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');
底部:(A2<-10 ANDA2>REF(A2,1))*25,colorred;
DRAWICON(底部 AND A3>REF(A3,1),25,4);
机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0;

友情提示:

用这个你如果在不赚钱,你就别做股票了。

本人自用的一主两副指标,发现当同时出现买入信号后,第二天以上一天收盘价以下价位买进,在未来一周内绝对有5%-10%收益,希望大家能受益。

另外把3个指标转换为了选股指标和“一主加二副3者共振选股指标”,让大家更容易的寻找的心仪的股票。
当然指标不是万能的,希望大家一定要做好止损、止盈位。
本指标是经过本人从数十种指标组合中精选出来的。

申明:本人使用的是TDX6.56版本,在这个版本的基础上三个指标公式以及选股均可以使用,如若出现错误请尝试下载最新版本。








主图源码:短线无敌
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) ANDCLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 ORVAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) ANDVAR1);
VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);

红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:=离场,COLORFF99FF,NODRAW;
今离场价:REF(离场,1)COLOR0000FF,NODRAW;
青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
明进场价:=进,COLOR33AACC,NODRAW;
今进场价:REF(明进场价,1),COLORFF0000,NODRAW;
短买:VAR19,COLOR33AACC,NODRAW;
品红离场:VAR1A,COLORFF99FF,NODRAW;
急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;

辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+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,COLOR00FFFF;
IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;
IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;
IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;
IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;
STICKLINE(ISLASTBAR AND (红色持股 ORREF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色观望 ORREF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,3.5,0),COLOR858500;
STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;
STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;
STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;
STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;
STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;
STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;
STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;
STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;
STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;
STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;
STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;
CO:=(C-O);
STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;
STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;
STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;
STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;
STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;
STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;
STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;
STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;
STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;
STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;
DRAWTEXT(短买,REF(CLOSE,1)-0.2,'B'),COLORRED;
STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;
STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;
STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;
STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;
STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;
DRAWTEXT(品红离场,REF(CLOSE,1)+0.5,'S'),COLORGREEN;

--------------------------------------------------------------------------------------------------
第一幅图源码:底部吸筹
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
STICKLINE(VAR9>-150,0,VAR9,0.1,0),COLORFF00FF;
吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
STICKLINE(CROSS(吸筹指标,-24),100,0,1,0),COLORFFFFFF;
先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;
放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;
获利:STICKLINE(REF("KDJ.J",1)<0 AND"KDJ.J">0,60,0,1,0),COLOR0000FF;
VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);
波段王:SMA(VARK3,3,1),COLORRED,LINETHICK2;
波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;
趋势线: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),COLORFF6666,LINETHICK2;
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:SMA(RSV9,3,1);
DK1:K1-REF(K1,1),COLORSTICK;
出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND(DK1-REF(DK1,1))>9,50,0),STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);
STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;
DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'底'),COLORWHITE ;
DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'钱'),COLOR33FFCC;
DRAWTEXT(REF("KDJ.J",1)<0 AND"KDJ.J">0,50,'买'),COLORRED ;
DRAWTEXT(CROSS(吸筹指标,-24),80,'底'),COLORWHITE ;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) *100);
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
VARB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VARC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VARD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VARE:=(((VARB + (2 * VARC)) + (3 * VARD)) / 6);
VARF:=MA(VARE,3);
STICKLINE((CROSS(J,0) AND (VARF <= (0 -7))),0,88,2,0),COLORBLUE;
DRAWICON((CROSS(J,0) AND (VARF <= (0 -7))),88,9);
VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VARO3:=SMA(SMA(VARO2,3,1),3,1);
VARO4:=EMA(VARO3,5);
VARO5:=LLV(LOW,26);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
STICKLINE(CROSS(VARO4,10) ANDVARO4>10,25,0,1,0),COLORYELLOW;
建仓区: IF((VARO7<10),0,20),LINETHICK3 ,COLORRED;
--------------------------------------------------------------------------------------------------
第二幅图源码:短线王
DRAWBAND(110,RGB(255,180,0),-10,RGB(0,150,255));
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;
VAR3A:=3;
VAR2A:=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);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),20,-10),STICK,COLORLIBLUE,LINETHICK3;
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);
FY:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
QS:(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2)),LINETHICK2,COLORRED;

--------------------------------------------------------------------------------------------------

主图和附图三合一共振选股:
{短线三合一选股}
VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) ANDCLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));

MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);

RSV9:=(CLOSE-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 AND (FILTER(YXF=1,5) ) AND ((REF(VARD OR VARE OR VARF OR VAR10OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,1)) AND VAR1)
OR (REF("KDJ.J",1)<0 AND "KDJ.J">0)AND (FILTER(YXF=1,5) ) AND ((REF(VARD OR VARE OR VARF OR VAR10 ORVAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,1)) AND VAR1);

--------------------------------------------------------------------------------------------------

各指标改装成选股指标:
1、短线无敌
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR1:=(CLOSE>REF(CLOSE,1) ANDCLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VARD:=(CLOSE<REF(CLOSE,1) ANDCLOSE<REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));
(REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1;

2、底部吸筹

RSV9:=(CLOSE-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;

3、短线王

VAR3A:=3;
VAR2A:=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);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),20,-10)=20;

通达信五星推荐“涨停绝技”★★★★★


使用介绍---

{强势股和潜在强势股,只要看十天换手就知道了。有没有庄根本逃不了你的眼睛。
看一看十天换手80以上的你就知道有强庄,但是目前横盘或阴线洗盘的话,你就进去啦。
如果在30以上那么看此庄家是否还在做高抛低吸。盘口显示高抛低吸的话就说明庄家筹码不够。等一等进。
如果在30以下的根本不用考虑,除非有大题材,庄家会通过拉升来吸筹码。这种做的太明显了容易引起小散注意的。
这种股不能碰,宁可你天天看他涨停。
钱要拿在手上,看准一个进一个。};

=============================================================================================

副图源码---

WOL:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 ANDPERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VOLUME:VOL,VOLSTICK;
V5:MA(VOLUME,5);
V10:MA(VOLUME,10);
V135:MA(VOLUME,135);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主买>0,0,主买,2,0),COLORRED;
{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}
STICKLINE(主买<REF(主买,1)AND主买>0,0,主买,2,0),COLOR00FFFF;
换手:VOL/CAPITAL*100,POINTDOT;
二十日换手:SUM(换手,20);

终极奉献√通达信富翁⊙o⊙主图

简要说明---

决无未来函数!!!!

指标成功率达到90%以上。也就是说买进十次有九次会涨。

得此指标,如操作的好几乎百分之百赚钱!

本人使用心得:

结合KDJ,当富翁⊙o⊙发出红箭头买入信号,选择KDJ在低位的放心买进。

一星期一般有10%左右的利润。如运气很差,买入下跌次日换股。

因为每次操作都有90%成功率。不怕不赚钱!

源码---
A:=DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),COLORBLUE,LINETHICK2;
TY:=C;
成本:=(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORRED,LINETHICK2;

MA0:MA(C,0)COLORYELLOW,LINETHICK2;
K:=(C+H+L)/3;
D:=MA(K,4);
阻力:=HHV(D,55),COLORYELLOW,LINETHICK2;
顶部:=HHV(H*0.98,55)COLORFFFFFF,LINETHICK2;
DRAWICON(REF(C,1)<D AND C>D ANDD<REF(D,1),L*0.98,1),COLORYELLOW,LINETHICK2 ;
{均线}
TYP:= (HIGH + LOW +2* C)/4;
均线:=EMA(TYP,3),LINETHICK2,COLORWHITE;
均线上轨:=HHV(均线,14),LINETHICK2,COLORYELLOW;
均线下轨:=LLV(均线,14),LINETHICK2,COLORGREEN;
角度:=ATAN((均线/REF(均线,1)-1)*100)*180/3.1416;
{K线优化}
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,1),COLOR5B5BFF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,2.7,0),COLOR0000CC;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,2,0),COLOR0E0EFF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,1.2,0),COLOR4848FF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0.6,0),COLOR7878FF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0.1,0),COLORA1A1FF;
STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0,0),COLORCACAFF;

STICKLINE(CLOSE<OPEN,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,2.7,0),COLOR990000;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,2,0),COLORCC0000;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,1.2,0),COLORFF4400;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0.6,0),COLORFF8800;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0.1,0),COLORFFCC00;
STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0,0),COLORCYAN;

X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(买=1,5),L*0.97,1);

价值万元的K线语言-给你视觉震撼FH

源码:

DRAWGBK(1,COLORRGB(30,60,150),COLORRGB(255,255,255),1);
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,8);
MA5:=MA(CLOSE,5);
MA21:=EMA(CLOSE,21);
STICKLINE((VAR1 <MA21),CLOSE,OPEN,9,0),colorFF3300;
STICKLINE((VAR1 <MA21),CLOSE,OPEN,6,0),colorFF9900;
STICKLINE((VAR1 <MA21),CLOSE,OPEN,2.4,0),colorFFCC00;
STICKLINE((VAR1 <MA21),CLOSE,OPEN,1,0),colorFFFFFF;
STICKLINE((VAR1 < MA21),MAX(OPEN,CLOSE),HIGH,0.8,0),colorFFCC00;
STICKLINE((VAR1 < MA21),MIN(OPEN,CLOSE),LOW,0.8,0),colorFFCC00;
STICKLINE((VAR1 > MA21),CLOSE,OPEN,9,0),color99;
STICKLINE((VAR1 > MA21),CLOSE,OPEN,6,0),colorCC;
STICKLINE((VAR1 > MA21),CLOSE,OPEN,2.4,0),colorFF;
STICKLINE((VAR1 > MA21),CLOSE,OPEN,1,0),colorFFFFFF;
STICKLINE((VAR1 > MA21),MAX(OPEN,CLOSE),HIGH,0.8,0),color33FF;
STICKLINE((VAR1 > MA21),MIN(OPEN,CLOSE),LOW,0.8,0),color33FF;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,CLOSE,OPEN,9,0),color1DBB00;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,CLOSE,OPEN,6,0),color23E500;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,CLOSE,OPEN,2.4,0),color3DFF1A;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,CLOSE,OPEN,1,0),colorB0FFA1;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,MAX(OPEN,CLOSE),HIGH,0.8,0),colorD4FFCB;
STICKLINE(((VAR1 > VAR2) AND (VAR1 <MA21)) ,MIN(OPEN,CLOSE),LOW,0.8,0),colorD4FFCB;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,CLOSE,OPEN,9,0),colorFB6EB;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,CLOSE,OPEN,6,0),color31E4F2;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,CLOSE,OPEN,2.4,0),color46C9F2;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,CLOSE,OPEN,1,0),color81DAF6;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,MAX(OPEN,CLOSE),HIGH,0.8,0),colorBBEBFB;
STICKLINE(((VAR1 < VAR2) AND (VAR1 >MA21)) ,MIN(OPEN,CLOSE),LOW,0.8,0),colorBBEBFB;
MA2:=MA(CLOSE,10);
MA34:=MA(CLOSE,34);
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);
顶:=(((REF(BIAS18,1) >= 5) AND CROSS(VARJ,VARE)) AND(K > 79));
DRAWTEXT(FILTER(((((REF(BIAS18,1) >= 5) ANDCROSS(VARJ,VARE))) AND (K > 79)),3),(HIGH *1.02),'↓S'),colorFFFF;
VVAR1:=(EMA(CLOSE,30) - EMA(CLOSE,17));
VVAR2:=EMA(VVAR1,5);
DRAWTEXT(FILTER(((CROSS(VVAR1,VVAR2) ) AND (TR1OUGHBARS(3,7,1)< 1)),3),(CLOSE * 0.96),'↑B'),colorFFFF;
DRAWTEXT((FILTER((((((((REF(CLOSE,13) - CLOSE) / REF(CLOSE,13)) *100) > 15) AND ((SUM((VOL / CAPITAL),13) * 100)< 18)) AND (((VOL / CAPITAL) * 100) <2.5)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 100)< 8)),3)),(CLOSE * 0.96),'↑B'),colorFF;
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW- REF(CLOSE,1)))),7);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD >LD)),HD,0),7);
DMM:=SUM(IF(((LD > 0) AND (LD >HD)),LD,0),7);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),7);
ADXR:=((ADX + REF(ADX,7)) / 2);
DRAWTEXT(FILTER((((COUNT(PDI,4) = 0)) AND ((HHV(HIGH,10) /LLV(LOW,10)) > 1.2)),3),(CLOSE *0.96),'↑B'),colorFFFF;
VAR1J:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) *100);
VAR2J:=SMA(VAR1J,3,1);
VAR3J:=SMA(VAR2J,3,1);
VAR4J:=(VAR1J * 1.05);
VAR6J:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) *100);
VAR7J:=SMA(VAR6J,5,1);
VAR9J:=(((MA((VOL / CAPITAL),30) * MA(VOL,60)) / 10000) +MA(CLOSE,30));
DRAWTEXT(FILTER((((CROSS(VAR2J,VAR4J) AND (VAR3J >60))) AND (VAR7J < (VAR9J + 10))),3),(CLOSE *1.05),'↓S'),colorFFFF;
早晨之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND(REF(OPEN,1) < REF(CLOSE,2))) AND ((ABS((REF(OPEN,1)- REF(CLOSE,1))) / REF(CLOSE,1)) < 0.03)) AND((CLOSE / OPEN) > 1.05)) AND (CLOSE >REF(CLOSE,2))) ;
黄昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.03) AND(REF(OPEN,1) > REF(CLOSE,2))) AND ((ABS((REF(OPEN,1)- REF(CLOSE,1))) / REF(CLOSE,1)) < 0.02)) AND((CLOSE / OPEN) < 0.97)) AND (CLOSE <REF(CLOSE,2))) ;
长十字:=((CLOSE = OPEN) AND ((HIGH / LOW) > 1.03));
垂死十字:=(((CLOSE = OPEN) AND (CLOSE = LOW)) AND (CLOSE<> HIGH)) ;
早晨十字星:=((((((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND(REF(OPEN,1) < REF(CLOSE,2))) AND (REF(OPEN,1) =REF(CLOSE,1))) AND ((CLOSE / OPEN) > 1.05)) AND(CLOSE > REF(CLOSE,2))) ;
黄昏十字星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.05) AND(REF(OPEN,1) > REF(CLOSE,2))) AND (REF(OPEN,1) =REF(CLOSE,1))) AND ((CLOSE / OPEN) < 0.95)) AND(CLOSE < REF(CLOSE,2))) ;
射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) >(3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE >MA(CLOSE,5))) ;
倒转锤头:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) >(3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE <MA(CLOSE,5)));
锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) >(3 * (HIGH - MIN(OPEN,CLOSE))))) AND (CLOSE <MA(CLOSE,5))) ;
吊颈:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) >(3 * (HIGH - MIN(OPEN,CLOSE))))) AND (CLOSE >MA(CLOSE,5))) ;
穿头破脚:=(((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND((CLOSE / OPEN) < 0.96)) AND (CLOSE <REF(OPEN,1))) AND (OPEN > REF(CLOSE,1))) OR((((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND((CLOSE / OPEN) > 1.04)) AND (CLOSE >REF(OPEN,1))) AND (OPEN < REF(CLOSE,1))));
乌云盖顶:=(((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND((CLOSE / OPEN) < 0.97)) AND (OPEN >REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) ;
曙光初现:=(((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND((CLOSE / OPEN) > 1.03)) AND (OPEN <REF(CLOSE,1))) AND (CLOSE > REF(CLOSE,1)));
身怀六甲:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1))> 0.04) AND ((ABS((CLOSE - OPEN)) / CLOSE)< 0.005)) AND (MAX(CLOSE,OPEN) <MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (MIN(CLOSE,OPEN)> MIN(REF(CLOSE,1),REF(OPEN,1))));
十字胎:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1))> 0.04) AND (CLOSE = OPEN)) AND (CLOSE< MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (CLOSE> MIN(REF(CLOSE,1),REF(OPEN,1)))) ;
平顶:=((ABS((HIGH - REF(HIGH,1))) / HIGH) < 0.001);
平底:=(((ABS((LOW - REF(LOW,1))) / LOW) < 0.001) AND((ABS((REF(LOW,1) - REF(LOW,2))) / REF(LOW,1)) <=0.001));
大阳烛:=(((CLOSE / OPEN) > 1.05) AND ((HIGH / LOW)< ((CLOSE / OPEN) + 0.018))) ;
三个白武士:=(((((REF(CLOSE,2) > REF(OPEN,2)) AND(REF(CLOSE,1) > REF(OPEN,1))) AND (CLOSE> OPEN)) AND (REF(CLOSE,1) >REF(CLOSE,2))) AND (CLOSE > REF(CLOSE,1))) ;
双飞乌鸦:=(((REF(CLOSE,1) < REF(OPEN,1)) AND (CLOSE< OPEN)) AND ((CLOSE / OPEN) < 0.98));
孕育线:=(((((((((((REF(CLOSE,2) > REF(OPEN,2)) AND(((REF(CLOSE,2) - REF(OPEN,2)) / REF(OPEN,2)) >= (2/ 100))) AND (REF(OPEN,1) >= REF(CLOSE,1))) AND(((REF(OPEN,1) - REF(CLOSE,1)) / REF(CLOSE,1)) <= (2/ 100))) AND (REF(OPEN,1) <= REF(CLOSE,2))) AND(REF(CLOSE,1) >= REF(OPEN,2))) AND (CLOSE>= OPEN)) AND (((CLOSE - OPEN) / OPEN)>= (2 / 100))) AND (CLOSE >=REF(OPEN,1))) AND (OPEN <= REF(CLOSE,1))) AND(((MAX(CLOSE,REF(CLOSE,2)) - MIN(CLOSE,REF(CLOSE,2))) /MIN(CLOSE,REF(CLOSE,2))) <= (1 / 100)));
多方炮:=(((REF(CLOSE,2) > REF(OPEN,2)) AND(REF(CLOSE,1) < REF(OPEN,1))) AND (CLOSE> OPEN)) ;
出水芙蓉:=(((((OPEN < EMA(CLOSE,20)) OR (OPEN< EMA(CLOSE,40))) OR (OPEN <EMA(CLOSE,60))) AND (CLOSE >MAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))))) AND (((VOL /MA(VOL,30)) > 1.2) AND ((CLOSE / REF(CLOSE,1))> 1.049))) ;
上升三部曲:=(((((((((((((REF(CLOSE,4) / REF(OPEN,4)) >1.03) AND (REF(CLOSE,3) < REF(OPEN,3))) AND(REF(CLOSE,2) < REF(OPEN,2))) AND (REF(CLOSE,1)< REF(OPEN,1))) AND (REF(LOW,4) <REF(LOW,3))) AND (REF(LOW,4) < REF(LOW,2))) AND(REF(LOW,4) < REF(LOW,1))) AND (REF(HIGH,4)> REF(HIGH,3))) AND (REF(HIGH,4) >REF(HIGH,2))) AND (REF(HIGH,4) > REF(HIGH,1))) AND((CLOSE / OPEN) > 1.03)) AND (CLOSE >REF(CLOSE,4))) ;
下跌三部曲:=(((((((((((((REF(CLOSE,4) / REF(OPEN,4)) <0.97) AND (REF(CLOSE,3) > REF(OPEN,3))) AND(REF(CLOSE,2) > REF(OPEN,2))) AND (REF(CLOSE,1)> REF(OPEN,1))) AND (REF(LOW,4) <REF(LOW,3))) AND (REF(LOW,4) < REF(LOW,2))) AND(REF(LOW,4) < REF(LOW,1))) AND (REF(HIGH,4)> REF(HIGH,3))) AND (REF(HIGH,4) >REF(HIGH,2))) AND (REF(HIGH,4) > REF(HIGH,1))) AND((CLOSE / OPEN) < 0.97)) AND (CLOSE <REF(CLOSE,4)));
跳空缺口:=(HIGH < REF(LOW,1)) OR ((LOW >REF(HIGH,1)) );
三只乌鸦:=(((((REF(CLOSE,2) < REF(OPEN,2)) AND(REF(CLOSE,1) < REF(OPEN,1))) AND (CLOSE< OPEN)) AND (REF(CLOSE,1) <REF(CLOSE,2))) AND (CLOSE < REF(CLOSE,1))) ;
光脚阴线:=((LOW = CLOSE) AND (HIGH <>LOW)) ;
光头阳线:=((HIGH = CLOSE) AND (HIGH <>LOW));
分离:=((OPEN = REF(OPEN,1)) AND (((CLOSE - OPEN) * (REF(CLOSE,1) -REF(OPEN,1))) < 0)) ;
长下影:=(((MIN(CLOSE,OPEN) - LOW) / (HIGH - LOW)) >0.667) ;
长上影:=(((HIGH - MAX(CLOSE,OPEN)) / (HIGH - LOW)) >0.667) ;
十字星:=((CLOSE = OPEN) AND (HIGH <>LOW)) ;
大阴烛:=(((OPEN / CLOSE) > 1.05) AND ((HIGH / LOW)< ((OPEN / CLOSE) + 0.018))) ;
好友反攻:=(((REF(CLOSE,1) < REF(OPEN,1)) AND (CLOSE> OPEN)) AND ((ABS((CLOSE - REF(CLOSE,1))) / CLOSE)< 0.002)) OR ((((REF(CLOSE,1) >REF(OPEN,1)) AND (CLOSE < OPEN)) AND ((ABS((CLOSE -REF(CLOSE,1))) / CLOSE) < 0.002)) );
倾盆大雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) >= 1.03) AND(OPEN < REF(CLOSE,1))) AND (OPEN >REF(OPEN,1))) AND (CLOSE < REF(OPEN,1))) ;
EXPLAIN((1 =1),'【K线语言解盘】'),colorFFFF;
EXPLAIN(倾盆大雨,'K线形态分析:倾盆大雨,见顶信号;'),colorFFFF00;
EXPLAIN(大阴烛,'K线形态分析:大阴烛,后市向淡,发生逆转;'),colorFFFF00;
EXPLAIN(好友反攻,'K线形态分析:好友反攻,底部反转;'),colorFF;
EXPLAIN(跳空缺口,'K线形态分析:跳空缺口,注意向上还是向下跳空;'),colorFFFFFF;
EXPLAIN(光脚阴线,'K线形态分析:光脚阴线,空方抛压的坚决势态,具体力度的的大小要根据阴线实体的大小来定,下跌信号;'),colorFFFF00;
EXPLAIN(光头阳线,'K线形态分析:光头阳线,说明多方积极上攻态势,具体力度的的大小要根据阳线实体的大小来定,后市看涨;'),colorFF;
EXPLAIN(三只乌鸦,'K线形态分析:三只乌鸦,行情开始疲软,更趋加速下降的象征,可能见顶回落;'),colorFFFF00;
EXPLAIN(分离,'K线形态分析:分离,注意看涨分离和看跌分离;'),colorFFFFFF;
EXPLAIN(长下影,'K线形态分析:长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorFF;
EXPLAIN(长上影,'K线形态分析:长上影,表明行情上档压力沉重,升势受阻;'),colorFFFF00;
EXPLAIN(下跌三部曲,'K线形态分析:下跌三部曲,下跌信号;'),colorFF;
EXPLAIN(上升三部曲,'K线形态分析:上升三部曲,上涨信号;'),colorFFFF00;
EXPLAIN(早晨之星,'K线形态分析:早晨之星,见底回升;'),colorFF;
EXPLAIN(黄昏之星,'K线形态分析:黄昏之星,见顶回落;'),colorFFFF00;
EXPLAIN(十字星,'K线形态分析:十字星,重要的警告信号,原趋势停顿或反转,有转向意味,注意股价位置在顶部还是底部;'),colorFFFFFF;
EXPLAIN(长十字,'K线形态分析:长十字,注意在顶部还是底部;'),colorFFFFFF;
EXPLAIN(垂死十字,'K线形态分析:垂死十字,下跌信号;'),colorFFFF00;
EXPLAIN(早晨十字星,'K线形态分析:早晨十字星,上涨信号,见底回升;'),colorFF;
EXPLAIN(黄昏十字星,'K线形态分析:黄昏十字星,下跌信号,见顶回落;'),colorFFFF00;
EXPLAIN(射击之星,'K线形态分析:射击之星,可能见顶回落,可靠性低;'),colorFFFF00;
EXPLAIN(倒转锤头,'K线形态分析:倒转锤头,可能见底回升;'),colorFF;
EXPLAIN(锤头,'K线形态分析:锤头,可能见底回升,如有量配合,信号强烈;'),colorFF;
EXPLAIN(吊颈,'K线形态分析:吊颈,上升行情中见顶回落,顶部出现,见顶信号;'),colorFFFF00;
EXPLAIN(平顶,'K线形态分析:平顶,温和的反转;'),colorFFFF00;
EXPLAIN(穿头破脚,'K线形态分析:穿头破脚,顶部出现,见顶回落信号;'),colorFFFF00;
EXPLAIN(乌云盖顶,'K线形态分析:乌云盖顶,见顶回落信号;'),colorFFFF00;
EXPLAIN(曙光初现,'K线形态分析:曙光初现,后市见底回升;'),colorFF;
EXPLAIN(身怀六甲,'K线形态分析:身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorFF;
EXPLAIN(十字胎,'K线形态分析:十字胎;'),colorFF;
EXPLAIN(平底,'K线形态分析:平底,温和的反转;'),colorFF;
EXPLAIN(大阳烛,'K线形态分析:大阳烛,,看涨;'),colorFF;
EXPLAIN(三个白武士,'K线形态分析:三个白武士,每日收盘价上移,表示可能见底回升;'),colorFF;
EXPLAIN(双飞乌鸦,'K线形态分析:双飞乌鸦,行情将见顶回落;'),colorFFFF00;
EXPLAIN(孕育线,'K线形态分析:孕育线,注意股价位置;'),colorFFFFFF;{孕育线}
EXPLAIN(多方炮,'K线形态分析:多方炮,在底部出现有上涨以为,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorFF;
EXPLAIN(出水芙蓉,'K线形态分析:出水芙蓉,见底回升;'),colorFF;
((((MA(CLOSE,4) + MA(CLOSE,8)) + MA(CLOSE,16)) +MA(CLOSE,32)) /4),LINETHICK2,colorFFFF;

准买入,很少被套!炒股15年一直在用


精准买入,很少被套!炒股5年一直在用。

指标很简单,不贪的话被套的几率很小。原理就不多说了,简单讲就是量加均线。 

源码:

EMA10:MA(C,10),COLORREDLINETHICK2;
EMA5:MA(C,5),COLORYELLOW LINETHICK1;
EMA30:MA(C,30),COLORBLUE LINETHICK1;
TY:=DYNAINFO(8)>0;
GG:=V=LLV(V,100) AND TY;
DRAWICON(GG,LOW*0.96,1);
DRAWICON(GG,LOW*0.95,17);

敢死队”独创指标通达信

说明: 空心柱——阳线
实心柱——阴线

回帖可看通达信的主图源码:

生命线:MA(CLOSE,26),COLORRED,LINETHICK2;
[转载]下面这些指标,是开博以来大家相对比较喜欢的! 百万文字论坛综合转载
STICKLINE(C>=生命线 ANDC>=O,H,L,0,1),COLORRED;
STICKLINE(C>=生命线 ANDC>=O,C,O,2.5,0),COLORRED;
DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100 ;
多头线:EMA(C,1.5),COLOR0000CC;
空头线:EMA(C,5),COLORMAGENTA;
均衡线:EMA(空头线,5),COLORGREEN;
VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡线*0.98,'↖主力拉升'),COLOR00FF00;
MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) ANDCROSS(MA(DX,2),DX);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2.5,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2.5,0),COLORBLUE;
白买进:DRAWNULL,NODRAW,COLORWHITE;
黄加仓:DRAWNULL,NODRAW,COLORYELLOW;
蓝跌:DRAWNULL,NODRAW,COLORBLUE;
绿见顶:DRAWNULL,NODRAW,COLORGREEN;
红强势:DRAWNULL,NODRAW,COLORRED;
红蓝调整:DRAWNULL,NODRAW,COLORGRAY;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) -LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /(HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6)- CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),1);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'↖买'),COLOR4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.02),'卖'),COLORFFFF34;
VARE1:=EMA(C,3);VARE2:=EMA(C,5);VARE3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;VAR9:=EMA(VAR7,8);
STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,1),COLORBLUE;
STICKLINE(VAR7<1*REF(VAR7,1),O,C,2.5,1),COLORBLUE;
STICKLINE(VAR7<1*REF(VAR7,1) ANDC<O,O,C,2.5,0),COLORBLACK;
STICKLINE(VAR7<1*REF(VAR7,1) ANDC<O,O,C,2.3,0),COLORBLUE;
STICKLINE(VAR7>1*REF(VAR7,1),H,L,0,1),COLORRED;
STICKLINE(VAR7>1*REF(VAR7,1),O,C,2.5,1),COLORRED;
STICKLINE(VAR7>1*REF(VAR7,1) ANDC<O,O,C,2.5,0),COLOR0000DD;
STICKLINE(VAR7<1*REF(VAR7,1) ANDVAR9>1*REF(VAR9,1),H,L,0,1),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) ANDVAR9>1*REF(VAR9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) ANDVAR9>1*REF(VAR9,1) ANDC<O,O,C,2.5,0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;

献一个很准的极品逃顶指标+用法+图示

藏很久的逃顶指标,该指标在各分时图上均适用。
用这个指标可以判断,个股逃顶数值在3.2以上,尤其是到达3.5以上,一旦在高位出现绿色柱状,就要及时卖出了,连续出现2个绿色柱状,说明下降通道打开了,更要逃命了,掌握住这点,你就是赢家。我们不是庄家,不会卖到最高价,但通过这个指标,可以卖到较高价。
个股购买时,也可以参考这个指标,逃顶指标到达3.0以上的个股要谨慎买入了,对于逃顶指标到达3.3以上的个股,原则上不买入了,此时的下跌风险远远大于上涨的机会。

源码如下:
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
阶段卖出: 3.2,COLORC6C600;
3.5,COLOR0088FF;
清仓卖出: 3.5,COLORFF75FF;
动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),3,1),COLORRED;
STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),3,1),COLOR00FF00;
底部:0.2,COLOR70DB93;
关注:0.5,COLORYELLOW;
DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);
DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2);
DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);
DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);
强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;
数值:动力线,COLORA8A8A8;

牛股起爆公式--经实验成功率95%以上

牛股起爆公式--经实验成功率95%以上,附交割图一张。
HSL:=EMA(VOL/CAPITAL,3);
ZDL:=HHV(HSL,240);
ZXL:=LLV(HSL,240);
XS:=MA(C,33);
锁定:EMA((HSL-ZXL)/ZXL*XS,13);
浮动:EMA((ZDL-HSL)/HSL*XS,13);
力量对比:锁定-浮动,COLORSTICK;
A:=1.1*C;
B:=0.9*C;
B1:=100*(WINNER(A)-WINNER(B));
锁定筹码 :100-B1;
C1:=MA(C,13)<REF(MA(C,13),1);
明天买:IF(CROSS(锁定筹码,90)AND C1,60,0)*2;
筹码锁定区:STICKLINE(锁定筹码>65 ANDC1,锁定筹码-50,0,6,0),COLORGREEN;

VAR4:SMA(100*(C-LLV(L,55))/(HHV(H,55)-LLV(L,55)),13,1)-10;
安全区:VAR4<20,COLORFFFF00;
STICKLINE(安全区,VAR4,20,8,1),COLORYELLOW;
风险区:60;通达信分时∷超强分时

长微博

微语录

九宫格

发照片

发视频

分享到新

BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));
底线:1.003,COLORRED,LINETHICK2;
高线:1.03,COLORRED,LINETHICK3;
黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;
洋红色主力线:EXPMA((DCLOSE/VBNH),60),COLORMAGENTA,LINETHICK2;
绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/VBNH),60)*1,1);
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/VBNH),120)*1,2);
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);
STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), ,COLORMAGENTA;
STICKLINE(EXPMA(C,10)>EXPMA(C,60),1.03,1.034,1.0,0),COLORRED;
STICKLINE(EXPMA(C,10)<EXPMA(C,60),1.03,1.025,1.0,0),COLORGREEN;
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,'拉升'),COLORWHITE;
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE;
STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003,1.03,1.039,1.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE;
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.0326*1,13);
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量'),COLORWHITE;
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.005,'超强'),COLORWHITE;
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);

---通达信分时∷真的是极品,真的无未来

源玛---

V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;
主力撤: IF(V4<=0,V4,0),COLORGREEN;
主力进: IF(V4>=0,V4,0);
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大盘资金进场:
IF(VB>=0,VB,0),COLORYELLOW;
大盘资金撤走:
IF(VB<=0,VB,0),COLORRED;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线: EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;
AA:=(趋势线<=13) ANDFILTER((趋势线<=13),15);
DRAWTEXT (AA,30,'准备现金'),COLORCC9900;
买入股票: STICKLINE(趋势线<=13 ANDV12>13,0,50,5,0),COLOR0099FF;
BB:= (趋势线<=13 AND V12>13) ANDFILTER((趋势线<=13 AND V12>13),10);
DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;
见顶清仓: STICKLINE(趋势线>=90 ANDV12,0,30,5,0),COLORRED;
CC:=(趋势线>=90 AND V12) ANDFILTER((趋势线>=90 AND V12),10);

最近,行情不佳,本人将近几年用得较好的RSI指标(无未来)送给大家,先看几张图:


当MA6线由绿转红时买入。
其实,我们用通达信的画线工具可以找到很好的卖点,请看地二张图:


将最高点A与次高点B的连线形成一条黄色线,当RSI线(白色线)上穿黄色线就是最佳卖点!
当然再配合成交量来买效果就更佳了,看图3:


一般情况下用60分钟图来买就已经达到很好效果,激进的朋友可以用30分钟图来买!

源码---

LC:=REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2;

MA6 :MA(RSI6,6),COLORGREEN;
IF(MA6>REF(MA6,1) ORRSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2;

通达信副图∮5星推荐★★★★★号称NO.1

使用说明:

黄色为立桩量,绿色长竖条为逃顶提示,蓝色与红箭头为突破,红色为牛,
紫色为立桩三天法则成立,笑脸为寻底,棕色与绿箭头为破位,淡红色黑中
线涨停,深绿色黑中线跌停,∠为45度上升,亮绿色为顶背离,紫色为底背离,
红绿点为筹码提示,红点表示获利筹75以上,绿点表示75以下。

源玛---

股价趋势:=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);
底部警戒:=10,COLORRED,LINETHICK2;
底1:=CROSS(股价趋势,底部警戒);
A1:=(2*CLOSE+HIGH+LOW)/4;
A2:=LLV(LOW,27);
A3:=HHV(HIGH,27);
A4:=EMA((A1-A2)/(A3-A2)*100,13);
A5:=EMA(0.618*REF(A4,1)+0.382*A4,3);
底2:=CROSS(A4,A5) AND A4<16;
波底:=底1 AND 底2;
{奔牛}
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
牛:=CROSS(VAR5,VAR3) AND VAR3<2.1 ANDC>O;
{逃顶提示}
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
{突破与破位}
N:=19;
VARB1:=HHV(HIGH,N);
VARB2:=LLV(LOW,N);
阻力线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),21)-0.5;
操作线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),5)-0.5;
突破:=CROSS(操作线,阻力线) AND 阻力线<0.1;
破位:=CROSS(阻力线,操作线) AND 阻力线>0.25;
{立桩成立判断}
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
T12:=V2>=1;
T0:=BARSLAST(T12);
L1:=REF(L,T0);
H1:=REF(H,T0);
L11:=MIN(REF(L,1),L);
L10:=MIN(L11,REF(L,2));
L21:=MAX(REF(L,1),L);
L20:=MAX(L21,REF(L,2));
T111:=(REF(V2>=1,3) OR REF(V2>=1,2)OR REF(V2>=1,1)) AND
((L10>L1 AND L20>H1) OR(L11>L1 AND L21>H1) OR(L>H1));
T11:=T111 AND REF(T111,1)=0;
{涨跌停}
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
{顶背离与底背离}
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);
顶背离:=CROSS(88,RSI);
底背离:=CROSS(FF,MA15);
{45度攻击}
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
T1:=FILTER(BB13>1 ANDEMA(X1,13)>REF(EMA(X1,8),1),10);
{获利盘提示}
获利盘:=WINNER(C)*100;
{彩色成交量柱线}
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5),COLORWHITE;
MAVOL2:MA(VOLUME,35),COLORYELLOW;MAVOL3:MA(VOLUME,135),COLORGREEN;
{V2:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;}
STICKLINE(V2>=1,0,VOL*0.5,2,0),COLORYELLOW;
STICKLINE(动力线>=3.2,0,VOL,1,0),COLOR238E23;
STICKLINE(波底,0,VOL,2,0),COLORMAGENTA;
DRAWTEXT(波底,VOL*0.8,'底'),COLORWHITE;
DRAWICON(波底,VOL*1.1,5);
STICKLINE(牛,0,VOL,2,0),COLORRED;
DRAWTEXT(牛,VOL*1.15,'牛'),COLORWHITE;
STICKLINE(突破,0,VOL,1,0),COLORBLUE;
DRAWTEXT(突破,VOL*0.5,'突破'),COLORWHITE;
DRAWICON(突破,VOL*1.2,1);
STICKLINE(破位,0,VOL,0.5,0),COLORBROWN;
DRAWTEXT(破位,VOL*0.5,'破位'),COLORWHITE;
DRAWICON(破位,VOL*1.05,2);
STICKLINE(T11,O,VOL,2,0),COLORFF00FF;
STICKLINE(涨停,VOL*0.5,VOL,2.5,0),COLORLIRED;
STICKLINE(涨停,VOL*0.5,VOL,0,0),COLORRED;
STICKLINE(跌停,VOL*0.5,VOL,2.5,0),COLOR2F4F2F;
STICKLINE(跌停,VOL*0.5,VOL,0,0),COLORBLACK;
STICKLINE(顶背离,VOL*0.8,VOL,2.5,0),COLORGREEN;
STICKLINE(底背离,0,VOL*0.2,3,0),COLOR7F017F;
DRAWTEXT(T1,VOL*1.1,'∠'),COLOR007575;
DRAWTEXT(获利盘>=75 AND动力线>=3.2,VOL*1.1,'●'),COLORRED;
DRAWTEXT(获利盘<75 AND动力线>=3.2,VOL*1.1,'●'),COLORGREEN;

通达信副图∮均线法则无未来



源码---

Z,:=(C-REF(C,1))/REF(C,1)*100;
AA:EMA(EMA((C-REF(C,1)),6),6)*100/EMA(EMA(ABS((C-REF(C,1))),6),6)COLORGREEN,LINETHICK2;
DD:=LLV(AA,BARSLAST(AA<REF(AA,1))+1);
ZT:=BARSLAST(CROSS(AA,DD*0.66) AND AA<0 ANDDD<-20);
收益:SUM(Z,,IF(ZT=0,1,ZT)),COLORRED,LINETHICK0;
MR:=CROSS(AA,DD*0.66) AND AA<0 ANDDD<-20;
DRAWICON(MR,AA*0.8,25);
MC:=CROSS(DD,0) AND DD=AA;
DRAWICON(MC,AA*0.9,24);
DRAWTEXT(MC,AA*1.02,'快跑')COLORYELLOW;
DRAWTEXT(MR,AA,'买入')COLORRED; 

通达信分时⊙主力控盘

PS:

本人感觉该指标也可以当成副图使用。

源码---

{分时控盘}
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;
STICKLINE(控盘>REF(控盘,1) AND控盘<0,控盘,0,1,1),COLORFF00FF;
无庄控盘:=控盘<0;
STICKLINE(控盘>REF(控盘,1) AND控盘>0,控盘,0,1,1),COLOR0000FF;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(控盘<REF(控盘,1) AND控盘>0,控盘,0,1,1),COLORFFFF00;
主力出货:=控盘<REF(控盘,1) AND 控盘>0;
STICKLINE(VAR2>50 AND COST(85)<CLOSEAND 控盘>0,控盘,0,1,1),COLOR00FFFF;
高度控盘: VAR2>50 AND COST(85)<CLOSE AND控盘>0,COLOR00FFFF,LINETHICK2;
A10:=CROSS(控盘,0);
控盘B:=FILTER(IF(A10,1,0),5);
{分时价格原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.005;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND(C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND财<-0.3;
BTJ32:=CROSS(财,神) AND财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
DRAWICON(BTJ82,神,23);{追买};
DRAWICON(BTJ81 AND TIME>10,神,27);{};
DRAWICON(BTJ811 AND TIME>10,神,26);{有庄};
DRAWTEXT(BTJ81,神,''),COLORRED;
DRAWTEXT(BTJ811,神*1.2,'有庄'),COLORWHITE;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
DRAWICON(STJ81,神,19);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
DRAWICON(STJ82,神,15);
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,神,'必卖'),COLOR00FF00;

通达信主图∮真波段决品


个人使用心得---

好的方面:

该指标可以当成机械指标去用,给买点就买,给卖点就止损。

不足:

任何指标在震荡市中都基本无所作为,所以需要综合分析,成交量,MACD等分析参数也要用上

重点:各位一定要切记的,切记的。

周期共振,特别是周线和日线波段周期!具体怎么共振我不想说太多,但这2个周期是必须的。

最后建议大家和这个副图一起使用效果会很棒。

下面副图的源码---

使用完之后,别忘回来谈感受。最后在强调一下周期使用问题,还有周期跨度问题。

源码---

A1A:=EMA(CLOSE, 9);
A1B:=((A1A - EMA(CLOSE, 5)) < 0);
A1C:=((A1A - EMA(CLOSE, 5)) > 0);
A1D:=BARSLAST(A1B);
A1E:=BARSLAST(A1C);
A1F:=IF((A1E > 0),(CLOSE - REF(CLOSE, 1)) /REF(CLOSE, 1) * 100,0);
A20:=SUM(A1F,0);
A21:=IF((A1D > 0),(0 -2),0);
A22:=IF((A1E > 0),SUM((CLOSE - REF(CLOSE, 1)) /REF(CLOSE, 1) * 100,A1E),0);
A23:=A22 / A1E;
A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3);
多方:((A25 - REF(A25, 1)) + A25)COLOR0000FF,LINETHICK2;

空方:MA(多方, 15)COLORFF49FF;
IF(多方>REF(多方,1),多方,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
IF(空方>REF(空方,1),空方,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
STICKLINE((多方 > 空方),空方,多方, 0, 0)COLOR00FFFF;
STICKLINE((空方 > 多方),多方,空方, 0, 0)COLORFF0000;
DRAWTEXT(CROSS(空方,多方),多方 *1.03,'↓卖')COLOR00FF00;
DRAWTEXT(CROSS(多方,空方),空方 *0.98,'↑买')COLOR0000FF;
DRAWICON(((REF(A21, 1) = (0 - 2)) AND (A21= 0)),LOW, 5);
DRAWICON(((REF(A1E, 1) > 0) AND (A1E = 0)),HIGH,6);

  

爱华网本文地址 » http://www.aihuau.com/a/25101012/116828.html

更多阅读

转载 北有逯军,南有文永东 百万文字论坛综合转载

原文地址:北有逯军,南有文永东作者:给我一年还是引用一下今天的搜狐新闻——“你是为人民服务还是为党服务的?”3月24日,因为一起高空坠物砸坏私家车的纠纷,贵州省毕节市政府驻贵阳办事处办公室主任文永东在接受贵州电视台记者采访时,爆出

转载 A5的组合档案 百万文字论坛综合转载

原文地址:A5的组合档案作者:輕舞飛揚张继生日:4.29 星座:金牛座血型:AB型身高:1.85M 体重:75KG特长:唱歌最喜欢的生活:和家人、朋友在一起最喜欢的色彩:黑、白、粉红、天蓝、浅绿最喜欢的季节:秋天最喜欢的演员:陈道明最喜欢的运动:排球(打了六年

转载 我所认识的周以农 百万文字论坛综合转载

我是你们这部电视剧的热心观众和铁杆粉丝。我搜索而来又读到您的文章,对您在电视剧中扮演的“周以农”这个人物给予点赞,您把握得很到位,很有分寸。也很爱你的这篇实事求是的分析文字,并且引用转载。因此而热心建议改动一下其中的几个错

转载 手机卡的秘密废卡开通黄钻 百万文字论坛综合转载

原文地址:手机卡的秘密废卡开通黄钻作者:衣饰晨晨呵呵,大家有废手机卡还是让它废物利用下吧:准备条件:你必须得有张手机卡,最好是移动的。其次:手机卡内必须得有余额!(几毛钱即可,只要是还未停机)最后:卡用后手机号就欠费停机了,所以您一定要用

声明:《转载 下面这些指标,是开博以来大家相对比较喜欢的! 百万文字论坛综合转载》为网友倩影映碧纱分享!如侵犯到您的合法权益请联系我们删除