各位老师好,请哪位能将三线指标改成选股公式,要求:三线均在底部 参数:N (1 100 20) 源码:C0:=(H+L+C)/3; A1:=HHV(C0,N);A2:=LLV(C0,N);A3:=A1-A2; A4:=EMA((C0-A2)/A3,2)*100; B1:=HHV(C0,4*N);B2:=LLV(C0,4*N);B3:=B1-B2; B4:=EMA((C0-B2)/B3,2)*100; C1:=HHV(C0,16*N);C2:=LLV(C0,16*N);C3:=C1-C2; C4:=EMA((C0-C2)/C3,2)*100; 短期相对价位:A4,COLORRED,LINETHICK2; 中期相对价位:B4; 长期相对价位:C4, COLORAABBDD,LINETHICK2; 天线:95,LINETHICK2,COLOREEEE33,POINTDOT; 地线:5,LINETHICK2,COLOR33EE33,POINTDOT; 中线:50,LINETHICK2,COLOREEEEEE,POINTDOT; 长期头部:IF((C4>(90)),20,0); 中期头部:IF((B4>(90)),15,0); 短期头部:IF((A4>(90)),6,0);
爱约股解答:
参数:N 1 100 20
N1 1 100 5
C0:=(H+L+C)/3;
A1:=HHV(C0,N);
A2:=LLV(C0,N);
A3:=A1-A2;
A4:=EMA((C0-A2)/A3,2)*100;
B1:=HHV(C0,4*N);
B2:=LLV(C0,4*N);
B3:=B1-B2;
B4:=EMA((C0-B2)/B3,2)*100;
C1:=HHV(C0,16*N);
C2:=LLV(C0,16*N);
C3:=C1-C2;
C4:=EMA((C0-C2)/C3,2)*100;
A4<N1 AND B4<N1 AND C4<N1;
N1的参数我现在先设定为5(就是三线同时在“地线”以下范围),你说的底部定义太大,自己按需要调整就可以了。