第一部分 副图公式 手机/电脑
CAIH1:=EVERY(C>MA(C,30),3);
CAIH2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30)? AND MA(C,30)>MA(C,120);
CAIH3:=H>=HHV(C,250);
N:=12;M:=9;
MTR:=EMA(EMA(EMA(CLOSE,N),N),N);
TRIX:(MTR-REF(MTR,1))/REF(MTR,1)*100;
MT:MA(TRIX,M) ;
金叉:=REF(MT,1)>REF(TRIX,1) AND MT
LONG:=26;SHORT:=12;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
开口:=MACD>0 AND DIF>DEA AND DEA>0 AND MACD>REF(MACD,1);
双重金叉:=CAIH1 AND CAIH3 AND CAIH2 AND 金叉 AND (开口 OR REF(开口,1));
DRAWICON(双重金叉,MT,1);
DRAWTEXT(双重金叉,MT-0.1,'双金叉'),COLORYELLOW;
第二部分 选股公式 |