RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
A3:=RSI1 RSI2;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
A4:=LWR1 LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A5:=CLOSE
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
A6:=MMS
涨买入:=IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0);
A110:=1;
A220:=(5);
A33:=(((2 * CLOSE) + HIGH) + LOW) / 4;
A44:=LLV(LOW,34);
A55:=HHV(HIGH,34);
A66:=EMA((((A33 - A44) / (A55 - A44)) * 100),13);
A7:=(EMA(((0.667 * (REF(A66,1))) + (0.333 * A66)),2)) * A110;
黑马决策线:=(EMA(A7,A220)) * A110,COLORRED;
A8:=(HHV(HIGH,9)) - (LLV(LOW,9));
A9:=(HHV(HIGH,9)) - CLOSE;
A10:=CLOSE - (LLV(LOW,9));
A11:=((A9 / A8) * 100) - 70;
A12:=((CLOSE - (LLV(LOW,60))) / ((HHV(HIGH,60)) - (LLV(LOW,60)))) * 100;
A13:=SMA(((A10 / A8) * 100),3,1);
A14:=(SMA(A13,3,1)) - (SMA(A11,9,1));
A15:=IF((A14 100),(A14 - 100),0);
A16:=(EMA((((A3 - A4) / (A5 - A4)) * 100),8)) * A1;
A17:=(EMA(A16,5)) * A1;
A18:=(EMA(CLOSE,2)) * A1;
A19:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * A1;
A20:=(HHV((MA(HIGH,13)),13)) * A1;
A21:=(LLV((MA(HIGH,13)),1)) * A1;
A22:=(EMA(CLOSE,4)) * A1;
A23:=((((A18 = A19) AND (A21 = A20)) AND (A18 A22)) AND (CLOSE A21)) AND ((REF(A21,1)) (REF(A20,1)));
A24:=BARSLAST(A23) + 1;
A25:=(LLV(LOW,A24)) * 1.3;
A26:=(LLV(LOW,20)) * 1.418;
A27:=(((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.07)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26);
A28:=A27 AND (FILTER(A27,A24));
A30:=((((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.035)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26)) ;
A31:=A30 AND (FILTER(A30,20));
XG:A28 OR A31 AND 涨买入;
选股公式2A1:=1;
A2:=(5);
A3:=(((2 * CLOSE) + HIGH) + LOW) / 4;
A4:=LLV(LOW,34);
A5:=HHV(HIGH,34);
A6:=EMA((((A3 - A4) / (A5 - A4)) * 100),13);
A7:=(EMA(((0.667 * (REF(A6,1))) + (0.333 * A6)),2)) * A1;
黑马决策线:=(EMA(A7,A2)) * A1,COLORRED;
A8:=(HHV(HIGH,9)) - (LLV(LOW,9));
A9:=(HHV(HIGH,9)) - CLOSE;
A10:=CLOSE - (LLV(LOW,9));
A11:=((A9 / A8) * 100) - 70;
A12:=((CLOSE - (LLV(LOW,60))) / ((HHV(HIGH,60)) - (LLV(LOW,60)))) * 100;
A13:=SMA(((A10 / A8) * 100),3,1);
A14:=(SMA(A13,3,1)) - (SMA(A11,9,1));
A15:=IF((A14 100),(A14 - 100),0);
A16:=(EMA((((A3 - A4) / (A5 - A4)) * 100),8)) * A1;
A17:=(EMA(A16,5)) * A1;
A18:=(EMA(CLOSE,2)) * A1;
A19:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * A1;
A20:=(HHV((MA(HIGH,13)),13)) * A1;
A21:=(LLV((MA(HIGH,13)),1)) * A1;
A22:=(EMA(CLOSE,4)) * A1;
A23:=((((A18 = A19) AND (A21 = A20)) AND (A18 A22)) AND (CLOSE A21)) AND ((REF(A21,1)) (REF(A20,1)));
A24:=BARSLAST(A23) + 1;
A25:=(LLV(LOW,A24)) * 1.3;
A26:=(LLV(LOW,20)) * 1.418;
A27:=(((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.07)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26);
A28:=A27 AND (FILTER(A27,A24));
A30:=((((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.035)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26)) ;
A31:=A30 AND (FILTER(A30,20));
XG:A28 OR A31;
RSI1上穿RSI2和RSI3
公式模块:
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIFF,5);A1:=DIFF
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);D:=SMA(K,3,1);A2:=K LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
A3:=RSI1 RSI2;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,3,1);A4:=LWR1 LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A5:=CLOSE MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
A6:=MMS
涨买入:=IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0);
A8:=(HHV(HIGH,9)) - (LLV(LOW,9));A9:=(HHV(HIGH,9)) - CLOSE;A10:=CLOSE - (LLV(LOW,9));A11:=((A9 / A8) * 100) - 70;
A12:=((CLOSE - (LLV(LOW,60))) / ((HHV(HIGH,60)) - (LLV(LOW,60)))) * 100;
A13:=SMA(((A10 / A8) * 100),3,1);A14:=(SMA(A13,3,1)) - (SMA(A11,9,1));
A15:=IF((A14 100),(A14 - 100),0);A16:=(EMA((((A3 - A4) / (A5 - A4)) * 100),8)) * A1;
A17:=(EMA(A16,5)) * A1;A18:=(EMA(CLOSE,2)) * A1;A19:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * A1;
A20:=(HHV((MA(HIGH,13)),13)) * A1;A21:=(LLV((MA(HIGH,13)),1)) * A1;A22:=(EMA(CLOSE,4)) * A1;
A23:=((((A18 = A19) AND (A21 = A20)) AND (A18 A22)) AND (CLOSE A21)) AND ((REF(A21,1)) (REF(A20,1)));
A24:=BARSLAST(A23) + 1;A25:=(LLV(LOW,A24)) * 1.3;A26:=(LLV(LOW,20)) * 1.418;
A27:=(((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.07)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26);
A28:=A27 AND (FILTER(A27,A24));
A30:=((((((A18 = A19) AND (A21 = A20)) AND ((CLOSE / (REF(CLOSE,1))) = 1.035)) AND (A24 = 30)) AND (CLOSE = A25)) AND (CLOSE = A26)) ;
A31:=A30 AND (FILTER(A30,20));
XGA:=A28 OR A31 AND 涨买入;
N1:=6;N2:=12;N3:=24;
RSI11:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI21:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI31:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
XGB:=CROSS(RSI11,RSI21) AND CROSS(RSI11,RSI31);
XGC:=A28 OR A31;
XGA AND XGB AND XGC;