12560战法,包括黑马回踩 主升浪启动(通达信公式 源码 测试图)

[复制链接]
查看59 | 回复0 | 2022-6-27 17:09:01 | 显示全部楼层 |阅读模式

 12560战法,包括黑马回踩 主升浪启动,12560战法MACD
源码分享。

2021734355632715.png

2021734355632715.png

{公式名称: 12560战法主图
公式描述: 
参数数量: 9
参数1: M1, 最小: 0, 最大: 1000, 缺省: 5
参数2: M2, 最小: 0, 最大: 1000, 缺省: 10
参数3: M3, 最小: 0, 最大: 1000, 缺省: 20
参数4: M4, 最小: 0, 最大: 1000, 缺省: 30
参数5: M5, 最小: 0, 最大: 1000, 缺省: 60
参数6: M6, 最小: 0, 最大: 1000, 缺省: 120
参数7: M7, 最小: 0, 最大: 1000, 缺省: 250
参数8: M8, 最小: 0, 最大: 1000, 缺省: 453
参数9: M9, 最小: 0, 最大: 1000, 缺省: 610
公式源码:}
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4),COLORRED;
MA5:MA(CLOSE,M5),COLORGREEN,LINETHICK2;
MA6:MA(CLOSE,M6),COLORGRAY,LINETHICK2;
MA7:MA(CLOSE,M7),COLORBLUE,LINETHICK2;
MA8:MA(CLOSE,M8),COLORCYAN;
MA9:MA(CLOSE,M9),COLORCYAN,LINETHICK2;
X_1:=REF(CLOSE,1);
X_2:=IF((CLOSE-X_1)*100/X_1>=10-0.01*100/X_1,1,0);
STICKLINE(X_2,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(X_2,HIGH,LOW,0,0),COLORRED;
X_3:=IF((X_1-CLOSE)*100/X_1>=10-0.01*100/X_1,1,0);
STICKLINE(X_3,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(X_3,HIGH,LOW,0,1),COLORGREEN;
DRAWTEXT_FIX(1,0,0,0,1),COLORRED;
DRAWTEXT_FIX(1,0.03,0,0,DYBLOCK),COLORRED;
DRAWTEXT_FIX(1,0.1,0,0,2),COLORGREEN;
DRAWTEXT_FIX(1,0.13,0,0,HYBLOCK),COLORGREEN;
DRAWTEXT_FIX(1,0.19,0,0,3),COLORMAGENTA;
DRAWTEXT_FIX(1,0.22,0,0,GNBLOCK),COLORMAGENTA;
X_4:=HIGH/REF(CLOSE,1);
STICKLINE(X_4>=1.095 AND CLOSE<HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;
X_5:=HIGH;
X_6:=REF(X_5,10)=HHV(X_5,2*10+1);
X_7:=FILTER(X_6,10);
X_8:=BACKSET(X_7,10+1);
X_9:=FILTER(X_8,10);
前期高位:REF(HIGH,BARSLAST(X_9)),POINTDOT,COLORCYAN;
STICKLINE(HIGH,前期高位,前期高位,8,0),COLORCYAN,LINETHICK2;
X_10:=YEAR;
X_11:=MONTH;
X_12:=WEEKDAY;
X_13:=DATETODAY(DATE);
X_14:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT);
X_15:=X_13-DATETODAY(X_14)+1;
X_16:=X_15-REF(X_15,1)!=X_12-REF(X_12,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0;
X_17:=BARSLAST(X_16)+1;
X_18:=BARSLAST(X_10*100+X_11!=REF(X_10*100+X_11,1))+1;
X_19:=REF(CLOSE,X_17);
X_20:=REF(X_19,X_17);
X_21:=REF(X_20,X_17);
X_22:=REF(X_21,X_17);
X_23:=REF(X_22,X_17);
X_24:=REF(X_23,X_17);
X_25:=REF(X_24,X_17);
X_26:=REF(X_25,X_17);
X_27:=REF(X_26,X_17);
X_28:=(CLOSE+X_19+X_20+X_21+X_22+X_23+X_24+X_25+X_26+X_27)/10;
操作:REFDATE(X_28,DATE),DOTLINE,COLORLICYAN;
DRAWTEXT(ISLASTBAR,操作,4),COLORLICYAN;
IF(MA5>REF(MA5,1) AND MA2>=MA5,MA5,DRAWNULL),COLORRED,LINETHICK2;
 
 


 

{公式名称: 主升浪启动
公式描述: 主升浪启动副图}
X_1:=DYNAINFO(4)=0;
X_2:=REF(CLOSE,17)<REF(HHV(HIGH,250),18);
X_3:=REF(CLOSE,18)<REF(HHV(HIGH,250),19);
X_4:=REF(CLOSE,19)<REF(HHV(HIGH,250),20);
X_5:=REF(CLOSE,20)<REF(HHV(HIGH,250),21);
CLOSE>=REF(HHV(HIGH,250),1) AND REF(CLOSE,1)<REF(HHV(HIGH,250),2) AND REF(CLOSE,2)<REF(HHV(HIGH,250),3) AND REF(CLOSE,3)<REF(HHV(HIGH,250),4) AND REF(CLOSE,4)<REF(HHV(HIGH,250),5) AND REF(CLOSE,5)<REF(HHV(HIGH,250),6) AND REF(CLOSE,6)<REF(HHV(HIGH,250),7) AND REF(CLOSE,7)<REF(HHV(HIGH,250),8) AND REF(CLOSE,8)<REF(HHV(HIGH,250),9) AND REF(CLOSE,9)<REF(HHV(HIGH,250),10) AND REF(CLOSE,10)<REF(HHV(HIGH,250),11) AND REF(CLOSE,12)<REF(HHV(HIGH,250),13) AND REF(CLOSE,13)<REF(HHV(HIGH,250),14) AND REF(CLOSE,14)<REF(HHV(HIGH,250),15) AND REF(CLOSE,16)<REF(HHV(HIGH,250),17) AND X_2 AND X_3 AND X_4 AND X_5 AND NOT(X_1);
 
 

2021734321226175.png

2021734321226175.png
 

2021734322720850.png

2021734322720850.png
 

2021734323513015.png

2021734323513015.png

20217511282421120.rar

18.08 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

20217511282421120.rar

回复

使用道具 举报

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

本版积分规则