通达信精准抄底
VAR1:=CLOSE-REF(CLOSE,1);{}
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
VAR3:=CROSS(EMA(CLOSE,19),EMA(CLOSE,7));
VAR4:=CROSS(EMA(CLOSE,7),EMA(CLOSE,19));
VAR5:=LOW=LLV(LOW,BARSLAST(VAR3)+1);
VAR6:=LLV(LOW,BARSLAST(VAR3)+1);
VAR7:=HIGH=HHV(HIGH,BARSLAST(VAR4)+1);
VAR8:=HHV(HIGH,BARSLAST(VAR4)+1);
VAR9:=DRAWLINE(VAR5,VAR6,VAR7,VAR8,0);
VAR10:=HIGH=HHV(HIGH,BARSLAST(VAR4)+1);
VAR11:=HHV(HIGH,BARSLAST(VAR4)+1);
VAR12:=LOW=LLV(LOW,BARSLAST(VAR3)+1);
VAR13:=LLV(LOW,BARSLAST(VAR3)+1);
VAR14:=DRAWLINE(VAR10,VAR11,VAR12,VAR13,0);
VAR15:=LLV(VAR2,2)=LLV(VAR2,7);
VAR16:=COUNT(VAR2<0,2);
VAR17:=CROSS(VAR2,MA(VAR2,2));
VAR18:=REF(VAR14,1)<REF(VAR14,2);
VAR19:=VAR9>REF(VAR14,1);
VAR20:=VAR15 AND VAR16 AND VAR17 AND VAR18 AND VAR19;
VAR21:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR22:=EMA(VAR21,9);
VAR23:=(VAR21-VAR22)*2;
VAR24:=HHV(HIGH,60);
VAR25:=LLV(LOW,30);
VAR26:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR27:=(VAR24+VAR25+VAR26)/3;
VAR28:=EMA(VAR27,5);
VAR29:=EMA(VAR28,5)*2;
VAR30:=EMA(VAR29,5);
VAR31:=VAR29*3-VAR30*2;
VAR32:=CROSS(VAR29,VAR30);
VAR33:=CROSS(VAR30,VAR29);
VAR34:=DRAWICON(ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3),LOW*0.98,1)*VAR30*2/3;
VAR35:=IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,0);
VAR36:=VAR34 AND VAR35;
粉竖线开始关注:VAR20 OR VAR14<REF(VAR14,1) AND VAR36,COLORMAGENTA,LINETHICK2;
粉三角确认买入:VAR20 OR VAR14<REF(VAR14,1) AND VAR36,COLORMAGENTA,LINETHICK2;
VAR37:=EMA(CLOSE,5)-EMA(CLOSE,10);
VAR38:=EMA(VAR37,4);{}
VAR39:=0-10*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+10;
VAR40:=VAR37-REF(VAR37,1);
VAR41:=VAR38-REF(VAR38,1);
VAR42:=EMA(EMA(VAR40,2),2);
VAR43:=EMA(EMA(VAR41,2),2);
VAR44:=CROSS(VAR37,VAR38) AND VAR37<0;
VAR45:=VAR38<(-0.02) AND VAR39<4.5;
VAR46:=VAR42>0 AND VAR43>0;
后面还有新低:VAR44 AND VAR45 AND VAR46,COLORBLUE,LINETHICK2;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:收盘价-1日前的收盘价
{}
VAR2赋值:100*VAR1的6日指数移动平均,6)/EMA(EMA(VAR1的绝对值,6),6)
VAR3赋值:CROSS(收盘价的19日指数移动平均,收盘价的7日指数移动平均)
VAR4赋值:CROSS(收盘价的7日指数移动平均,收盘价的19日指数移动平均)
VAR5赋值:最低价=LLV(最低价,上次VAR3距今天数+1)
VAR6赋值:LLV(最低价,上次VAR3距今天数+1)
VAR7赋值:最高价=HHV(最高价,上次VAR4距今天数+1)
VAR8赋值:HHV(最高价,上次VAR4距今天数+1)
VAR9赋值:DRAWLINE(VAR5,VAR6,VAR7,VAR8,0)
VAR10:=最高价=HHV(最高价,上次VAR4距今天数+1)
VAR11:=HHV(最高价,上次VAR4距今天数+1)
VAR12:=最低价=LLV(最低价,上次VAR3距今天数+1)
VAR13:=LLV(最低价,上次VAR3距今天数+1)
VAR14:=DRAWLINE(VAR10,VAR11,VAR12,VAR13,0)
VAR15:=2日内VAR2最低值=7日内VAR2最低值
VAR16:=统计2日满足VAR2<0的天数
VAR17:=CROSS(VAR2,VAR2的2日简单移动平均)
VAR18:=1日前的VAR14<2日前的VAR14
VAR19:=VAR9>1日前的VAR14
VAR20赋值:VAR15 AND VAR16 AND VAR17 AND VAR18 AND VAR19
VAR21赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR22赋值:VAR21的9日指数移动平均
VAR23赋值:(VAR21-VAR22)*2
VAR24赋值:60日内最高价最高值
VAR25赋值:30日内最低价最低值
VAR26赋值:(收盘价-收盘价的32日简单移动平均)/收盘价的32日简单移动平均*100
VAR27赋值:(VAR24+VAR25+VAR26)/3
VAR28赋值:VAR27的5日指数移动平均
VAR29赋值:VAR28的5日指数移动平均*2
VAR30:=VAR29的5日指数移动平均
VAR31:=VAR29*3-VAR30*2
VAR32:=VAR29上穿VAR30
VAR33:=VAR30上穿VAR29
VAR34:=DRAWICON(ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3),最低价*0.98,1)*VAR30*2/3
VAR35:=IF(TROUGHBARS(3,15,1)=1 AND 最高价>最低价+0.01,20,0)
VAR36:=VAR34 AND VAR35
输出粉竖线开始关注:VAR20 OR VAR14<1日前的VAR14 AND VAR36,画洋红色, 线宽为2
输出粉三角确认买入:VAR20 OR VAR14<1日前的VAR14 AND VAR36,画洋红色, 线宽为2
VAR37:=收盘价的5日指数移动平均-收盘价的10日指数移动平均
VAR38:=VAR37的4日指数移动平均
{}
VAR39:=0-10*(10日内收盘价最高值-收盘价)/(10日内收盘价最高值-10日内最低价最低值)+10
VAR40:=VAR37-1日前的VAR37
VAR41:=VAR38-1日前的VAR38
VAR42:=VAR40的2日指数移动平均,2)
VAR43:=VAR41的2日指数移动平均,2)
VAR44:=VAR37上穿VAR38 AND VAR37<0
VAR45:=VAR38<(-0.02) AND VAR39<4.5
VAR46:=VAR42>0 AND VAR43>0
输出后面还有新低:VAR44 AND VAR45 AND VAR46, 画蓝色, 线宽为2