通达信彩灯指路指标公式

{1-macd30分线}
DIF30:=(EMA(CLOSE,12/4)-EMA(CLOSE,26/4));
DEA30:=(EMA(DIF30,9/4));
彩灯指路:DIF30,NODRAW,COLORYELLOW;
STICKLINE(IF(DIF30>=DEA30,10.5,DRAWNULL),10.5,13,5,0),COLORMAGENTA;
STICKLINE(IF(DIF30<DEA30,10.5,DRAWNULL),10.5,13,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,13.2,'★M30F'),COLORMAGENTA;
{2-MacD60分线}
DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA60:=EMA(DIF60,9/2);
STICKLINE(IF(DIF60>=DEA60,7.6,DRAWNULL),7.6,10.1,5,0),COLORYELLOW;
STICKLINE(IF(DIF60<DEA60,7.6,DRAWNULL),7.6,10.1,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,10.3,'★M60F'),COLORYELLOW;
{3-MACD日线}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
STICKLINE(IF(DIF>=DEA,4.7.2,DRAWNULL),4.7,7.2,5,0),COLORRED;
STICKLINE(IF(DIF<DEA,4.7.2,DRAWNULL),4.7,7.2,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,7.2,'★M日线'),COLORRED;
{4-kdj日线}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(IF(J>=K,1.6,DRAWNULL),1.6,4.3,5,0),COLORBLUE;
STICKLINE(IF(J<K,1.6,DRAWNULL),1.6,4.3,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,4.3,'★K日线'),COLORLIBLUE;
{5-MACD周线}
周MD:=MACD.DIF#WEEK;
周MA:=MACD.DEA#WEEK;
STICKLINE(IF(周MD>=周MA,-1.3,DRAWNULL),-1.3,1.2,5,0),COLORBROWN;
STICKLINE(IF(周MD<周MA,-1.3,DRAWNULL),-1.3,1.2,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,1.2,'★M周线'),COLORBROWN;
{6-kdJ周线}
周K:="KDJ.K#WEEK" ;
周D:="KDJ.D#WEEK" ;
STICKLINE(IF(周K>=周D,-4.2,DRAWNULL),-4.2,-1.7,5,0),COLORLIMAGENTA;
STICKLINE(IF(周K<周D,-4.2,DRAWNULL),-4.2,-1.7,5,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,-1.7,'★K周线'),COLORLIMAGENTA;




未来函数检测结果如下:
该公式包含未来函数:#WEEK
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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