预警副图和选股 借用某位大神的指标修改成自已满意的效果
T:=IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*'),0,1);
T2:=NOT(CODELIKE('688'));
T3:=NOT(CODELIKE('3'));
T5:=NOT(CODELIKE('4'));
T6:=NOT(CODELIKE('8'));
T7:=NOT(INBLOCK('近期解禁'));
T8:=NOT(INBLOCK('拟减持'));
T9:=T AND T2 AND T3 AND T5 AND T6 AND T7 AND T8;
T10:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=9.91 AND H=C;
T11:=BARSLAST(T10);
T12:=REF(BARSLAST(T10),1);
T13:=REF(C,T11);
T15:=T13-0.01;
T16:=FILTER(CROSS(C,T15) AND C>O AND C>REF(C,1) AND T12>=3 AND T12<=6 AND H=C,30);
XX2B过:=FILTER(T16,30);
T17:=COUNT(REF(C>=ZTPRICE(REF(C,1),0.1) AND NOT((O>=REF(C,1)*1.099)),1),30)<3;
预警: T16 AND T9 AND C<40 AND T17 AND C>MA(CLOSE,5);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
T赋值:IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*'),0,1)
T2:=NOT(CODELIKE('688'))
T3:=NOT(CODELIKE('3'))
T5:=NOT(CODELIKE('4'))
T6:=NOT(CODELIKE('8'))
T7:=NOT(INBLOCK('近期解禁'))
T8:=NOT(INBLOCK('拟减持'))
T9:=T AND T2 AND T3 AND T5 AND T6 AND T7 AND T8
T10:=(收盘价-1日前的收盘价)/1日前的收盘价*100>=9.91 AND H=C
T11:=上次T10距今天数
T12:=REF(上次T10距今天数,1)
T13:=T11日前的C
T15:=T13-0.01
T16:=FILTER(C上穿T15 AND C>O AND C>1日前的C AND T12>=3 AND T12<=6 AND H=C,30)
XX2B过赋值:T16的30过滤
T17:=COUNT(REF(C>=ZTPRICE(REF(C,1),0.1) AND NOT((O>=REF(C,1)*1.099)),1),30)<3
输出预警: T16 AND T9 AND C<40 AND T17 AND C>收盘价的5日简单移动平均