通达信上升通道(鹏腾2009版本)源码 选股贴图

[复制链接]
查看117 | 回复0 | 2021-8-20 06:51:19 | 显示全部楼层 |阅读模式

以下是通达信上升通道(鹏腾2009版本)源码 选股贴图(无源码的请下载附件导入)

上升通道是股市中股票上升趋势的形象化描述,由两条平行线组成。上升通道形成后行情具有一定的持续性,但通道一旦破坏就需要时间重新组合,此时投资者可以选择暂时退出,直到形成新的趋势通道再进入。当股指在上升通道中运行时,如果股指上涨时适度放量,而指数回调时缩量,则说明上升通道的运行状况良好;如果成交量放大速度加快,则无论是上涨还是下跌,都将意味着上升通道的运行轨迹将出现变化。在上升通道中,如果 股价突破上升 轨道线,投资者可以追加购买;突破下侧轨道线即支持线可以追加出售。
 

 {主图}
T1:=FINDLOWBARS(L,0,60,1);
 T2:=FINDLOWBARS(L,T1,120,1);
 DRAWLINE(CURRBARSCOUNT=CONST(T2)+1,L,CURRBARSCOUNT=CONST(T1)+1,L,1),COLORGREEN,DOTLINE;
 T3:=BARSLAST(CURRBARSCOUNT=CONST(T1)+1);
 T4:=BARSLAST(CURRBARSCOUNT=CONST(T2)+1);
 D1:=REF(L,T3);
 D2:=REF(L,T4);
 T5:=FINDHIGHBARS(H,20,60,1);
 T6:=FINDHIGHBARS(H,T1,120,1);
 SG:DRAWLINE(CURRBARSCOUNT=CONST(T6)+1,H,CURRBARSCOUNT=CONST(T5)+1,H,1),COLORRED,DOTLINE;
 T7:=BARSLAST(CURRBARSCOUNT=CONST(T5)+1);
 T8:=BARSLAST(CURRBARSCOUNT=CONST(T6)+1);
 G1:REF(H,T7),COLORRED;
 G2:REF(H,T8),COLORRED;
 IF(CURRBARSCOUNT=CONST(T1)+1,L,DRAWNULL),CIRCLEDOT,COLORGREEN,LINETHICK3;
 IF(CURRBARSCOUNT=CONST(T2)+1,L,DRAWNULL),CIRCLEDOT,COLORGREEN,LINETHICK3;
 IF(CURRBARSCOUNT=CONST(T5)+1,H,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK3;
 IF(CURRBARSCOUNT=CONST(T6)+1,H,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK3;
 XG:=((COUNT(C>G1,T7)=1 AND C>G1 OR CROSS(C,G1)) OR (COUNT(C>SG,T7)=1 AND C>SG OR CROSS(C,SG))) AND D1>D2 AND G1>G2 AND REF(C,T7)/REF(C,T4+1)<1.4;
 DRAWICON(XG AND BARSCOUNT(C)>200,L,1);

 {选股}
T1:=FINDLOWBARS(L,0,60,1);
 T2:=FINDLOWBARS(L,T1,250,1);
 T3:=BARSLAST(CURRBARSCOUNT=CONST(T1)+1);
 T4:=BARSLAST(CURRBARSCOUNT=CONST(T2)+1);
 D1:=REF(L,T3);
 D2:=REF(L,T4);
 T5:=FINDHIGHBARS(H,20,60,1);
 T6:=FINDHIGHBARS(H,T1,120,1);
 SG:=DRAWLINE(CURRBARSCOUNT=CONST(T6)+1,H,CURRBARSCOUNT=CONST(T5)+1,H,1);
 T7:=BARSLAST(CURRBARSCOUNT=CONST(T5)+1);
 T8:=BARSLAST(CURRBARSCOUNT=CONST(T6)+1);
 G1:=REF(H,T7);
 G2:=REF(H,T8);
 XG:=((COUNT(C>G1,T7)=1 AND C>G1 OR CROSS(C,G1)) OR (COUNT(C>SG,T7)=1 AND C>SG OR CROSS(C,SG))) AND D1>D2 AND G1>G2 AND REF(C,T7)/REF(C,T4+1)<1.4;
 COUNT(XG AND BARSCOUNT(C)>200,5);

758488057.jpg

758488057.jpg

758533537.jpg

758533537.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则