上穿突破杀入线捕捉暴涨大牛
N:=7;
T1:=CONST(LLVBARS(LOW,N));
T1HIGH:=CONST(REF(HIGH,T1));
CC:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
突破杀入线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLORYELLOW;
DRAWTEXT(ISLASTBAR, T3HIGH, '杀入线!'),LINETHICK1,COLORYELLOW;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:7
T1赋值:CONST(LLVBARS(最低价,N))
T1最高价:=CONST(T1日前的最高价)
CC赋值:CONST(CURRBARSCOUNT)
T2赋值:CONST(上次(CURRBARSCOUNT >(CC+T1距今天数) AND (最高价>T1最高价)))
T2最高价:=CONST(T2日前的最高价)
T3赋值:CONST(上次(CURRBARSCOUNT >(CC+T2距今天数) AND (最高价>T2最高价)))
T3最高价:=CONST(T3日前的最高价)
输出突破杀入线:DRAWLINE(CURRBARSCOUNT=T3+1, T3最高价, ISLASTBAR, T3最高价, 1),LINETHICK1,画黄色
当满足条件ISLASTBAR时,在 T3最高价和 '杀入线!'位置书写文字
- QQ:88652583
- 邮箱:88652583@qq.com
- 工作时间:8:30-23:00
- 微信:88652583或扫描如下二维码
sitemap站点地图