“上穿预警【选股】公式”:1、指标白色和绿色线在25以下上穿红色和黄色线。思路:副图指标白色和绿色线低位【比如25以下】同时上穿红色和黄色线。 2、主要是想做个预警【选股】公式。要求“同时上穿”为必须满足项。 源码【感谢梦的海洋10老师的改动】 VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K13:SMA(VAR13,3,1), COLORWHITE; D13:=SMA(K13,3,1), COLORWHITE; VAR21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; K21:SMA(VAR21,3,1), COLORGREEN; D21:=SMA(K21,3,1), COLORGREEN; VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; K34:SMA(VAR34,3,1), COLORYELLOW; D34:=SMA(K34,3,1), COLORYELLOW; VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K55:SMA(VAR55,3,1),COLORRED; D55:=SMA(K55,3,1),COLORRED; DIBU: K1380; {指标白色和绿色线在25以下上穿红色和黄色线} {下穿公式"一:指标线白色和绿色线60以上下穿红色和黄色线。}; T1:=K1360; DRAWICON(CROSS(K13,K55),K34,1); DRAWICON(CROSS(K13,K34),K34,1); DRAWICON(CROSS(K55,K13),K34,2); DRAWICON(CROSS(K34,K13),K34,2);
爱约股解答:
VAR13:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K13:=SMA(VAR13,3,1);
VAR21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K21:=SMA(VAR21,3,1);
VAR34:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K34:=SMA(VAR34,3,1);
VAR55:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K55:=SMA(VAR55,3,1);
XG:(K13<25 AND K55<25 AND K34<25 AND CROSS(K13,K55) AND CROSS(K13,K34))
OR (K21<25 AND K55<25 AND K34<25 AND CROSS(K21,K55) AND CROSS(K21,K34));