黄金超短副图通达信公式 副图 源码附图
VAR1:=115123099;
VAR2:=1;
VAR3:=1;
VAR4:=MA((2*CLOSE+HIGH+LOW)/4,5);
VAR5:=VAR4*1.02;
VAR6:=VAR4*0.98;
VAR7:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR8:=DMA(CLOSE,VAR7);
VAR9:=1.07*VAR8;
VAR10:=0.93*VAR8;
VAR11:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1000;
VAR12:=(VAR9-REF(VAR9,5))/REF(VAR9,5)*1000;
VAR13:=MA(CLOSE,9);
VAR14:=VAR5>VAR9;
VAR15:=COUNT(VAR12>=REF(VAR12,1),2)>=2;
VAR16:=MA(VOL,10)>=MA(VOL,55);
VAR17:=COUNT(CLOSE>OPEN,7)>=4;
VAR18:=VAR14 AND VAR15 AND VAR16 AND VAR17;
VAR19:=LLV(LOW,10);
VAR20:=HHV(HIGH,25);
VAR21:=EMA((CLOSE-VAR19)/(VAR20-VAR19)*4,4);
VAR22:=(LOW+HIGH+CLOSE*2)/4;
VAR23:=EMA(VAR22,14);
VAR24:=(VAR6-VAR13)/VAR13*100;
VAR25:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR26:=REF((VAR6-VAR25)/VAR25*100,1);
VAR27:=REF(VAR18,1) OR REF(VAR18,2);
VAR28:=REF(COUNT(VOL>MA(VOL,5) OR VOL>MA(VOL,20) OR VOL>MA(VOL,135) AND CLOSE>OPEN,10),1)>=6;
VAR29:=REF(VAR5>REF(VAR5,1) AND VAR9>REF(VAR9,1) AND VAR5>VAR9 AND COUNT(CLOSE>OPEN,7)>=4,1);
VAR30:=VAR5>VAR9 AND VAR9>=REF(VAR9,1);
VAR31:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1) AND MA(CLOSE,55)>=REF(MA(CLOSE,55),1);
VAR32:=LOW<VAR6*1 AND LOW<VAR13*1.006;
VAR33:=VAR24<=1.5 OR (VAR24>1.5 AND LOW<VAR23);
VAR34:=VAR26<=1 OR (VAR26>1 AND LOW<VAR23);
VAR35:=CLOSE>DTPRICE(REF(CLOSE,1),0.09);
VAR36:=VAR27 AND VAR30 AND VAR28 AND VAR31 AND VAR32 AND VAR29 AND VAR33 AND VAR34 AND VAR35;
VAR37:=IF(REF(EXIST(REF(VAR36,1) AND HIGH>ZTPRICE(REF(LOW,1),0.04),4),1),0,1);
VAR38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1);
VAR39:=IF(CODELIKE(57),0,1);
阶段卖出:3.2,COLORCYAN;
顶部清仓:3.5,COLORGREEN;
强弱分界:1.85,DOTLINE,COLORYELLOW;
重点关注:0.5,COLORRED;
底部介入:0.2,COLORGREEN;
乖离1:VAR24,NODRAW,COLORYELLOW;
乖离2:VAR26,NODRAW,COLORYELLOW;
STICKLINE(VAR21>REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORRED;
STICKLINE(VAR21<=REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(顶部清仓,VAR21),20),VAR21+0.02,2);
DRAWICON(FILTER(CROSS(VAR21,底部介入),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(阶段卖出,VAR21),20),VAR21+0.02,2);
DRAWNUMBER(ISLASTBAR,2.5,VAR21),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(0.5,VAR21),20),0.6,2);
STICKLINE(VAR21>REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORRED;
STICKLINE(VAR21<=REF(VAR21,1),VAR21,REF(VAR21,1),3,1),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(顶部清仓,VAR21),20),VAR21+0.02,2);
DRAWICON(FILTER(CROSS(VAR21,底部介入),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(阶段卖出,VAR21),20),VAR21+0.02,2);
DRAWNUMBER(ISLASTBAR,2.5,VAR21),COLORGREEN;
DRAWICON(FILTER(CROSS(VAR21,重点关注),20),VAR21+0.02,1);
DRAWICON(FILTER(CROSS(0.5,VAR21),20),0.6,2);
VAR40:=VAR36 AND VAR37 AND VAR3;
超短:IF(VAR40,2.5,0),STICK,COLORMAGENTA,LINETHICK4;
VAR41:=EXIST(VAR40,5) AND EXIST(CROSS(MA(CLOSE,9),VAR6),2) AND (CLOSE>REF(CLOSE,1) AND CLOSE>OPEN) AND CLOSE>VAR6 AND LOW<MA(CLOSE,9) AND CLOSE/OPEN>1.009;
持股:FILTER(VAR41,2),NODRAW,COLORYELLOW;
DRAWICON(持股,1,23);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:115123099
VAR2赋值:1
VAR3赋值:1
VAR4赋值:MA((2*收盘价+最高价+最低价)/4,5)
VAR5赋值:VAR4*1.02
VAR6赋值:VAR4*0.98
VAR7赋值:(2*收盘价+最高价+最低价的绝对值/4-收盘价的20日简单移动平均)/收盘价的20日简单移动平均
VAR8赋值:D收盘价的VAR7日简单移动平均
VAR9赋值:1.07*VAR8
VAR10:=0.93*VAR8
VAR11:=(VAR5-5日前的VAR5)/5日前的VAR5*1000
VAR12:=(VAR9-5日前的VAR9)/5日前的VAR9*1000
VAR13:=收盘价的9日简单移动平均
VAR14:=VAR5>VAR9
VAR15:=COUNT(VAR12>=1日前的VAR12,2)>=2
VAR16:=成交量的10日简单移动平均>=成交量的55日简单移动平均
VAR17:=统计7日满足收盘价>开盘价的天数>=4
VAR18:=VAR14 AND VAR15 AND VAR16 AND VAR17
VAR19:=10日内最低价最低值
VAR20:=25日内最高价最高值
VAR21:=EMA((收盘价-VAR19)/(VAR20-VAR19)*4,4)
VAR22:=(最低价+最高价+收盘价*2)/4
VAR23:=VAR22的14日指数移动平均
VAR24:=(VAR6-VAR13)/VAR13*100
VAR25:=(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
VAR26:=REF((VAR6-VAR25)/VAR25*100,1)
VAR27:=1日前的VAR18 OR 2日前的VAR18
VAR28:=REF(COUNT(成交量>成交量的5日简单移动平均 OR 成交量>成交量的20日简单移动平均 OR 成交量>成交量的135日简单移动平均 AND 收盘价>开盘价,10),1)>=6
VAR29:=1日前的VAR5>VAR5 AND VAR9>1日前的VAR9 AND VAR5>VAR9 AND 统计7日满足收盘价>开盘价的天数>=4,1)
VAR30:=VAR5>VAR9 AND VAR9>=1日前的VAR9
VAR31:=收盘价的5日简单移动平均>收盘价的10日简单移动平均 AND 收盘价的10日简单移动平均>收盘价的20日简单移动平均 AND 收盘价的20日简单移动平均>=REF(收盘价的20日简单移动平均,1) AND 收盘价的55日简单移动平均>=REF(收盘价的55日简单移动平均,1)
VAR32:=最低价
VAR33:=VAR24<=1.5 OR (VAR24>1.5 AND 最低价
VAR34:=VAR26<=1 OR (VAR26>1 AND 最低价
VAR35:=收盘价>DTPRICE(1日前的收盘价,0.09)
VAR36:=VAR27 AND VAR30 AND VAR28 AND VAR31 AND VAR32 AND VAR29 AND VAR33 AND VAR34 AND VAR35
VAR37:=IF(REF(EXIST(REF(VAR36,1) AND 最高价>ZTPRICE(REF(最低价,1),0.04),4),1),0,1)
VAR38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1)
VAR39:=IF(CODELIKE(57),0,1)
输出阶段卖出:3.2,画青色
输出顶部清仓:3.5,画绿色
输出强弱分界:1.85,DOTLINE,画黄色
输出重点关注:0.5,画红色
输出底部介入:0.2,画绿色
输出乖离1:VAR24,NODRAW,画黄色
输出乖离2:VAR26,NODRAW,画黄色
STICKLINE(VAR21>1日前的VAR21,VAR21,1日前的VAR21,3,1),画红色
STICKLINE(VAR21<=1日前的VAR21,VAR21,1日前的VAR21,3,1),画绿色
DRAWICON(FILTER(VAR21上穿重点关注,20),VAR21+0.02,1)
DRAWICON(FILTER(顶部清仓上穿VAR21,20),VAR21+0.02,2)
DRAWICON(FILTER(VAR21上穿底部介入,20),VAR21+0.02,1)
DRAWICON(FILTER(阶段卖出上穿VAR21,20),VAR21+0.02,2)
DRAWNUMBER(ISLASTBAR,2.5,VAR21),画绿色
DRAWICON(FILTER(VAR21上穿重点关注,20),VAR21+0.02,1)
DRAWICON(FILTER(0.5上穿VAR21,20),0.6,2)
STICKLINE(VAR21>1日前的VAR21,VAR21,1日前的VAR21,3,1),画红色
STICKLINE(VAR21<=1日前的VAR21,VAR21,1日前的VAR21,3,1),画绿色
DRAWICON(FILTER(VAR21上穿重点关注,20),VAR21+0.02,1)
DRAWICON(FILTER(顶部清仓上穿VAR21,20),VAR21+0.02,2)
DRAWICON(FILTER(VAR21上穿底部介入,20),VAR21+0.02,1)
DRAWICON(FILTER(阶段卖出上穿VAR21,20),VAR21+0.02,2)
DRAWNUMBER(ISLASTBAR,2.5,VAR21),画绿色
DRAWICON(FILTER(VAR21上穿重点关注,20),VAR21+0.02,1)
DRAWICON(FILTER(0.5上穿VAR21,20),0.6,2)
VAR40:=VAR36 AND VAR37 AND VAR3
如果VAR40返回2.5否则返回0
VAR41:=最近5日存在VAR40 AND EXIST(CROSS(收盘价的9日简单移动平均,VAR6),2) AND (收盘价>1日前的收盘价 AND 收盘价>开盘价) AND 收盘价>VAR6 AND 最低价<收盘价的9日简单移动平均 AND 收盘价/开盘价>1.009
输出持股:VAR41的2过滤,NODRAW,画黄色
当满足条件持股时,在1和23之间画图标