A:=EMA(CLOSE,12) - EMA(CLOSE,26);
A1:=EMA(A,9);A2:=2*(A-A1);
A3:=("KD.K">"KD.D" AND REF(A2,1)<REF(A2,2) AND A2>0.1 AND A2>REF(A2,1) AND "RSI.RSI1"(9)>50
AND "KD.K#WEEK">"KD.D#WEEK" AND "MACD.macd#WEEK">0 AND "RSI.RSI1#WEEK"(9)>50
AND "KD.K#MONTH">"KD.D#MONTH" AND "MACD.MACD#MONTH">0 AND "RSI.RSI1#MONTH"(9)>50)*3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
AA:=CROSS(K,D);
A4:=(DYNAINFO(4)=0);
A5:=EXIST(C/REF(C,1)>1.055,100);
短线黑马:(A3 AND REF(A3<3,1))*2 AND AA AND NOT(A4) AND A5;
九毛八公式解读
A赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均 A1赋值:A的9日指数移动平均 A2赋值:2*(A-A1) A3赋值:("随机指标KD的K">"随机指标KD的D" AND 1日前的A2<2日前的A2 AND A2>0.1 AND A2>1日前的A2 AND "RSI的RSI1"(9)>50AND "随机指标KD的K[取周线数据]">"随机指标KD的D[取周线数据]" AND "平滑异同平均的MACD[取周线数据]">0 AND "RSI的RSI1[取周线数据]"(9)>50AND "随机指标KD的K[取月线数据]">"随机指标KD的D[取月线数据]" AND "平滑异同平均的MACD[取月线数据]">0 AND "RSI的RSI1[取月线数据]"(9)>50)*3 RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100 K赋值:RSV的3日[1日权重]移动平均 D赋值:K的3日[1日权重]移动平均 J赋值:3*K-2*D AA赋值:K上穿D A4赋值:(开盘价=0) A5赋值:最近100日存在收盘价/1日前的收盘价>1.055 输出短线黑马:(A3 AND 1日前的A3<3)*2 AND AA AND 取反 AND A5