将玄黄选股.黄金坑千载难逢公式合并成一个选股
2019/12/4 18:25:20
公式编写说明:
玄黄选股VAR1:=HHV(HIGH,55); VAR2:=LLV(LOW,55); 空仓:= SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1)*100,COLORYELLOW,LINETHICK2; 持股:= EMA(HHV(空仓,3),1),COLORRED,LINETHICK2; XG:持股=空仓 AND 持股<20 AND NOT(REF(持股=空仓,1));黄金坑千载难逢RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; 短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; 长线:=SMA(RSV3,5,1); XG:CROSS(短线,长线) AND 长线<18 AND 长线>REF(长线,1) OR CROSS(长线,5);
公式源码示例:
两种合并方法,第一种,两个公式中的两个选股条件,只要符合一个条件就把它选出的
VAR1:=HHV(HIGH,55);
VAR2:=LLV(LOW,55);
空仓:= SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1)*100,COLORYELLOW,LINETHICK2;
持股:= EMA(HHV(空仓,3),1),COLORRED,LINETHICK2;
XG1:=持股=空仓 AND 持股<20 AND NOT(REF(持股=空仓,1));
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1);
XG:=CROSS(短线,长线) AND 长线<18 AND 长线>REF(长线,1) OR CROSS(长线,5);
XG OR XG1;
第二种是两个条件都符合才选出的
VAR1:=HHV(HIGH,55);
VAR2:=LLV(LOW,55);
空仓:= SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1)*100,COLORYELLOW,LINETHICK2;
持股:= EMA(HHV(空仓,3),1),COLORRED,LINETHICK2;
XG1:=持股=空仓 AND 持股<20 AND NOT(REF(持股=空仓,1));
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1);
XG:=CROSS(短线,长线) AND 长线<18 AND 长线>REF(长线,1) OR CROSS(长线,5);
XG AND XG1;
看股吧公 式 www .kanguba.com
其它股票公式列表