通达信通道线+波段预测源码 主图+副图

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

以下是通达信通道线+波段预测源码 主图+副图(无源码的请下载附件导入)

X_1:=IF(CLOSE>OPEN AND HIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(C,1)),0);
 X_2:=IF(CLOSE>OPEN AND HIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(C,1)),0);
 X_3:=IF(CLOSE>OPEN AND HIGH=REF(CLOSE,1),0,0);
 X_4:=IF(CLOSE<OPEN AND HIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(CLOSE,1)),0);
 X_5:=IF(CLOSE<OPEN AND HIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(CLOSE,1)),0);
 X_6:=IF(CLOSE<OPEN AND HIGH=REF(CLOSE,1),0,0);
 X_7:=FORCAST(X_1+X_2+X_3+X_4+X_5+X_6,3);
 X_8:=FORCAST(X_7,8);
 X_9:=FORCAST(X_7,5);
 X_10:=FORCAST(X_7,3);
 X_11:=IF(CLOSE>OPEN AND LOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0);
 X_12:=IF(CLOSE>OPEN AND LOW<REF(CLOSE,1),-ATAN(REF(CLOSE,1)-LOW)/REF(CLOSE,1),0);
 X_13:=IF(CLOSE>OPEN AND LOW=REF(CLOSE,1),0,0);
 X_14:=IF(CLOSE<OPEN AND LOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0);
 X_15:=IF(CLOSE<OPEN AND LOW<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-LOW)/REF(CLOSE,1)),0);
 X_16:=IF(CLOSE<OPEN AND LOW=REF(CLOSE,1),0,0);
 X_17:=FORCAST(X_11+X_12+X_13+X_14+X_15+X_16,3);
 X_18:=FORCAST(X_17,8);
 X_19:=FORCAST(X_17,5);
 X_20:=FORCAST(X_17,3);
 X_21:=ATAN(X_8/0.08);
 X_22:=ATAN(X_9/0.05);
 X_23:=ATAN(X_10/0.03);
 X_24:=ATAN((-X_18)/0.08);
 X_25:=ATAN((-X_19)/0.05);
 X_26:=ATAN((-X_20)/0.03);
 VAR2J:=(2*CLOSE+HIGH+LOW)/4;
 VAR3J:=IF(YEAR>=2099 AND MONTH>2,0,1);
 VAR4J:=LLV(LOW,5);
 VAR5J:=HHV(HIGH,5);
周期:=FORCAST((VAR2J-VAR4J)/(VAR5J-VAR4J)*100,3)*VAR3J/80,COLORCYAN;
买线:FORCAST(MA(((X_23+X_22+X_21+周期)/4/6.18*360),3),3),COLORRED,LINETHICK2;
 LK:=买线<=REF(买线,1);
 IF(LK,买线,DRAWNULL),COLORBLUE,LINETHICK2;
买线2:MA(买线,2),COLORYELLOW;
卖线:FORCAST((X_26+X_25+X_24)/3/6.18*360,3),COLORWHITE,LINETHICK2;
 X7:=FORCAST(X_1+X_2+X_3+X_4+X_5+X_6,5);
 X8:=FORCAST(X7,21);
 X9:=FORCAST(X7,13);
 X10:=FORCAST(X7,8);
 X21:=ATAN(X8/0.08);
 X22:=ATAN(X9/0.05);
 X23:=ATAN(X10/0.03);
 XHH:=(X23+X22+X21)/3/6.18*360;
卖线1:=FORCAST((X23+X22+X21)/3/6.18*360,34),COLORGREEN,LINETHICK2;
多空线:20,COLORLIGRAY,CIRCLEDOT;
转强线:0,COLORLIGRAY,DOTLINE;
强势线:40,DOTLINE,COLORCYAN;
卖线见底线:=60,COLORBROWN,DOTLINE;
 DRAWTEXT_FIX(买线<REF(买线,1),0,0,0,'
【买线】下跌4天--6天股价可能反弹'),COLORMAGENTA;
 DRAWICON(CROSS(买线,买线2),买线-1,1);
 DRAWICON(CROSS(买线2,买线),买线,2);

主图源码
 突破:REF(SMA(C,13,3),1);
 A1X:=(FORCAST(C,8)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,8),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,8),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
 STICKLINE(A1X>=0,多方,突破,1,1),COLORMAGENTA;
 STICKLINE(A1X<0,空方,突破,1,1),COLORGREEN;

729122941.jpg

729122941.jpg

729199473.jpg

729199473.jpg

回复

使用道具 举报

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

本版积分规则