做KD共振指标白绿线同时上穿红黄线的预警公式
2020/2/19 18:36:13
公式编写说明:
“上穿预警【选股】公式”: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 AND K21<20 AND D21<20 AND K34<20 AND D34<20 AND K55<20 AND 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));
看股吧公 式 ww w.kanguba.com
其它股票公式列表