黑马奔忙段之黑马选股公式源码编写思路及告成率回测数据

发布日期:2022-09-06 21:08    点击次数:166
​条件选股:黑马奔忙段之黑马[日线]告成率测试测试股票数:4597共收回旗子灯号:152056告成旗子灯号:75567失利旗子灯号:75720未实现旗子灯号:769旗子灯号收回率:94.67%匀称告成率:49.95%告成率达到50%的股票数有:51.68%利润1总匀称:14.10%最大匀称利润1:  113.93%  最小匀称利润1:  0.00%利润2总匀称:0.43%最大匀称利润2:  103.67%  最小匀称利润2:  -49.35%编写思路:A1赋值:1A2赋值:(5)A3赋值:(((2 * 开盘价) + 最低价) + 最自制) / 4A4赋值:34日内最自制的最低值A5赋值:34日内最低价的最高值A6赋值:(((A3-A4)/(A5-A4))*100)的13日指数移动匀称A7赋值:(((0.667*(1日前的A6))+(0.333*A6))的2日指数移动匀称) * A1A8赋值:(9日内最低价的最高值) - (9日内最自制的最低值)A9赋值:(9日内最低价的最高值) - 开盘价A10赋值:开盘价 - (9日内最自制的最低值)A11赋值:((A9 / A8) * 100) - 70A12赋值:((开盘价 - (60日内最自制的最低值)) / ((60日内最低价的最高值) - (60日内最自制的最低值))) * 100A13赋值:((A10/A8)*100)的3日[1日权重]移动匀称A14赋值:(A13的3日[1日权重]移动匀称) - (A11的9日[1日权重]移动匀称)A15赋值:假定(A14>100),前去(A14-100),否则前去0A16赋值:((((A3-A4)/(A5-A4))*100)的8日指数移动匀称) * A1A17赋值:(A16的5日指数移动匀称) * A1A18赋值:(开盘价的2日指数移动匀称) * A1A19赋值:((((开盘价的21日线性回归斜率)*20)+开盘价)的42日指数移动匀称) * A1A20赋值:(13日内(最低价的13日俭朴移动匀称)的最高值) * A1A21赋值:(1日内(最低价的13日俭朴移动匀称)的最低值) * A1A22赋值:(开盘价的4日指数移动匀称) * A1A23赋值:((((A18 >= A19) AND (A21 = A20)) AND (A18 > A22)) AND (开盘价 > A21)) AND ((1日前的A21) < (1日前的A20))A24赋值:上次A23距来日诰日数 + 1A25赋值:(A24日内最自制的最低值) * 1.3A26赋值:(20日内最自制的最低值) * 1.418A27赋值:(((((A18 >= A19) AND (A21 = A20)) AND ((开盘价 / (1日前的开盘价)) >= 1.07)) AND (A24 <= 30)) AND (开盘价 <= A25)) AND (开盘价 <= A26)A28赋值:A27 AND (A27的A24日过滤)A30赋值:((((((A18 >= A19) AND (A21 = A20)) AND ((开盘价 / (1日前的开盘价)) >= 1.035)) AND (A24 <= 30)) AND (开盘价 <= A25)) AND (开盘价 <= A26))A31赋值:A30 AND (A30的20日过滤)输出黑马奔忙段之黑马:A28 OR A31公式源码:A1:=1;A2:=(5);A3:=(((2 * CLOSE) + HIGH) + LOW) / 4;A4:=LLV(LOW,34);A5:=HHV(HIGH,34);A6:=EMA((((A3 - A4) / (A5 - A4)) * 100),13);A7:=(EMA(((0.667 * (REF(A6,1))) + (0.333 * A6)),2)) * A1;A8:=(HHV(HIGH,9)) - (LLV(LOW,9));A9:=(HHV(HIGH,9)) - CLOSE;A10:=CLOSE - (LLV(LOW,9));A11:=((A9 / A8) * 100) - 70;A12:=((CLOSE - (LLV(LOW,60))) / ((HHV(HIGH,60)) - (LLV(LOW,60)))) * 100;A13:=SMA(((A10 / A8) * 100),3,1);A14:=(SMA(A13,3,1)) - (SMA(A11,9,1));A15:=IF((A14 > 100),(A14 - 100),0);A16:=(EMA((((A3 - A4) / (A5 - A4)) * 100),地区报价8)) * A1;A17:=(EMA(A16,5)) * A1;A18:=(EMA(CLOSE,2)) * A1;A19:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * A1;A20:=(HHV((MA(HIGH,13)),13)) * A1;A21:=(LLV((MA(HIGH,13)),1)) * A1;A22:=(EMA(CLOSE,4)) * A1;A23:=((((A18 >= A19) AND (A21 = A20)) AND (A18 > A22)) AND (CLOSE > A21)) AND ((REF(A21,1)) < (REF(A20,1)));A24:=BARSLAST(A23) + 1;A25:=(LLV(LOW,A24)) * 1.3;A26:=(LLV(LOW,20)) * 1.418;A27:=(((((A18 >= A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) >= 1.07)) AND (A24 <= 30)) AND (CLOSE <= A25)) AND (CLOSE <= A26);A28:=A27 AND (FILTER(A27,A24));A30:=((((((A18 >= A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) >= 1.035)) AND (A24 <= 30)) AND (CLOSE <= A25)) AND (CLOSE <= A26)) ;A31:=A30 AND (FILTER(A30,20));黑马奔忙段之黑马:A28 OR A31; 本站是供应集团知识打点的网络存储空间,全体内容均由用户宣布,不代表本站概念。请留心甄别内容中的联络要领、诱惑置办等信息,谨防诳骗。如缔造有害或侵权内容,请点击一键告发。

相关资讯