比较精确的波段指标无未来个人珍藏版
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
DRAWTEXT(CROSS(散户,庄家) AND 散户<50 AND 29<散户,L-0.05,'短进'),COLORMAGENTA;
DRAWTEXT(CROSS(庄家,散户) AND 散户>40 AND 71>散户,H+0.05,'短出'),COLORGREEN;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'低吸'),COLORWHITE;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'高减'),COLORYELLOW;
DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWTEXT(VARA>0 AND CROSS(VARC,VARA),H+0.05,'中线逃!'),COLORYELLOW;
DRAWICON(卖出<0,H+0.05,2);
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值:(2*收盘价+最高价+最低价)/4
如果YEAR>=2099 AND MONTH>2返回0否则返回1
VAR4赋值:5日内最低价最低值
VAR5赋值:4日内最高价最高值
散户赋值:EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3
庄家赋值:E0.667*1日前的散户+0.333*散户的2日简单移动平均*VAR3
DRAWTEXT(散户上穿庄家 AND 散户<50 AND 29<散户,L-0.05,'短进'),画洋红色
DRAWTEXT(庄家上穿散户 AND 散户>40 AND 71>散户,H+0.05,'短出'),画绿色
DRAWTEXT(散户上穿庄家 AND 散户<30,L-0.05,'低吸'),画白色
DRAWTEXT(庄家上穿散户 AND 散户>70,H+0.05,'高减'),画黄色
DRAWICON(散户上穿庄家 AND 散户<30,L-0.05,1)
DRAWICON(庄家上穿散户 AND 散户>70,H+0.05,2)
VAR9赋值:收盘价-5日前的收盘价
VARA赋值:VAR9的5日指数移动平均,5)/EMA(EMA(VAR9的绝对值,5),5)
VARC赋值:VAR9的20日指数移动平均,20)/EMA(EMA(VAR9的绝对值,20),20)
卖出赋值:IF(VARA>0 AND VARC上穿VARA,90,100)
DRAWTEXT(VARA>0 AND VARC上穿VARA,H+0.05,'中线逃!'),画黄色
当满足条件卖出<0时,在H+0.05和2之间画图标
买线赋值:收盘价的2日指数移动平均
卖线赋值:EMA(SLOPE(收盘价,21)*20+收盘价,42)
输出
B1:IF(买线上穿卖线,L-0.02,DRAWNULL),CROSSDOT, 线宽为3,画洋红色
输出
S1:IF(80上穿RSI*30,H+0.02,DRAWNULL),CROSSDOT, 线宽为3,画黄色
VC赋值:((收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100+(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100+(收盘价-收盘价的32日简单移动平均)/收盘价的32日简单移动平均*100)/3
输出
S2:IF(VC>20 AND FILTER(VC< 1日前的VC,5),H+0.02,DRAWNULL),CIRCLEDOT, 线宽为3,画绿色