副图公式源码支持 手机/电脑
GUP1:=EVERY(C>MA(C,30),3);
GUP2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30) AND MA(C,30)>MA(C,120);
GUP3:=H>=HHV(C,250);
N:=12;M:=9;
MTR:=EMA(EMA(EMA(CLOSE,N),N),N);
TRIXMTR-REF(MTR,1))/REF(MTR,1)*100;
MT:MA(TRIX,M) ;
金叉:=REF(MT,1)>REF(TRIX,1) AND MT<TRIX AND TRIX<0.5;
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);
双重金叉:=GUP1 AND GUP3 AND GUP2 AND 金叉 AND (开口 OR REF(开口,1));
DRAWICON(双重金叉,MT,1);
DRAWTEXT(双重金叉,MT-0.1,'双金叉'),COLORYELLOW;
选股公式源码
{选股公式:双金叉}
GUP1:=EVERY(C>MA(C,30),3);
GUP2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30) AND MA(C,30)>MA(C,120);
GUP3:=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<TRIX AND TRIX<0.5;
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);
双重金叉:=GUP1 AND GUP3 AND GUP2 AND 金叉 AND (开口 OR REF(开口,1));
双金叉:双重金叉; |