金拐杖选股指标(通达信和大智慧通用)
白金主图和金拐杖副图,本人对主副图合并做了一个选股公式,大智慧和通达信通用。
选股条件如下:
1、股价大于白线;
2、3天内出现过拐、杖(涨);
3、出现黄金柱这条未考虑(为不同软件通用);
4、做多资金大于活筹并大于50;
公式源码
VAR2:=CLOSE*VOL;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)
+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
白线:=1.06*VAR3;
XG1:=C
D:=72;
VAR1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
VARK2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;
做多资金:=SMA(VARK2,8,1)-2;
VARK3:=100-3*SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
VAR4:=100-3*SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,D))/(HHV(HIGH,D)-LLV(LOW,D))*100,20,1),15,1);
活筹OAMV:=VARK3;
XG2:=做多资金 活筹OAMV AND 做多资金
VAR5:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;
做空资金:=SMA(VAR5,6,1)-7;
周D:= KDJ.D (27,3,3);
角度:=ATAN((MA(周D,10)/REF(MA(周D,10),1)-1)*100)*180/3.1416;
拐点:=CROSS(角度,做空资金);
XG3:=COUNT(拐点,3);
VAR24:=EMA(AMOUNT/VOL/100,5);
VAR25:=EMA(AMOUNT/VOL/100,13);
VAR26:=VAR24-VAR25;
势能:=IF(1000*VAR26/VAR24 0,1000*VAR26/VAR24,0);
涨在即:=CROSS(势能,活筹OAMV);
XG4:=COUNT(涨在即,3);
ZHXG:XG1 AND XG2 AND XG3 AND XG4;