九毛八公式指标
公式模块:
选股条件一:日线上,进/拉字样同时出现,股价站在5日线之上;
选股条件二:在某股前20个交易日之内(只要是20天之内,如前10天、前19天都可以)的日线,进/拉字样同时出现;
源码如下:
LC:=REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
空头:crOSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),80,'顶');
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
Vard:=BARSCOUNT(CLOSE);
多头:(Varb< 20 AND Varc< 25 AND Vard> 50 AND AR<70 AND vol<VOL[1] AND VOL[1]<VOL[2] AND VOL[2]<VOL[3])*30;
DRAWTEXT(CROSS(RSI1,25),-100,'进');
做多:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
做空:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
DRAWTEXT(CROSS(做多,做空) AND 做多<-10,-60,'拉');
DRAWICON(CROSS(做多,做空) AND 做多<-10 AND 做空>REF(做空,1) OR CROSS(做多,做空) AND 做空<-35 ,-15,2);
DRAWTEXT(CROSS(RSI1,20)AND 做空<-20 AND 多头 ,-60,'进');
SELECT CROSS(RSI1,25) and CROSS(做多,做空) AND 做多<-10;