以下是通达信较理想的买点附图指标副图源码(无源码的请下载附件导入)
SPJ:=REF(CLOSE,1); ZXZ:=SMA(MAX(CLOSE-SPJ,0),5,1)/SMA(ABS(CLOSE-SPJ),5,1)*100; Y:=DRAWLINE(ZXZ>=HHV(ZXZ,5),ZXZ,ZXZ<=LLV(ZXZ,5),ZXZ,1); JX5:=ZXZ=Y; JX10:=ZXZ<REF(ZXZ,1); 买点:STICKLINE(JX5 AND JX10,0,2,1,0),COLORRED; DRAWTEXT(买点,0.5,'买点'),COLORRED;
205166593.jpg
|