网友求助:

条件:在主图上出现黄点买入时选股谢谢

源码
掘金1:EMA(C,3),COLORWHITE;
掘金2:EMA(C,5),COLORYELLOW;
掘金3:EMA(C,7),COLORBROWN;
掘金4:EMA(C,12),COLORGREEN;
掘金5:EMA(C,20),COLORRED;
掘金6:EMA(C,50),DOTLINE,LINETHICK2;
SS:=CROSS(掘金1,掘金2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金1,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金1,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金3,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(掘金1,掘金5);
DRAWICON(SS,L-0.04,5);
 

 

 

解答如下:

掘金1:=EMA(C,3);
掘金2:=EMA(C,5);
掘金3:=EMA(C,7);
掘金4:=EMA(C,12);
掘金5:=EMA(C,20);
掘金6:=EMA(C,50);
SS:CROSS(掘金1,掘金2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金1,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金1,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金3,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(掘金2,掘金4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(掘金1,掘金5);