K:=(C+H+L)/3; D:=MA(K,4); 操作:D,colorwhite;//不输出线型 //PARTLINE(操作,操作>REF(操作,1)),COLOR8000FF,LINETHICK3; 拉升:HHV(D,13),colorred,LINETHICK1; 阻力:HHV(D,55),colorcyan; 买卖:LLV(D,8),coloryellow,LINETHICK1; //PARTLINE(买卖,买卖>REF(买卖,1)),COLOR8000FF,LINETHICK0; DRAWTEXT(REF(C,1)>D AND C<D AND D>REF(D,1),H*1.02, '←卖出'),colorgreen; DRAWTEXT(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98, '←明日买'),coloryellow; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); DRAWTEXT(FILTER(买=1,5),LOW*0.98,'拉升'),colorwhite; DP:=IF(C=INDEXC,0,1); GJ:=MONEY/VOL; 明日阻力:L+(GJ-L)+(C-L);//不输出线型 明日支撑:L+(C-GJ);//不输出线型 今日阻力:REF(明日阻力,1);//不输出线型 今日支撑:REF(明日支撑,1);//不输出线型
 |