通达信公式源码 通达信量价突破公式源码
2015-2-9 9:17:55 股票入门 http://rumen.southmoney.com
南方财富网带来通达信公式源码 通达信量价突破公式源码:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
DPK30:=SMA(((INDEXC-LLV(INDEXL,30))/(HHV(INDEXH,30)-LLV(INDEXL,30))*100),3,1);
K30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
关注区:=IF(K30》DPK30 AND K30》=50,0.5,DRAWNULL);
DRAWBAND(关注区,RGB(80,20,0),0,RGB(0,0,0));
AAJ:=C=HHV(C,30);
BBJ:=BARSLAST(FILTER(CROSS(0.8,AAJ),2))+1;
高点J:=REF(C,BBJ);
价突破:=IF(CROSS(C,REF(高点J,1)),3,0);
STICKLINE(价突破,0,1,1,0),COLOR0000DD;
DRAWTEXT(价突破》0,0.8,‘ 价’),COLOR0000DD;
AA:=V=HHV(V,30);
BB:=BARSLAST(FILTER(CROSS(0.8,AA),2))+1;
高点L:=REF(V,BB);
量突破:=IF(CROSS(V,REF(高点L,1)),2,0);
STICKLINE(量突破,0,0.5,1,0),COLORLIMAGENTA;
DRAWTEXT(量突破》0,0.4, ‘量’),COLORLIMAGENTA;
GD:=MACD=HHV(MACD,30);
GJ:=BARSLAST(FILTER(CROSS(0.8,GD),2))+1;
高点:=REF(MACD,GJ);
方向:IF(MACD》REF(高点,1) AND MACD》0,0.25,0),COLORGREEN;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。