九毛八公式指标
“上穿预警【选股】公式”: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: K13<20 and d13<20 k21<20 d21<20 k34<20 d34<20 k55<20 d55<20; tobu:k13>80 AND D13>80 AND K21>80 AND D21>80 AND K34>80 AND D34>80 AND K55>80 AND D55>80; {指标白色和绿色线在25以下上穿红色和黄色线} {下穿公式"一:指标线白色和绿色线60以上下穿红色和黄色线。}; T1:=K13<25; T2:=K21<25; T3:=K13>60; T4:=K21>60; 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));
20>