大赚小赔选股:
VAR1:=3;
VAR2:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1)));
大赚小赔:CROSS(VAR2,VAR1) AND VR.VR<95 AND ADTM.ADTM<0 AND BRAR.BR<90
AND 绝佳买点.绝佳买点>15 AND 持币持股.短底 AND FINANCE(33)>0;
其中用到两个公式分别如下:
1、绝佳买点
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
绝佳买点:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,COLORRED;
2、持币持股
VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
DRAWICON(VAR1<-9 AND VAR1> REF(VAR1,1),3,7);
买入:VAR1<-9 AND VAR1> REF(VAR1,1),COLORRED;
STICKLINE(VAR1>20 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+5,0,7,1),COLOR00FF00;
大顶:VAR1>20 AND FILTER(VAR1< REF(VAR1,1),5),COLOR00FF00;
STICKLINE(VAR1>9 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+2,0,3,1),COLORGREEN;
短顶:VAR1>9 AND FILTER(VAR1< REF(VAR1,1),5),COLORGREEN;
VAR2:=HHV(VAR1>20,10);
STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1,0,7,0),COLORBLUE;
危险:VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),COLORBLUE;
STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1,0,7,0);
注意止损:VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2));
STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,1),COLORYELLOW;
大底:VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),7),COLORYELLOW;
STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,1),COLORFF00FF;
短底:VAR1<-9 AND VAR1> REF(VAR1,1),COLORFF00FF;
持币区域:VAR1,COLORFEDCBA;
持股区域:IF(VAR1>0,VAR1,0),COLORRED;
由于很多人不会用,现补充如下:先建立两个选股指标《绝佳买点》和《持币持股》,然后在建立选股指标《大赚小赔》就可以了,因为大赚小赔有调用绝佳买点和持币持股两个指标。
声明:上述指标公式都是论坛里面前辈们给出的,我只是做了个综合,提高选股的成功率。调试了一个周末,感觉不错!希望大家多顶顶!!尊重别人的劳动成果是一种美德!
|