.
指标源码:
S1:=(HIGH+LOW+CLOSE*2)/4;
K3:=EMA(S1,10); K4:=STD(S1,10); K5:=(S1-K3)*100/K4; K6:=EMA(K5,5); K7:=EMA(K6,10); 涨:EMA(K6,10)+100/2-5,COLORRED; 跌:EMA(涨,4),COLORWHITE; 日出:IF(CROSS(涨,跌) AND 跌<-10,20,0),COLORCCCCFF; 雨季将来:IF(CROSS(跌,80),80,100),COLORFF3798; 彩1:EMA(跌,4),COLORFFFF50; 彩2:EMA(彩1,4); 彩3:=EMA(彩2,4),COLORYELLOW; 彩4:=EMA(彩3,4),COLORCC9900; STICKLINE(涨<REF(涨,1),涨,MA(涨,3),5,0 ),COLOR00BB00; STICKLINE(涨<REF(涨,1),涨,MA(涨,3),4,0 ),COLOR00CC00; STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF; STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF; STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF; DRAWICON(日出>0,20,3); DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'日出'),COLORFFFFFF; DRAWTEXT(日出>0,-20,'日出'),COLORCCCCFF; R11:=SUMBARS(VOL,FINANCE(7)*100); R22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL); R3:=(CLOSE-R22)/R22*100; R4:=HHV(R3,R11); R5:=LLV(R3,R11); R6:=(R3-R5)/(R4-R5)*100; K:=SMA(R6,3,1); D:=SMA(K,3,1); J:=3*K-2*D; MA1:=MA(J,3),COLORGREEN; STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,6,0); DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'注意'),COLORRED;
选股源码:
S1:=(HIGH+LOW+CLOSE*2)/4; K3:=EMA(S1,10); K4:=STD(S1,10); K5:=(S1-K3)*100/K4; K6:=EMA(K5,5); K7:=EMA(K6,10); 涨:=EMA(K6,10)+100/2-5,COLORRED; 跌:=EMA(涨,4),COLORWHITE; 日出:IF(CROSS(涨,跌) AND 跌<-10,20,0),COLORCCCCFF;
|