通达信金叉上移主图及选股指标公式

M30:=MA(C,30);
M60:=MA(C,60);
DRAWBAND(M30,RGB(233,0,18),M60,RGB(21,174,103));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
T1:=BArslAST(crOSS(M30,M60));
T2:=REF(T1,T1+1)+T1+1;
D1:DRAWLINE(CURRBARSCOUNT=CONST(T1)+1,M30,REF(CURRBARSCOUNT=CONST(T1)+1,1),REF(M30,1),1),DOTLINE,COLORGREEN;
D2:DRAWLINE(CURRBARSCOUNT=CONST(T2)+1,M30,REF(CURRBARSCOUNT=CONST(T2)+1,1),REF(M30,1),1),DOTLINE,COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(T1)+1,M30*1.02,VARCAT(VARCAT('金叉价:',VAR2STR(C,2)),'元'))COLORYELLOW,DRAWAbovE;
DRAWTEXT(CURRBARSCOUNT=CONST(T2)+1,M30*1.02,VARCAT(VARCAT('金叉价:',VAR2STR(C,2)),'元'))COLORYELLOW,DRAWABOVE;
A1:=REF(LLV(L,T1+1),SUMBARS(CROSS(M30,M60),0));
A2:=REF(LLV(L,T1+1),SUMBARS(CROSS(M30,M60),1));
V1:=REF(HHV(V,T1+1),SUMBARS(CROSS(M30,M60),0));
V2:=REF(HHV(V,T1+1),SUMBARS(CROSS(M30,M60),1));
A3:=A1>A2 AND V1>V2;
A4:=CROSS(A3,0.5) AND D1>D2 AND C/D1<1.3;
A5:=BARSLAST(A4);
XG:=COUNT(C>REF(C,A5),A5)=1 AND C>REF(C,A5);
DRAWICON(XG,LOW,1);
DRAWLINE(A4,C,REF(A4,1),REF(C,1),1),COLORYELLOW,LINETHICK2;
DRAWTEXT(A4,C,'双金叉上移'),DRAWABOVE,COLORYELLOW;

{
选股公式:

M30:=MA(C,30);
M60:=MA(C,60);
T1:=BARSLAST(CROSS(M30,M60));
T2:=REF(T1,T1+1)+T1+1;
D1:=DRAWLINE(CURRBARSCOUNT=CONST(T1)+1,M30,REF(CURRBARSCOUNT=CONST(T1)+1,1),REF(M30,1),1);
D2:=DRAWLINE(CURRBARSCOUNT=CONST(T2)+1,M30,REF(CURRBARSCOUNT=CONST(T2)+1,1),REF(M30,1),1);
A1:=REF(HHV(H,T1+1),SUMBARS(CROSS(M30,M60),0));
A2:=REF(HHV(H,T1+1),SUMBARS(CROSS(M30,M60),1));
V1:=REF(HHV(V,T1+1),SUMBARS(CROSS(M30,M60),0));
V2:=REF(HHV(V,T1+1),SUMBARS(CROSS(M30,M60),1));
A3:=A1>A2 AND V1>V2;
A4:=CROSS(A3,0.5) AND D1>D2 AND C/D1<1.3;
A5:=BARSLAST(A4);
XG:COUNT(C>REF(C,A5),A5)=1 AND C>REF(C,A5);
}




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图