副图源码:
停牌:=(DYNAINFO(4)=0);
条件:=NOT(停牌) AND CAPITAL<99000000;
攻击:=(("CCI.CCI#WEEK")/10)+40;
涨二十:=((C/REF(C,20))-1)*100;
二十功:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),((攻击/REF(攻击,16))-1)*100,0);
二十涨:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),涨二十,0);
涨十:=((C/REF(C,10))-1)*100;
十涨:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),涨十,0);
中能:=(二十功-二十涨)+30;
五日:=REF(C,5);
涨幅:=((C/五日)-1)*100;
五日攻:=((攻击/REF(攻击,1))-1)*100;
五功:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),五日攻,0);
短能:=(二十功-二十涨)+30;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
二次金叉1:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(低位金叉,21)=2;
TJ2:=低位金叉 OR 二次金叉1;
长能:=(二十功-二十涨)+30;
BJ:=HHV(HIGH,5)/C;
JL:=LLV(L,5)/C;
{www.fxjgsw.com}
HA:=(HHV(HIGH,5)+LLV(LOW,5))/2/C;
RN:=(LLV(LOW,5)*HHV(HIGH,5))/C/C;
TJ1:=(二十功-二十涨)+30;
急跌:=RN>=1.2;
到位:=CROSS(1.2,RN);
回踩:=CROSS(1.1,RN);
XG1:=急跌 OR 到位 OR 回踩;
TJ3:=TJ2 OR XG1;
XG:TJ3 AND COUNT(TJ1>80,72)>=1 AND 条件;
选股公式:
停牌:=(DYNAINFO(4)=0);
条件:=NOT(停牌) AND CAPITAL<99000000;
攻击:=(("CCI.CCI#WEEK")/10)+40;
涨二十:=((C/REF(C,20))-1)*100;
二十功:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),((攻击/REF(攻击,16))-1)*100,0);
二十涨:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),涨二十,0);
涨十:=((C/REF(C,10))-1)*100;
十涨:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),涨十,0);
中能:=(二十功-二十涨)+30;
五日:=REF(C,5);
涨幅:=((C/五日)-1)*100;
五日攻:=((攻击/REF(攻击,1))-1)*100;
五功:=IF(攻击<REF(攻击,1)OR 攻击>REF(攻击,1),五日攻,0);
短能:=(二十功-二十涨)+30;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
二次金叉1:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(低位金叉,21)=2;
TJ2:=低位金叉 OR 二次金叉1;
长能:=(二十功-二十涨)+30;
BJ:=HHV(HIGH,5)/C;
JL:=LLV(L,5)/C;{www.fxjgsw.com}
HA:=(HHV(HIGH,5)+LLV(LOW,5))/2/C;
RN:=(LLV(LOW,5)*HHV(HIGH,5))/C/C;
TJ1:=(二十功-二十涨)+30;
急跌:=RN>=1.2;
到位:=CROSS(1.2,RN);
回踩:=CROSS(1.1,RN);
XG1:=急跌 OR 到位 OR 回踩;
TJ3:=TJ2 OR XG1;
XG:TJ3 AND COUNT(TJ1>80,72)>=1 AND 条件;
|