通达信突破监控指标公式

DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
macd2:=(2 * (DIFF - DEA));
VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
obv:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MaoBV:=MA(OBV,20);
MacG:=(C>MA(C,5));
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
kdj:=3*K-2*D;
预操作:((CLOSE>SAR(4,2,20)),0,2,8,0),COLORYELLOW;
操作区:((MACD2>0)AND(MACG)AND((CLOSE>sar(4,2,20)))),COLORGREEN;
休息区:(MACD2<0)OR(CLOSE<SAR(4,2,20))OR(-MACG),COLORRED;
主行情:(CCI>100),COLORMAGENTA;
{拉升行情:((MACD2>0)AND(DIFF>0)),COLORYELLOW;}
{小心回调:((kdJ>=100)AND(CCI>=220)),COLORYELLOW;}
STICKLINE((MACD2<0),0,2,8,0),COLORRED,LINETHICK2;
STICKLINE((CLOSE<SAR(4,2,20))OR(-MACG),0,2,8,0),COLORRED,LINETHICK2;
STICKLINE(((CLOSE>SAR(4,2,20))),0,2,8,0),COLORYELLOW,LINETHICK2;
STICKLINE(((MACD2>0)AND(MACG)AND((CLOSE>SAR(4,2,20)))),0,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE((CCI>100)AND((CLOSE>SAR(4,2,20))),0,2,8,0),COLORMAGENTA,LINETHICK2;
{STICKLINE((OBV<REF(OBV,1))AND(MACD2<0),0,2,8,0),COLORRED,LINETHICK2;}
{STICKLINE(((MACD2>0) AND (DIFF>0)),0,2,8,0),COLORGREEN,LINETHICK2;}
{STICKLINE(((MACD2>0) ),0,2,8,0),COLORGREEN,LINETHICK2;}
{STICKLINE(MACD2<0,0,2,8,0),COLORRED,LINETHICK2;
STICKLINE(CLOSE>SAR(4,2,20),0,2,8,0),COLORGREEN,LINETHICK2;}
{持仓:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),CLOSE),CIRCLEDOT,COLOR9955FF;
空仓:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),CLOSE),CIRCLEDOT,COLORddfF00;
CLOSE,CIRCLEDOT,COLOR8877FF;}
{IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;}
{STICKLINE(CLOSE>OPEN,LOW,HIGH,0,1),COLORRED;
STICKLINE(CLOSE<=OPEN,LOW,HIGH ,0,1),COLORCYAN;};




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图