D:=MACD.DIF;
D1:=MACD.DEA;
M:=MACD.MACD;
A:=BARSLASTCOUNT(D>D1 AND MD1 AND M>REF(M,1));
TA:=BARSLAST(A=1);
XG:=REF(H,TA)/H>1.1 AND A1=1 AND EVERY(D>D1,TA+1);
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,2,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
{
选股公式:
D:=MACD.DIF;
D1:=MACD.DEA;
M:=MACD.MACD;
A:=BARSLASTCOUNT(D>D1 AND MD1 AND M>REF(M,1));
TA:=BARSLAST(A=1);
XG:REF(H,TA)/H>1.1 AND A1=1 AND EVERY(D>D1,TA+1);