1:
自动画线太多了,给你一个我看好的,源码下面网址里有图片演示.
该指标能够做到对前期高点和最近高点的连线、前期低点和最近低点的连线、阻力位和支撑位的平行直线的连线,可以说简单易懂,一目了然。这类指标要用到未来函数,通常不做为买卖信号的参考。但该指标在一定周期内根据K线的走势所画的线已经成立,因此股价突破前高或颈线的点位还是比较可靠的,大家不妨在实战中来验证。所以,除了主图以外,还编制了选股指标。
指标中的实线为高、低点连线,虚线为阻力位和支撑位。
该指标可以复制粘贴到任何主图里。
MA7:MA(C,7),COLORWHITE;
MA14:MA(C,14),COLORYELLOW;
MA25:MA(C,25),COLORFF00FF;
MA120:MA(C,120),COLORFFCC66;
A:=REF(H,10)=HHV(H,2*10+1);
B:=BACKSET(A,10+1);
C:=FILTER(B,10) AND H=HHV(H,10+1);
D:=BARSLAST(C);
E:=IF(C,CURRBARSCOUNT,0);
F:=IF(D,REF(E,D),E);
G:=CONST(F);
H:=REF(F,D+1);
W:=CONST(H);
DRAWLINE(CURRBARSCOUNT=W,H,CURRBARSCOUNT=G,H,1),COLORGREEN;
DRAWLINE(CURRBARSCOUNT=W,H,ISLASTBAR,REF(H,W-1),1),COLOR0099FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=G,H,ISLASTBAR,REF(H,G-1),1),COLOR0099FF,POINTDOT;
M:=INTPART(3*8/5);
R:=REF(H,M)=HHV(H,2*M+1);
T:=FILTER(R,M);
Y:=BACKSET(T,M+1);
U:=FILTER(Y,M);
I:=BACKSET(ISLASTBAR,BARSLAST(U)+1);
P:=I>REF(I,1);
DRAWLINE(U,H,P,H,1),COLORRED;
A1:=REF(L,8)=LLV(L,2*8+1);
B1:=BACKSET(A1,8+1);
C1:=FILTER(B1,8) AND L=LLV(L,8+1);
D1:=BARSLAST(C1);
E1:=IF(C1,CURRBARSCOUNT,0);
F1:=IF(D1,REF(L,D1),L);
G1:=IF(D1,REF(E1,D1),E1);
H1:=CONST(G1);
W1:=REF(F1,D1+1);
M1:=REF(G1,D1+1);
R1:=CONST(M1);
DRAWLINE(CURRBARSCOUNT=R1,L,CURRBARSCOUNT=H1,L,1),COLORBLUE;
DRAWLINE(CURRBARSCOUNT=H1,L,ISLASTBAR,REF(L,H1-1),1),COLORWHITE,POINTDOT;
DRAWLINE(CURRBARSCOUNT=R1,L,ISLASTBAR,REF(L,R1-1),1),COLORWHITE,POINTDOT;
T1:=REF(L,M)=LLV(L,2*M+1);
Y1:=FILTER(T1,M);
U1:=BACKSET(Y1,M+1);
I1:=FILTER(U1,M);
P1:=BACKSET(ISLASTBAR,BARSLAST(I1)+1);
J1:=P1>REF(P1,1);
DRAWLINE(I1,L,J1,L,1),COLORRED;
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);
SR2:=FILTER(SR1,10);
SR3:=BACKSET(SR2,10+1);
HD:=FILTER(SR3,10);
前高:=REF(H,BARSLAST(HD));
DRAWICON(CROSS(C,前高),L-0.20,3);{突破前高的信号}
2:怎样把如下通达信的指标公式改为条件选股公式,并进行预警?
技术指标如果要是某线上穿某线,或者某个输出值大于小于等于多少这种比较简单的逻辑,可以用综合选股,
如果要把技术指标,改成条件选股公式,需要删除指标中所有画线类函数,只输出一个选股条件,如果是多个条件,可以用并且,或者语句组合.
你问题中的公式代码不全无法修改.并且你没有说清选股条件.
3:这是股票压力线画线公式,哪位老师能帮我改成突破选股公式吗谢谢!
A:=REF(H,10)=HHV(H,2*10+1);
B:=BACKSET(A,10+1);
C:=FILTER(B,10) AND H=HHV(H,10+1);
D:=BARSLAST(C);
E:=IF(C,CURRBARSCOUNT,0);
F:=IF(D,REF(E,D),E);
G:=CONST(F);
H:=REF(F,D+1);
W:=CONST(H);
M:=INTPART(3*8/5);
R:=REF(H,M)=HHV(H,2*M+1);
T:=FILTER(R,M);
Y:=BACKSET(T,M+1);
U:=FILTER(Y,M);
I:=BACKSET(ISLASTBAR,BARSLAST(U)+1);
P:=I>REF(I,1);
XG:CROSS(C,DRAWLINE(U,H,P,H,1))OR CROSS(C,DRAWLINE(CURRBARSCOUNT=W,H,CURRBARSCOUNT=G,H,1));
说实话,我不喜欢这个公式,但看在你100分的份上,帮你编一下吧,本来还有很多语句可以省略,因为不喜欢,也就懒得删改了,你就凑合用吧。
4:请高手中的高手,编写一个通达信的自动画线公式,(包括长期趋势,中短期趋势线:=REF(H,P)=HHV(H,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
F1:=E1>REF(E1,1);
短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN,DOTLINE;
A2:=REF(L,P)=LLV(L,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
F2:=E2>REF(E2,1);
短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED,DOTLINE;
AA1:=REF(C,P1)=HHV(C,2*P1+1);
BB1:=FILTER(AA1,P1);
CC1:=BACKSET(BB1,P1+1);
DD1:=FILTER(CC1,P1);
EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);
FF1:=EE1>REF(EE1,1);
长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN LINETHICK2;
AA2:=REF(L,P1)=LLV(L,2*P1+1);
BB2:=FILTER(AA2,P1);
CC2:=BACKSET(BB2,P1+1);
DD2:=FILTER(CC2,P1);
EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
FF2:=EE2>REF(EE2,1);
长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
突破:C>短压 OR C> 长压,NODRAW;
DRAWICON(突破 AND REF(突破,1)=0,L*0.99,1);
手动调节参数以达到最佳效果,一定要提防假突破。
5:主升浪选股公式,有谁能帮我一个刚要进入主升浪的选股公式
通达信主升浪抓牛及选股指标公式
A:=CROSS(SMA(CLOSE,2,1),SMA(LOW,5,1));
A1:=(SMA(HIGH,21,2)*1.05)*1.05;
A2:=IF(A,A1,SMA(LOW,5,1));
A3:=CROSS(SMA(CLOSE,2,1),(SMA(HIGH,21,2)*1.05));
A4:=IF(A3,(SMA(HIGH,21,2)*1.05)*1.10,(SMA(LOW,21,2)*0.95));
A5:=A2>SMA(LOW,5,1) AND CROSS(C,REF(MA(C,13),13/2+1)) AND VOL>0;
A6:=REF(H/O<1.02,1) AND REF(C<O,1);
在主升抓牛:=A4>(SMA(LOW,21,2)*0.95) OR A5 AND A6;
DRAWTEXT(在主升抓牛,22,---在主升抓牛),COLORRED;
STICKLINE(在主升抓牛,40,25,1,0),COLORYELLOW;
STICKLINE(在主升抓牛,25,10,2,0),COLOR00FF00;
STICKLINE(在主升抓牛,10,0,2,0),COLORBLUE;
STICKLINE(在主升抓牛,25,15,0.5,0),COLORRED;
STICKLINE(在主升抓牛,15,6,1,0),COLOR00FF00;
STICKLINE(在主升抓牛,6,0,2,0),COLORBLUE;
{
选股公式:
A:=CROSS(SMA(CLOSE,2,1),SMA(LOW,5,1));
A1:=(SMA(HIGH,21,2)*1.05)*1.05;
A2:=IF(A,A1,SMA(LOW,5,1));
A3:=CROSS(SMA(CLOSE,2,1),(SMA(HIGH,21,2)*1.05));
A4:=IF(A3,(SMA(HIGH,21,2)*1.05)*1.10,(SMA(LOW,21,2)*0.95));
A5:=A2>SMA(LOW,5,1) AND CROSS(C,REF(MA(C,13),13/2+1)) AND VOL>0;
A6:=REF(H/O<1.02,1) AND REF(C<O,1);
在主升抓牛:A4>(SMA(LOW,21,2)*0.95) OR A5 AND A6;
6:高分求通达信主升浪条件预警选股公式
DIFF := EMA(CLOSE,68) - EMA(CLOSE,170);
DEA := EMA(DIFF,90);
MACD := 2*(DIFF-DEA);
A:=MACD;
G:=MA(MACD,2);
J:=MA(MACD,3);
J1:=MA(MACD,5);
STICKLINE(CROSS(MA(A,1),G),0.05,0,1,0),COLORWHITE,LINETHICK2;
VAR13:=IF(YEAR>=2018 AND MONTH>=11 AND DAY>=1,0,1);
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;
VAR15:=EMA(VAR14,5);
SS:=EMA(VAR15,2);
风险系数:=(VAR15-SS)/10*VAR13;
波浪系数:VAR15*VAR13,STICK,COLORFF00FF;
A10:=波浪系数,LINETHICK1 ;
B:MA(A10,3),COLORYELLOW,LINETHICK2;
B2:=MA(B,2)*2-B;
STICKLINE(B>B2,1.5*B,B2,3,0),COLOR0000FF;
STICKLINE(B<B2,1.5*B,B2,3,0),COLORBLUE;
STICKLINE(VAR15>REF(VAR15,1) AND VAR13,VAR15,0,2,0),COLOR0099FF;
STICKLINE(VAR15>REF(VAR15,1) AND VAR13,VAR15,SS,3.5,0),COLORYELLOW;
STICKLINE(VAR15<REF(VAR15,1) AND VAR13,0,VAR15,2,0),COLORGREEN;
STICKLINE(VAR15<REF(VAR15,1) AND VAR13,VAR15,SS,3.5,0),COLORFFCC33;
升跌:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;