做KD共振指标白色和绿色下穿或上穿的选股
2020/2/20 17:57:35
公式编写说明:
"下穿公式"一:指标线白色和绿色线60以上下穿红色和黄色线。思路:副图指标白色和绿色线高位【比如60以上】同时下穿红色和黄色线,下穿即卖出提示。“上穿公式”二:指标白色和绿色线在25以下上穿红色和黄色线。思路:同上,上穿即买入提示。源码【感谢源码作者】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;感谢千钧老师批评指导,谢谢!!
公式源码示例:
买入提示选股
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;
{指标白色和绿色线在25以下上穿红色和黄色线}
{下穿公式"一:指标线白色和绿色线60以上下穿红色和黄色线。};
T1:=K13<25;
T2:=K21<25;
T3:=K13>60;
T4:=K21>60;
(CROSS(T1&&T2,K55))AND(CROSS(T1&&T2,K34));
卖出提示选股
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;
{指标白色和绿色线在25以下上穿红色和黄色线}
{下穿公式"一:指标线白色和绿色线60以上下穿红色和黄色线。};
T1:=K13<25;
T2:=K21<25;
T3:=K13>60;
T4:=K21>60;
(CROSS(K55,T3&&T4))AND(CROSS(K34,T3&&T4));
看股吧公 式 www .kanguba.com
其它股票公式列表