免洗主图 不被洗盘的好指标 源码分享
A0:=(L+H+C*2)/4;
工作:=EMA(A0,14)COLORYELLOW,LINETHICK1;
度假:=EMA(A0,25)COLORYELLOW,LINETHICK2;
A1X:=(工作-REF(工作,1))/REF(工作,1)*100;
A2X:=(度假-REF(度假,1))/REF(度假,1)*100;
G:=BARSLAST(CROSS(A1X,0));
买入止损:REF(A0,G),COLORWHITE,LINETHICK1;
A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);{股票指标网}
A7:=(A5<-0.1 AND A5>A6);
财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;
DRAWICON(CROSS(A2,EMA(A2,5)) AND (A4-EMA(A2,5))>40 AND A7,LLV(L,21)*1.02,1);
STICKLINE(C>REF(C,1)*1.09,C,O,2,0)COLORRED,LINETHICK2;
STICKLINE(C<REF(C,1)*0.901,C,O,2,0)COLORGREEN,LINETHICK1;
减:IF(A2X>=0,度假,DRAWNULL),COLORMAGENTA,LINETHICK2;
少:IF(A1X>=0,工作,DRAWNULL),COLORRED,LINETHICK1;
操:IF(A1X>=0,买入止损,DRAWNULL),LINETHICK1,COLORRED;
作:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,DRAWNULL),COLORGREEN,POINTDOT;
顺:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,DRAWNULL),COLORGREEN,POINTDOT;
应:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;
趋:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,DRAWNULL),COLORGREEN,POINTDOT;
势:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,DRAWNULL),COLORGREEN,POINTDOT;
破:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.6,REF(A0,BARSLAST(CROSS(A1X,0)))*1.6,DRAWNULL),COLORGREEN,POINTDOT;
位:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.7,REF(A0,BARSLAST(CROSS(A1X,0)))*1.7,DRAWNULL),COLORGREEN,POINTDOT;
出:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.8,REF(A0,BARSLAST(CROSS(A1X,0)))*1.8,DRAWNULL),COLORGREEN,POINTDOT;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A0赋值:(L+H+C*2)/4
工作赋值:A0的14日指数移动平均画黄色,LINETHICK1
度假赋值:A0的25日指数移动平均画黄色, 线宽为2
A1X赋值:(工作-1日前的工作)/1日前的工作*100
A2X赋值:(度假-1日前的度假)/1日前的度假*100
G赋值:上次A1X上穿0距今天数
输出
买入止损:G日前的A0,画白色,LINETHICK1
A2赋值:3*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)-2*EMA((C-30日内L最低值)/(30日内H最高值-30日内L最低值)*100,5)
A4赋值:(34日内H最高值-C)/(34日内H最高值-34日内L最低值)*100
A5赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
A6赋值:A5的9日指数移动平均
{股票指标网}
A7赋值:(A5<-0.1 AND A5>A6)
输出
财神:IF(A7,21日内L最低值,DRAWNULL)画红色,CIRCLEDOT
DRAWICON(CROSS(A2,A2的5日指数移动平均) AND (A4-A2的5日指数移动平均)>40 AND A7,21日内L最低值*1.02,1)
STICKLINE(C>1日前的C*1.09,C,O,2,0)画红色, 线宽为2
STICKLINE(C<1日前的C*0.901,C,O,2,0)画绿色,LINETHICK1
如果A2X>=0返回度假否则返回DRAWNULL
如果A1X>=0返回工作否则返回DRAWNULL
如果A1X>=0返回买入止损否则返回DRAWNULL
输出
作:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.1,REF(A0,上次A1X上穿0距今天数)*1.1,DRAWNULL),画绿色,POINTDOT
输出
顺:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.2,REF(A0,上次A1X上穿0距今天数)*1.2,DRAWNULL),画绿色,POINTDOT
输出
应:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.3,REF(A0,上次A1X上穿0距今天数)*1.3,DRAWNULL),画绿色,CIRCLEDOT
输出
趋:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.4,REF(A0,上次A1X上穿0距今天数)*1.4,DRAWNULL),画绿色,POINTDOT
输出
势:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.5,REF(A0,上次A1X上穿0距今天数)*1.5,DRAWNULL),画绿色,POINTDOT
输出
破:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.6,REF(A0,上次A1X上穿0距今天数)*1.6,DRAWNULL),画绿色,POINTDOT
输出
位:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.7,REF(A0,上次A1X上穿0距今天数)*1.7,DRAWNULL),画绿色,POINTDOT
输出
出:IF(H>=REF(A0,上次A1X上穿0距今天数)*1.8,REF(A0,上次A1X上穿0距今天数)*1.8,DRAWNULL),画绿色,POINTDOT