黄金坑—预警预涨停的黄金坑预警
VAR1:=LLV(HIGH,240);
VAR2:=100*(CLOSE-VAR1)/VAR1;
VAR3:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR4:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR7:=BARSCOUNT(CLOSE);{}
VAR8:=VAR5<20 AND VAR6<23 AND VAR7>35;
VAR9:=VAR8 AND COUNT(VAR8,1)=1;
VAR10:=EMA(CLOSE,21)-EMA(CLOSE,8);
VAR11:=EMA(VAR10,5);
VAR12:=TROUGHBARS(3,6,1)<4 AND CROSS(VAR10,VAR11);
VAR13:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR14:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR15:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR16:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR17:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR18:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR19:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR20:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR21:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR22:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR23:=EMA(VAR22,100);
VAR24:=2*(VAR22-VAR23);
VAR25:=POW(VAR24,3)*0.1+POW(VAR24,1);
VAR26:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR27:=EMA(VAR26*0.97,3);
VAR28:=(HIGH+LOW+CLOSE)/3;
VAR29:=(VAR28-MA(VAR28,14))/(0.015*AVEDEV(VAR28,14));
VAR30:=CROSS(VAR27,LOW);
VAR31:=VAR13;{}
VAR32:=VAR14+VAR16+VAR18+VAR20;
VAR33:=VAR15+VAR17+VAR19+VAR21;
VAR34:=IF(VAR24>0.1,VAR25,0)*1;
VAR35:=EMA(WINNER(CLOSE)*100,5);
VAR36:=EMA(VAR35,2);
VAR37:=EMA(VAR36,2);
VAR38:=EMA(VAR37,2);
VAR39:=EMA(VAR38,2);
VAR40:=EMA(VAR39,2);
VAR41:=EMA(VAR40,2);
VAR42:=EMA(VAR41,2);
VAR43:=EMA(VAR42,2);
VAR44:=EMA(VAR43,2);
VAR45:=EMA(VAR44,2);
VAR46:=EMA(VAR45,2);
VAR47:=EMA(VAR46,2);
VAR48:=EMA(VAR47,2);
VAR49:=5;{}
VAR50:=VAR35;
VAR51:=DRAWLINE(VAR50>=HHV(VAR50,VAR49)=1,VAR50,VAR50<=LLV(VAR50,VAR49)=1,VAR50,1);
VAR52:=REF(VAR50,1)=REF(VAR51,1) AND VAR50>REF(VAR50,1);
VAR53:=VAR52>0;
VAR54:=VAR32 AND VAR53;
VAR55:=REF(VAR31,1) AND VAR54;
YJ:VAR55 AND DYNAINFO(24)>0.03;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:WINNER
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:240日内最高价最低值
VAR2赋值:100*(收盘价-VAR1)/VAR1
VAR3赋值:(收盘价-528日内最低价最低值)/(528日内最高价最高值-528日内最低价最低值)*100
VAR4赋值:(收盘价-530日内收盘价最低值)/(530日内收盘价最高值-530日内收盘价最低值)*100
VAR5赋值:SMA(收盘价-1日前的收盘价和0较大值,34,1)/SMA(收盘价-1日前的收盘价的绝对值,7,1)*100
VAR6赋值:SMA(收盘价-1日前的收盘价和0较大值,13,1)/SMA(收盘价-1日前的收盘价的绝对值,13,1)*100
VAR7赋值:收盘价的有效数据周期数
{}
VAR8赋值:VAR5<20 AND VAR6<23 AND VAR7>35
VAR9赋值:VAR8 AND 统计1日满足VAR8的天数=1
VAR10:=收盘价的21日指数移动平均-收盘价的8日指数移动平均
VAR11:=VAR10的5日指数移动平均
VAR12:=TROUGHBARS(3,6,1)<4 AND VAR10上穿VAR11
VAR13:=IF(TROUGHBARS(3,16,1)=0 AND 最高价>最低价+0.04,4,0)
VAR14:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3)
VAR15:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3)
VAR16:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3)
VAR17:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3)
VAR18:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3)
VAR19:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3)
VAR20:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3)
VAR21:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3)
VAR22:=收盘价的2日指数移动平均-收盘价的150日指数移动平均
VAR23:=VAR22的100日指数移动平均
VAR24:=2*(VAR22-VAR23)
VAR25:=POW(VAR24,3)*0.1+POW(VAR24,1)
VAR26:=SQRT(SQRT(最低价*最高价*开盘价*收盘价))
VAR27:=VAR26*0.97的3日指数移动平均
VAR28:=(最高价+最低价+收盘价)/3
VAR29:=(VAR28-VAR28的14日简单移动平均)/(0.015*AVEDEV(VAR28,14))
VAR30:=VAR27上穿最低价
VAR31:=VAR13
{}
VAR32:=VAR14+VAR16+VAR18+VAR20
VAR33:=VAR15+VAR17+VAR19+VAR21
如果VAR24>0.1返回VAR25否则返回0
VAR35:=EMA(收盘价计算的获利盘比例*100,5)
VAR36:=VAR35的2日指数移动平均
VAR37:=VAR36的2日指数移动平均
VAR38:=VAR37的2日指数移动平均
VAR39:=VAR38的2日指数移动平均
VAR40:=VAR39的2日指数移动平均
VAR41:=VAR40的2日指数移动平均
VAR42:=VAR41的2日指数移动平均
VAR43:=VAR42的2日指数移动平均
VAR44:=VAR43的2日指数移动平均
VAR45:=VAR44的2日指数移动平均
VAR46:=VAR45的2日指数移动平均
VAR47:=VAR46的2日指数移动平均
VAR48:=VAR47的2日指数移动平均
VAR49:=5
{}
VAR50:=VAR35
VAR51:=DRAWLINE(VAR50>=VAR49日内VAR50最高值=1,VAR50,VAR50<=VAR49日内VAR50最低值=1,VAR50,1)
VAR52:=1日前的VAR50=1日前的VAR51 AND VAR50>1日前的VAR50
VAR53:=VAR52>0
VAR54:=VAR32 AND VAR53
VAR55:=1日前的VAR31 AND VAR54
输出YJ:VAR55 AND DYNAINFO(24)>0.03