MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); AA:=CROSS(MA1,MA2); AAA:=COUNT(AA,3)>=1; T1:=MA(VOL,5); T2:=MA(VOL,10); BB:=CROSS(T1,T2); BBB:=COUNT(BB,3)>=1; DIF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; CC:=CROSS(DIF,DEA); CCC:=COUNT(CC,3)>=1; 三金:=AAA AND BBB AND CCC; 三金叉:FILTER(三金,3),COLORFF00FF; 三金叉★: IF(AA>0 AND BB>0 AND CC>0,1, 0 ),; DRAWTEXT(三金叉★>0,LOW*-0.5,'★3均'),colorred; |
|