将<主力><均线><先知><十线>合为一个选股
2019/12/3 18:08:04
公式编写说明:
请老师将<主力><均线><先知><十线>这四个选股公式组合为一个选股公式主力VAR1:=(CLOSE+LOW+HIGH)/3; VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0); VAR3:=EMA(VAR2,1); JCS:=VAR3; JCM:=MA(VAR3,12); JCL:=MA(VAR3,26);A1:=REF(JCS,2)>REF(JCS,1);A2:=JCS>JCM AND JCM>JCL;A3:=BETWEEN(JCS/JCM,1.006,1.001) AND NDAY(JCS,JCM,3);XG:A1 AND A2 AND A3;均线MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA60:=MA(C,60);AA:=MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60;CC:=L<MA5 AND C>MA30;AA AND CC AND ABS(O-C)/C<0.012 AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);先知:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;DK1:=K1-REF(K1,1);先知价位:= (HIGH + LOW + CLOSE)/3;均价:=(HIGH+LOW+CLOSE*2)/4;讲价:=EMA(均价,8); 讨价:=STD(均价,8); 卖价:=(均价-讲价)/讨价*100;买价:=EMA(卖价,7);CCI:=(价位-MA(价位,8))/(0.015*AVEDEV(价位,8)),LINETHICK1,COLORWHITE;A1:=REF(CCI,2)>REF(CCI,1) AND REF(CCI,1)<CCI;先知>REF(先知,1) OR DK1>REF(DK1,1) OR A1;十线全红QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));HSL:=(XVL/20)/1.15;攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击,3);B1:=SUM(LLJX,1);XG:B1>REF(B1,1) AND REF(B1,2)>REF(B1,1);
公式源码示例:
VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=SUM(((VAR1-REF(LOW,1))-(HIGH-VAR1))*VOL/100000/(HIGH-LOW),0);
VAR3:=EMA(VAR2,1);
JCS:=VAR3;
JCM:=MA(VAR3,12);
JCL:=MA(VAR3,26);
A1:=REF(JCS,2)>REF(JCS,1);
A2:=JCS>JCM AND JCM>JCL;
A3:=BETWEEN(JCS/JCM,1.006,1.001) AND NDAY(JCS,JCM,3);
XG1:=A1 AND A2 AND A3;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
AA:=MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60;
CC:=L<MA5 AND C>MA30;
XG2:=AA AND CC AND ABS(O-C)/C<0.012
AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV9,3,1);
先知:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
DK1:=K1-REF(K1,1);
价位:= (HIGH + LOW + CLOSE)/3;
均价:=(HIGH+LOW+CLOSE*2)/4;
讲价:=EMA(均价,8);
讨价:=STD(均价,8);
卖价:=(均价-讲价)/讨价*100;
买价:=EMA(卖价,7);
CCI:=(价位-MA(价位,8))/(0.015*AVEDEV(价位,8)),LINETHICK1,COLORWHITE;
AX1:=REF(CCI,2)>REF(CCI,1) AND REF(CCI,1)<CCI;
XG3:=先知>REF(先知,1) OR DK1>REF(DK1,1) OR AX1;
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);
B1:=SUM(LLJX,1);
XG4:=B1>REF(B1,1) AND REF(B1,2)>REF(B1,1);
XG:XG1 AND XG2 AND XG3 AND XG4;
看 股吧公式 www. kanguba.com
其它股票公式列表