交易系统5款选股公式

    {★首红买【选股公式】}

{通用型参数设置: SHORT 2 200 12 LONG 2 200 26 MID 2 200 9}

{布林多空【副图指标】42 布林带 参数: N:2 100 11, M:2 100 6}

AMV0:=VOL*(O+C+H+L)/4;

势:=EMA(AMV0,21)/EMA(VOL,21);

多1:=CROSS(C,势);

AAA:=(MA (CLOSE,13)+MA (CLOSE,17))/2;

CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;

BBB:=AAA+2.1*CCC;

DDD:=AAA+0.72*CCC;

ZZZ:=IF(CCC>1.88 ,MA (DDD,3),DDD);

平衡:=ZZZ*0.986;

多2:=CROSS(C,平衡);

CV:=CLOSE;

BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;

UPR:=BBIBOLL+M*STD(BBIBOLL,N);

DWN:=BBIBOLL-M*STD(BBIBOLL,N);

多3:=CROSS(C,BBIBOLL);

量:=VOL;

洗盘_60:=MA(量,60);

启动_05:=EMA(量,5);

五日平均股价:=MA(C,05);

MA25:=MA(C,25);

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA:=EMA(DIF,MID);

MACD:=(DIF-DEA)/0.5;

首红买股:DRAWTEXT((CROSS(C,五日平均股价)AND REF(MA25,0)>=REF(MA25,1)AND C>BBIBOLL AND DIF>0 AND REF(量,0)>REF(洗盘_60,0)),L,'首红')COLORRED;

    {★马识途【选股公式】}

MA5:=MA(C,5);

压力均线画线:=HHV(HIGH,20);

支撑均线画线:=LLV(LOW,20);

压力均线20:=HHV(LOW,20);

支撑均线20:=LLV(HIGH,20);

标注001:=DRAWICON(FILTERX(CROSS(C,支撑均线20),10),L*0.98,1);

标注002:DRAWICON(标注001 AND CROSS(REF(MA5,0),REF(MA5,1)),L*0.98,1);

    {薛斯通道【选股公式】超跌选股}

LY:=9;

BL:=36;

CJQS:=XMA(CLOSE,LY);{CJQS:=XMA(CLOSE,LY)}

JBQS:=XMA(CLOSE,BL);{JBQS:=XMA(CLOSE,BL)}

N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);

M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);

外上轨:=IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1);

外下轨:=IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9);

内上轨:=IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05);

内下轨:=IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95);

外上通道:=IF(外上轨<REF(外上轨,1),外上轨,DRAWNULL);

外下通道:=IF(外下轨<REF(外下轨,1),外下轨,DRAWNULL);

内上通道:=IF(内上轨<REF(内上轨,1),内上轨,DRAWNULL);

内下通道:=IF(内下轨<REF(内下轨,1),内下轨,DRAWNULL);

顶:=DRAWTEXT(FILTER(EXIST(LONGCROSS(内上轨,外上轨,25),10)AND CROSS(REF(内上轨,1),REF(内上轨,0)),5),REF(内上轨,0)+0.02,'顶');

底:=DRAWTEXT(FILTER(EXIST(LONGCROSS(外下轨,内下轨,25),10)AND CROSS(REF(内下轨,0),REF(内下轨,1)),5),REF(内下轨,0)-0.02,'底');

底部标识:=DRAWICON(CROSS(外下轨,C),外下轨,34);

选股:底;

    {SAR 持仓【选股公式】SAR 翻红}

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL);

标识:=STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0);

流通盘:=CAPITAL*100<=500000000{表示流通盘小于5个亿的个股};

停牌:=DYNAINFO(4)>0;{表示停牌股}

MA17:=MA(C,17);

XG:CROSS(持仓,空仓);

    {布 林 线【选股】参数 N:2 100 11,M:2 100 6.}

CV:=CLOSE;

BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,;

UPR:=BBIBOLL+M*STD(BBIBOLL,N);

DWN:=BBIBOLL-M*STD(BBIBOLL,N);

多:=IF(BBIBOLL>REF(BBIBOLL,1),BBIBOLL,DRAWNULL);

空:=IF(BBIBOLL<REF(BBIBOLL,1),BBIBOLL,DRAWNULL);

关注:=DRAWICON(CROSS(C,BBIBOLL)AND REF(BBIBOLL,0)>=REF(BBIBOLL,1),L-0.2,11);

{SAR指标}

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL);

BS:=STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),;

SAR持仓标识:=DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●');

SAR空仓标识:=DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●');

选股:CROSS(REF(C,0),BBIBOLL)AND CROSS(持仓,空仓);

(0)

相关推荐