主图
DRAWGBK(OPEN>CLOSE,RGB(48,41,124),RGB(0,0,0),0,1,0);
M60:=MA(C,60);
M120:=MA(C,120);
DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0));
{牛熊变线}
变线:=EMA(MA(CLOSE,30),5),LINETHICK0;{20 或 30 或 35}
STICKLINE(C>=变线 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=变线 AND C>=O,C,O,2.7,1),COLORRED;
STICKLINE(C>变线 AND C<=O,H,L,0,1),COLORCYAN;
STICKLINE(C>变线 AND C<=O,C,O,3,0),COLORCYAN;
STICKLINE(C<变线 AND C<=O,H,L,0,1),COLORCYAN;
STICKLINE(C<变线 AND C<=O,C,O,3,0),COLORCYAN;
STICKLINE(C<变线 AND C<=O,H,L,0,1),COLORGRAY;
STICKLINE(C<变线 AND C>O,H,L,0,1),COLORGRAY;
STICKLINE(C<变线 AND C>O,C,O,3,1),COLORGRAY;
STICKLINE(C<变线 AND C<=O,C,O,3,1),COLORGRAY;
{分水岭操作线}
PM:MA(C,5),COLORGRAY,LINETHICK1;{可用13}
IF(PM<REF(PM,1),PM,DRAWNULL),COLORGRAY,LINETHICK0;
IF(PM>=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));{原公式为17,最终确定为12}
B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1);
分水岭:=IF(MA(CLOSE,12)<B,B,MA(CLOSE,12));
操作线:=分水岭-(EMA(C,3)-分水岭);
AA:=CROSS(分水岭,操作线);
STICKLINE(AA,C,O,3,0),COLOR0000AA;
STICKLINE(AA,C,O,2,0),COLOR0033CC;
STICKLINE(AA,C,O,1,0),COLOR0055EE;
STICKLINE(AA,C,O,0.3,0),COLOR0099FF;
STICKLINE(AA,H,L,0,1),COLOR0099FF;
RR:=CROSS((MA(VOL,5)),(MA(VOL,10))) AND MA(C,2)>=MA(C,4); {AND VOL>=REF(VOL,1)}
STICKLINE(RR,C,O,3,0),COLOR0000AA;
STICKLINE(RR,C,O,2,0),COLOR0033CC;
STICKLINE(RR,C,O,1,0),COLOR0055EE;
STICKLINE(RR,C,O,0.3,0),COLOR0099EE;
STICKLINE(RR,H,L,0,1),COLOR0099FF;
MA5:MA(CLOSE,5),NODRAW;
MA10:MA(CLOSE,10),COLORCC66FF;
MA20:MA(CLOSE,20),COLORFFCC66,LINETHICK2;
MA60:MA(CLOSE,60),COLOR00FF99,LINETHICK2;
MA120:MA(C,120),COLORGRAY;
DRAWTEXT(CROSS(MA60,MA120),MA60,'牛'),COLORYELLOW,LINETHICK4;
DRAWTEXT(CROSS(MA120,MA60),MA60,'熊'),COLORWHITE,LINETHICK;
短银点火副图
DRAWGBK(OPEN>CLOSE,RGB(48,41,124),RGB(0,0,0),0,1,0);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD := EMA(SK,3);
SP := EMA(SK,10);
A1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF
(A1,1)+0.333*A1),1);
B1,COLORSTICK;X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORRED;
做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;
点火:STICKLINE(CYS13>5 AND DIFF>DEA AND C>=EMA(C,5) AND A1-B1>0,0,-做空,2,0 ),COLORRED;
DRAWICON(点火,点火,9);
DRAWTEXT((点火 AND REF(A1,1)<=REF(B1,1)AND REF(A1,0)>REF(B1,0)),0.38,'火'),COLORRED;
主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORYELLOW;
C>MA(C,30),COLORFF80FF,LINETHICK2;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J1:=DIFF;
J2:=DEA;
J3:=K;
J4:=D;
VL:=REF(LOW,1);
VH:=REF(H,1);
VAR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;
VAR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
VAR3:=REF(CLOSE,1);
VAR4:=MA(VAR2,13);
VAR5:=LLV(L,34);
VAR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
VAR7:=CROSS(93,VAR6);
VAR8:=EMA(IF(L<=VAR5,VAR4,0),3);
VAR9:=H>LLV(L,0)*7;
VAR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));
VAR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (VAR10 * 10.9);
上攻:=FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;
WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45));
WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99));
顶:= 0;
底1:=-95;
XDF短银点火副图
DRAWGBK(OPEN>CLOSE,RGB(48,41,124),RGB(0,0,0),0,1,0);去停牌:=DYNAINFO(13)>0;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
A1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
A2:=K>D;
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>BBI;
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>MMM;
涨买入:=(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;
上涨:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;
HM:=MA(HIGH,30)*(1+15/100);
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,60);
AAA:=(C>M1)AND(M1>M2)AND(M2>M3);
{AND(M1/M4<1.35)AND(M1>REF(M1,1))AND(M2>REF(M2,1))AND(M3>REF(M3,1))}
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1 := EMA(DIFF1,9);
MACD1 := 2*(DIFF1-DEA1);
MACDH:=CROSS(MACD1,0);
DIFF22:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA22:=EMA(DIFF22,9);
JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD := EMA(SK,3);
SP := EMA(SK,10);
AAA1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF
(AAA1,1)+0.333*AAA1),1);
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
XDFHTH:=REF(AAA1,1)<=REF(B1,1) ;
点火:=CYS13>4.5 AND DIFF22>DEA22 AND C>=EMA(C,5) AND AAA1-B1>0;
MA5:=MA(C,5);
压力:=HHV(MA5,60);
小牛涨大:=O>REF(C,1)*1.02 AND C>O AND C>=压力 AND 压力>=REF(C,1) AND MA5>REF(MA5,1) AND 去停牌 ;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
大胆搏:=FILTER((VAR4AA>90),45);{,(LOW)*(0.93),'←---大胆搏 '),COLORYELLOW;};
最强火:=CROSS(MACD1,0) AND AAA AND 涨买入 AND C>=HM ;
DRAWTEXT(最强火,0.78,'●最强点火'), COLORRED;
DRAWICON(最强火,最强火,9);
强火1:MACDH AND AAA AND 涨买入;
DRAWTEXT(强火1,0.58,'●强火'), COLORRED;
DRAWICON(强火1,强火1,9);
强火2:小牛涨大 AND MACDH AND 涨买入;
DRAWTEXT(强火2,0.48,'●早盘强火'), COLORRED;
DRAWICON(强火2,强火2,9);
强火3:大胆搏 AND 点火 AND 涨买入 OR (大胆搏 AND 点火 AND 小牛涨大);
DRAWTEXT(强火3,0.38,'●盘中强火'), COLORRED;
DRAWICON(强火3,强火3,9);
短银点火抢副图
DRAWGBK(OPEN>CLOSE,RGB(48,41,124),RGB(0,0,0),0,1,0);DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=DIFF>DEA;
RST1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RST1,3,1);
D:=SMA(K,3,1);
A2:=K>D;
涨买入:=A1 AND A2 AND REF(A1 AND A2,1)=0;
HM:=MA(HIGH,30)*(1+15/100);
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,20);
M3:=MA(CLOSE,60);
M4:=MA(CLOSE,120);
M5:=MA(CLOSE,200);
AAA:=CLOSE>OPEN AND CLOSE>M1 AND M1>M2 AND M2>M3 AND M1/M4<1.35 AND CLOSE>M5;
MACD1:=2*(DIFF-DEA);
ENTERLONG1:=CROSS(MACD1,0 AND AAA AND 涨买入);
操作:=EMA((OPEN+LOW+HIGH+CLOSE*2.02)/5,6);
压力线:=HHV(操作,21);
NN:=10;
T1:=CONST(LLVBARS(LOW,NN));
T1HIGH:=CONST(REF(HIGH,T1));
CC:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1 AND HIGH>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2 AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
去除ST:=IF(NAMELIKE(1),0,1) AND IF(NAMELIKE(2),0,1) AND IF(NAMELIKE(3),0,1);
去停牌:=NOT(DYNAINFO(4)=0);
过滤:=去除ST AND 去停牌;
JJ:=(CLOSE*3+HIGH+LOW+OPEN)/6;
SK:=EMA(JJ,13)-EMA(JJ,21);
SD:=EMA(SK,3);
SP:=EMA(SK,10);
AAA1:=EMA(CLOSE,7)-EMA(CLOSE,21);
B1:=EMA(0.668*REF(AAA1,1)+0.333*AAA1,1);
X1:=VOL/SUM(VOL,13);
X2:=DMA(CLOSE,X1);
X3:=(CLOSE-X2)/X2*40;
L2:=MA(AMOUNT/(100*VOL),13);
CYS13:=(CLOSE-L2)/L2*100;
XDFHTH:=REF(AAA1,1)<=REF(B1,1);
点火:=CYS13>4.5 AND CLOSE>=EMA(CLOSE,5) AND AAA1-B1>0;
VOLL:=VOL/REF(VOL,1)>=0.25;
短银点火抢:(REF(CLOSE,1)<=压力线) AND (CLOSE>=压力线) AND 过滤 AND ENTERLONG1 AND 点火 AND VOLL,COLORGREEN;
选股
短银盘中强火
去停牌:=DYNAINFO(13)>0;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
{DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);}
A1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
A2:=K>D;
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>BBI;
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>MMM;
涨买入:=(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;
上涨:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;
HM:=MA(HIGH,30)*(1+15/100);
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,60);
AAA:=(C>M1)AND(M1>M2)AND(M2>M3);
{AND(M1/M4<1.35)AND(M1>REF(M1,1))AND(M2>REF(M2,1))AND(M3>REF(M3,1))}
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1 := EMA(DIFF1,9);
MACD1 := 2*(DIFF1-DEA1);
MACDH:=CROSS(MACD1,0);
DIFF22:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA22:=EMA(DIFF22,9);
JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD := EMA(SK,3);
SP := EMA(SK,10);
AAA1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF
(AAA1,1)+0.333*AAA1),1);
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
XDFHTH:=REF(AAA1,1)<=REF(B1,1) ;
点火:=CYS13>4.5 AND DIFF22>DEA22 AND C>=EMA(C,5) AND AAA1-B1>0;
MA5:=MA(C,5);
压力:=HHV(MA5,60);
小牛涨大:=O>REF(C,1)*1.02 AND C>O AND C>=压力 AND 压力>=REF(C,1) AND MA5>REF(MA5,1) AND 去停牌 ;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
大胆搏:=FILTER((VAR4AA>90),45);{,(LOW)*(0.93),'←---大胆搏 '),COLORYELLOW;};
最强火:=CROSS(MACD1,0) AND AAA AND 涨买入 AND C>=HM ;
强火3:(大胆搏 AND 点火 AND 涨买入) OR (大胆搏 AND 点火 AND 小牛涨大) AND AAA;
早盘点火预警
去停牌:=DYNAINFO(13)>0;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
A1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
A2:=K>D;
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>BBI;
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>MMM;
涨买入:=(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;
上涨:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;
HM:=MA(HIGH,30)*(1+15/100);
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,60);
AAA:=(C>M1)AND(M1>M2)AND(M2>M3);
{AND(M1/M4<1.35)AND(M1>REF(M1,1))AND(M2>REF(M2,1))AND(M3>REF(M3,1))}
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1 := EMA(DIFF1,9);
MACD1 := 2*(DIFF1-DEA1);
MACDH:=CROSS(MACD1,0);
DIFF22:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA22:=EMA(DIFF22,9);
JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD := EMA(SK,3);
SP := EMA(SK,10);
AAA1:=EMA(C,7)-EMA(C,21);
B1:=EMA((0.668*REF
(AAA1,1)+0.333*AAA1),1);
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
XDFHTH:=REF(AAA1,1)<=REF(B1,1) ;
点火:=CYS13>4.5 AND DIFF22>DEA22 AND C>=EMA(C,5) AND AAA1-B1>0;
MA5:=MA(C,5);
压力:=HHV(MA5,60);
小牛涨大:=O>REF(C,1)*1.02 AND C>O AND C>=压力 AND 压力>=REF(C,1) AND MA5>REF(MA5,1) AND 去停牌 ;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
大胆搏:=FILTER((VAR4AA>90),45);{,(LOW)*(0.93),'←---大胆搏 '),COLORYELLOW;};
强火2:小牛涨大 AND MACDH AND 涨买入;
最佳点火优化
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
A1:=DIFF>DEA;
{MACD金叉:IF(A1,1,0),COLORRED;}
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
A2:=K>D;
{KDJ金叉:IF(A2,2,0),COLORRED;}
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;
{RSI金叉:IF(A3,3,0),COLORRED;}
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;
{LWR金叉:IF(A4,4,0),COLORRED;}
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
A5:=CLOSE>BBI;
{BBI金叉:IF(A5,5,0),COLORRED;}
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>MMM;
{MTM金叉:IF(A6,6,0),COLORRED;}
涨买入:=(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;
上涨:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;
HM:=MA(HIGH,30)*(1+15/100);
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,60);
AAA:=(C>M1)AND(M1>M2)AND(M2>M3) AND (M1/M4<1.45);
{AND(M1>REF(M1,1))AND(M2>REF(M2,1))AND(M3>REF(M3,1))}
DIFF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1 := EMA(DIFF1,9);
MACD1 := 2*(DIFF1-DEA1);
ENTERLONG:CROSS(MACD1,0) AND AAA AND 涨买入 AND C>=HM ;