【精品】高胜率波段买卖 妖股能吃大部分行情 普通波段也能做到小亏大赚的指标
X_1:=31;
X_2:=80;
X_3:=50;
X_4:=EMA(CLOSE,X_1)-EMA(CLOSE,X_2);
X_5:=HHV(X_4,X_3);
X_6:=LLV(X_4,X_3);
X_7:=(X_4-X_6)/(X_5-X_6)*100;
X_8:=SMA(X_7,2,1);
X_9:=SMA(X_8,2,1);
X_10:=IF(X_9>REF(X_9,1),X_9,DRAWNULL);
X_11:=IF(X_9<REF(X_9,1),X_9,DRAWNULL);
EMA3:EMA(CLOSE,3),COLORWHITE,LINETHICK3;
X_12:=55;
X_13:=1;
X_14:=0;
X_15:=240;
X_16:=1;
X_17:=0;
X_18:=1;
X_19:=1;
X_20:=40;
X_21:=1;
X_22:=WMA(CLOSE,X_12/2);
X_23:=WMA(CLOSE,X_12);
X_24:=2*X_22-X_23;
X_25:=WMA(X_24,SQRT(X_12));
X_26:=EMA(CLOSE,X_12/2);
X_27:=EMA(CLOSE,X_12);
X_28:=2*X_26-X_27;
X_29:=EMA(X_28,SQRT(X_12));
X_30:=WMA(CLOSE,X_12/3);
X_31:=WMA(CLOSE,X_12/2);
X_32:=3*X_30-X_31-WMA(CLOSE,X_12);
X_33:=WMA(X_32,X_12);
X_34:=IF(X_21=1,X_25,IF(X_21=2,X_29,X_33));
MULL:IF(X_14,REF(X_34,1),X_34),COLORRED;
SULL:IF(X_14,REF(X_34,2),REF(X_34,2)),COLORGREEN;
DRAWBAND(MULL,RGB(200,0,0),SULL,RGB(0,200,100));
DD:(MULL-SULL)/SULL*100*10,NODRAW,COLORWHITE;
X_35:=9;
X_36:=3.9;
X_37:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_38:=(HIGH+LOW)/2+MA(X_37,X_35)*X_36;
X_39:=(HIGH+LOW)/2-MA(X_37,X_35)*X_36;
X_40:=REF(X_38,BARSLAST(X_38<=REF(X_38,1)));
X_41:=LLV(X_38,X_35*1.5);
X_42:=IF(X_41!=REF(X_41,1) AND X_40<REF(X_40,1),X_40,IF(X_40=X_41,X_40,X_41));
X_43:=BARSLAST(CROSS(0.5,X_38=X_42))+1;
X_44:=CROSS(COUNT(CROSS(CLOSE,X_42) OR CROSS(CLOSE,REF(X_42,2)) AND X_38>X_42,X_43),0.5);
X_45:=BARSLAST(X_44);
X_46:=BARSLAST(CROSS(HHV(X_39,X_45+1),CLOSE));
X_47:=CROSS(X_46,X_45);
X_48:=CROSS(X_45,X_46);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
SUP:IF(X_46>X_45,HHV(X_39,BARSLAST(X_47)+1),LLV(X_38,BARSLAST(X_48)+1)),COLORGREEN,LINETHICK2;
SUP1:IF(X_46>X_45,SUP,DRAWNULL),COLOR0000C8,LINETHICK2;
X_49:=11;
X_50:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),X_49,1);
X_51:=HIGH-REF(HIGH,1);
X_52:=REF(LOW,1)-LOW;
X_53:=SMA(IF(X_51>0 AND X_51>X_52,X_51,0),X_49,1);
X_54:=SMA(IF(X_52>0 AND X_52>X_51,X_52,0),X_49,1);
X_55:=X_53*100/X_50;
X_56:=X_54*100/X_50;
X_57:=SMA(ABS(X_56-X_55)/(X_56+X_55)*100,X_49,1);
X_58:=X_55>30 OR X_57>30 AND X_55>X_56;
X_59:=X_56>30 OR X_57>30 AND X_55<X_56;
X_60:=EMA3>MULL AND EMA3>SULL AND X_46>X_45 AND X_10>0 AND X_55>X_56 AND MULL>SULL;
X_61:=EMA3<SULL AND EMA3<MULL AND X_46<X_45 AND EMA3<SUP;
DRAWICON(X_60,LOW*0.995,7);
DRAWICON(X_61,LOW*0.995,2);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:31
X_2赋值:80
X_3赋值:50
X_4赋值:收盘价的X_1日指数移动平均-收盘价的X_2日指数移动平均
X_5赋值:X_3日内X_4最高值
X_6赋值:X_3日内X_4最低值
X_7赋值:(X_4-X_6)/(X_5-X_6)*100
X_7的2日[1日权重]移动平均
X_8的2日[1日权重]移动平均
X_10:=IF(X_9>1日前的X_9,X_9,DRAWNULL)
X_11:=IF(X_9<1日前的X_9,X_9,DRAWNULL)
输出EMA3:收盘价的3日指数移动平均,画白色, 线宽为3
X_12:=55
X_13:=1
X_14:=0
X_15:=240
X_16:=1
X_17:=0
X_18:=1
X_19:=1
X_20:=40
X_21:=1
X_22:=W收盘价的X_12/2日简单移动平均
X_23:=W收盘价的X_12日简单移动平均
X_24:=2*X_22-X_23
X_25:=WMA(X_24,SQRT(X_12))
X_26:=收盘价的X_12/2日指数移动平均
X_27:=收盘价的X_12日指数移动平均
X_28:=2*X_26-X_27
X_29:=EMA(X_28,SQRT(X_12))
X_30:=W收盘价的X_12/3日简单移动平均
X_31:=W收盘价的X_12/2日简单移动平均
X_32:=3*X_30-X_31-W收盘价的X_12日简单移动平均
X_33:=WX_32的X_12日简单移动平均
X_34:=IF(X_21=1,X_25,IF(X_21=2,X_29,X_33))
输出MULL:IF(X_14,1日前的X_34,X_34),画红色
输出SULL:IF(X_14,2日前的X_34,2日前的X_34),画绿色
DRAWBAND(MULL,RGB(200,0,0),SULL,RGB(0,200,100))
输出DD:(MULL-SULL)/SULL*100*10,NODRAW,画白色
X_35:=9
X_36:=3.9
X_37:=MAX(MAX(最高价-最低价,1日前的收盘价-最高价的绝对值),ABS(1日前的收盘价-最低价))
X_38:=(最高价+最低价)/2+X_37的X_35日简单移动平均*X_36
X_39:=(最高价+最低价)/2-X_37的X_35日简单移动平均*X_36
X_40:=REF(X_38,上次X_38<=REF(X_38,1距今天数))
X_41:=X_35*1.5日内X_38最低值
X_42:=IF(X_41!=1日前的X_41 AND X_40<1日前的X_40,X_40,IF(X_40=X_41,X_40,X_41))
X_43:=上次0.5上穿X_38=X_42距今天数+1
X_44:=CROSS(COUNT(CROSS(收盘价,X_42) OR CROSS(收盘价,2日前的X_42) AND X_38>X_42,X_43),0.5)
X_45:=上次X_44距今天数
X_46:=上次CROSS(X_45+1日内X_39最高值,收盘价距今天数)
X_47:=X_46上穿X_45
X_48:=X_45上穿X_46
DRAWKLINE(最高价,开盘价,最低价,收盘价)
输出SUP:IF(X_46>X_45,HHV(X_39,上次X_47距今天数+1),LLV(X_38,BARSLAST(X_48)+1)),画绿色, 线宽为2
如果X_46>X_45返回SUP否则返回DRAWNULL
X_49:=11
X_50:=SMA(MAX(MAX(最高价-最低价,最高价-1日前的收盘价的绝对值),ABS(最低价-1日前的收盘价)),X_49,1)
X_51:=最高价-1日前的最高价
X_52:=1日前的最低价-最低价
如果X_51>0 AND X_51>X_52返回X_51否则返回0
如果X_52>0 AND X_52>X_51返回X_52否则返回0
X_55:=X_53*100/X_50
X_56:=X_54*100/X_50
X_57:=SMA(X_56-X_55的绝对值/(X_56+X_55)*100,X_49,1)
X_58:=X_55>30 OR X_57>30 AND X_55>X_56
X_59:=X_56>30 OR X_57>30 AND X_55
X_60:=EMA3>MULL AND EMA3>SULL AND X_46>X_45 AND X_10>0 AND X_55>X_56 AND MULL>SULL
X_61:=EMA3当满足条件X_60时,在最低价*0.995和7之间画图标
当满足条件X_61时,在最低价*0.995和2之间画图标