老师您好: 麻烦您用下面的公式写成选股公式。 请求:在金银线多头排列的情况之下,J1金叉J2。 在此感谢! 100,COLORRED; 80,COLORLIRED; RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K0:=SMA(RSV,3,1); K:=K0; D:=SMA(K0,2,1); J1:(3*K0-2*D),COLORWHITE; J2:MA(J1,2),COLORCYAN; MAV:=(2*C+H+L)/4; VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21); VAR3:=LLV(LOW,18); VAR4:=HHV(HIGH,18); 金线:EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,13),COLORRED; 银线:EMA(0.618* REF(金线,1)+0.382*金线,3),COLORYELLOW; 安全线:20,COLORGREEN; 平衡线:50,COLORWHITE; 风险线:80,COLORRED;
爱约股解答:
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K0:=SMA(RSV,3,1);
K:=K0;
D:=SMA(K0,2,1);
J1:=(3*K0-2*D);
J2:=MA(J1,2);
MAV:=(2*C+H+L)/4;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
VAR3:=LLV(LOW,18);
VAR4:=HHV(HIGH,18);
金线:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,13);
银线:=EMA(0.618* REF(金线,1)+0.382*金线,3);
XG:CROSS(J1,J2) AND 金线>REF(金线,1) AND 银线>REF(银线,1)