C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {自用选股 N=65,50,100}
- JJ:=(H+L+C)/3;
- QJ0:=VOL/IF(H=L,4,H-L);
- J:="KDJ.J";
- QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(C,O)),QJ0*(MIN(O,C)-L));
- QJ2:=IF(CAPITAL=0,QJ0*(MIN(O,C)-L),QJ0*(JJ-MIN(C,O)));
- QJ3:=QJ0*(H-MAX(O,C));
- QJ4:=QJ0*(MAX(C,O)-JJ);
- QJ5:=QJ1+QJ2;
- QJ6:=QJ3+QJ4;
- AA:=(QJ5-QJ6)/(QJ5+QJ6)*100;
- AAX:=((QJ1+QJ2)-(QJ3+QJ4))/SUM(VOL,10)*100;
- AAZ:=AA*17;
- AAY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;
- XG1:=CROSS(J,0) AND ((AAX>0 AND AAY>0) OR AAZ>400);
- VAR1:=LLV(LOW,13);
- VAR2:=HHV(HIGH,13);
- VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);
- VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);
- VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
- ZL:=VAR3;
- SH:=VAR4;
- CZ:=EMA(VAR5,3);
- XG2:=CROSS(CZ,ZL) AND SH>N;
- XG3:=CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0);
- XG: XG1 AND XG2 AND XG3;