N:=55;
WL:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;{6日乖離}
WLT:=MA(WL,89);(89均線}
WLT1:=CROSS(WL,WLT);{6日乖離穿越89}
WLT11:=CROSS(WL,-10);{6日乖離達到-10}
WLT2:=FILTER(WLT1,8);{過濾多余信號}
T1:=WLT11 OR WLT2;
T2:=REF("KDJ.J",1)<0 AND "KDJ.J">0;{KDJJ值穿越0}
LV:=MA(C,24);{24日均線}
HR0:=HHV(HIGH,N);{55日高價}
HRY0:=LLV(LOW,N);
HRY110:=HR0*HRY0;{注意這個地方的設(shè)計思想:將最高價與最低價相乘?}
HRY330:=SQRT(HRY110);{然后再取平方根}
NS1:=C>HRY330 AND HRY330 >=REF(HRY330,1) AND C>LV;{收盤價大于55日高低價中間價且中間價連續(xù)上升且收盤價大于2日均線}
T3:=WLT2 OR WL>WLT;
XG1:=T1 AND NS1;
XG2:=T1 AND T3;
W18:XG1 OR XG2 OR T2;
聯(lián)系客服