M:=5;
一翘:=MA(C,13)>REF(MA(C,13),1) AND REF(MA(C,13),1)<REF(MA(C,13),2);
一金叉:=CROSS(MA(C,5),MA(C,13));
二金叉:=CROSS(MA(V,5),MA(V,89));
A:=(3*C+L+O+H)/6;
DKX:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MADKX:=MA(DKX,M);
三金叉:=CROSS(DKX,MADKX);
四金叉:=CROSS(MACD.DIFF,MACD.DEA);
XG:(一翘 AND 一金叉 AND 二金叉 AND 三金叉 AND 四金叉)*2;
均线上翘:一翘*1.8;
均线金叉:一金叉*1.4;
多空线金叉:三金叉*1;
成交量金叉:二金叉*0.6;
MACD金叉:四金叉*0.2;
202108202133.jpg
|