XA_1:=102;
XA_2:=7;
XA_3:=13;
XA_4:=14;
XA_5:=6;
XA_6:=14;
XA_7:=MA((2*CLOSE+HIGH+LOW)/4,5);
XA_8:=IF(DATETODAY(DATE)<9890,1,1);
XA_9:=XA_7*XA_1/100;
XA_10:=XA_7*(200-XA_1)/100;
XA_11:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
XA_12:=DMA(CLOSE,XA_11)*XA_8;
XA_13:=(1+XA_2/100)*XA_12;
XA_14:=(1-XA_2/100)*XA_12;
XA_15:=LOW<MIN(XA_10,XA_14);
XA_16:=CLOSE*VOL;
XA_17:=EMA((EXPMA(XA_16,3)/EXPMA(VOL,3)+EXPMA(XA_16,6)/EXPMA(VOL,6)+EXPMA(XA_16,12)/EXPMA(VOL,12)+EXPMA(XA_16,24)/EXPMA(VOL,24))/4,XA_3);
XA_18:=IF(DATE<2342.459961*500,1,1);
XA_19:=1.06*XA_17;
XA_20:=XA_17*0.94;
XA_21:=EXPMA(CLOSE,9);
XA_22:=EXPMA(XA_21*1.14,5)*XA_8;
XA_23:=EXPMA(XA_21*0.86,5)*XA_8;
XA_24:=LOW<XA_23*1.01;
XA_25:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))*XA_18),ABS(REF(CLOSE,1)-LOW)),XA_4);
XA_26:=HIGH-REF(HIGH,1);
XA_27:=REF(LOW,1)-LOW;
XA_28:=EXPMEMA(IF(XA_26>0 AND XA_26>XA_27,XA_26,0),XA_4);
XA_29:=EXPMEMA(IF(XA_27>0 AND XA_27>XA_26,XA_27,0),XA_4);
XA_30:=XA_28*100/XA_25;
XA_31:=XA_29*100/XA_25;
XA_32:=EXPMEMA(ABS(XA_31-XA_30)/(XA_31+XA_30)*100,XA_5)*XA_8;
XA_33:=EXPMEMA(XA_32,XA_5)*XA_18;
XA_34:=XA_32>59 AND XA_33>49;
XA_35:=(HIGH+LOW+CLOSE)/3;
XA_36:=(XA_35-MA(XA_35,XA_6))/(0.015*AVEDEV(XA_35,XA_6)*XA_8);
XA_37:=XA_36<(-110) AND XA_36>(-200);
XA_38:=XA_15 AND XA_24 AND XA_34 AND XA_37 AND (CLOSE-OPEN)/OPEN>(-0.06);
XA_39:=FILTER(XA_38,2)*XA_8;
抄底:=XA_38 AND XA_39,COLORRED;
D1:=BARSLAST(抄底);
TJ:=CROSS(MACD.macd,0) AND COUNT(CROSS(MACD.MACD,0),D1)=1 AND D1>1;
XG:TJ;
九毛八公式解读
XA_1赋值:102 XA_2赋值:7 XA_3赋值:13 XA_4赋值:14 XA_5赋值:6 XA_6赋值:14 XA_7赋值:(2*收盘价+最高价+最低价)/4的5日简单移动平均 XA_8赋值:如果日期对应的转换天数<9890,返回1,否则返回1 XA_9赋值:XA_7*XA_1/100 XA_10赋值:XA_7*(200-XA_1)/100 XA_11赋值:(2*收盘价+最高价+最低价)/4-收盘价的20日简单移动平均的绝对值/收盘价的20日简单移动平均 XA_12赋值:以XA_11为权重收盘价的动态移动平均*XA_8 XA_13赋值:(1+XA_2/100)*XA_12 XA_14赋值:(1-XA_2/100)*XA_12 XA_15赋值:最低价0ANDXA_26>XA_27,返回XA_26,否则返回0的XA_4日指数平滑移动平均 XA_29赋值:如果XA_27>0ANDXA_27>XA_26,返回XA_27,否则返回0的XA_4日指数平滑移动平均 XA_30赋值:XA_28*100/XA_25 XA_31赋值:XA_29*100/XA_25 XA_32赋值:XA_31-XA_30的绝对值/(XA_31+XA_30)*100的XA_5日指数平滑移动平均*XA_8 XA_33赋值:XA_32的XA_5日指数平滑移动平均*XA_18 XA_34赋值:XA_32>59 AND XA_33>49 XA_35赋值:(最高价+最低价+收盘价)/3 XA_36赋值:(XA_35-XA_35的XA_6日简单移动平均)/(0.015*XA_35的XA_6日平均绝对偏差*XA_8) XA_37赋值:XA_36<(-110) AND XA_36>(-200) XA_38赋值:XA_15 AND XA_24 AND XA_34 AND XA_37 AND (收盘价-开盘价)/开盘价>(-0.06) XA_39赋值:XA_38的2日过滤*XA_8 抄底赋值:XA_38 AND XA_39,画红色 D1赋值:上次抄底距今天数 TJ赋值:平滑异同平均线的MACD上穿0 AND 统计D1日中满足平滑异同平均线的MACD上穿0的天数=1 AND D1>1 输出XG:TJ