通达信四档红绿灯指标公式

C15:=C;
A15:=MAX(MA(C15,4),MA(C15,8));
B15:=MIN(MA(C15,4),MA(C15,8));
绿灯行15:C15>A15,COLORGREEN;
红灯停15:C15<B15,COLORRED;
黄灯观望15:A15>=C15 AND C15>=B15,COLORYELLOW ;
STICKLINE(C15>A15,17,20,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C15<B15,17,20,8,0),COLORRED,LINETHICK2;
STICKLINE(A15>=C15 AND C15>=B15,17,20,8,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(C=C AND CURRBARSCOUNT=100,19,'【15日线】'),COLORBLUE;
C30:=C;
A30:=MAX(MA(C30,8),MA(C30,15));
B30:=MIN(MA(C30,8),MA(C30,15));
绿灯行30:C30>A30,COLORGREEN;
红灯停30:C30<B30,COLORRED;
黄灯观望30:A30>=C30 AND C30>=B30,COLORYELLOW ;
STICKLINE(C30>A30,12,15,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C30<B30,12,15,8,0),COLORRED,LINETHICK2;
STICKLINE(A30>=C30 AND C30>=B30,12,15,8,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(C=C AND CURRBARSCOUNT=100,14,'【30日线】'),COLORBLUE;
C60:=C;
A60:=MAX(MA(C60,15),MA(C60,30));
B60:=MIN(MA(C60,15),MA(C60,30));
绿灯行60:C60>A60,COLORGREEN;
红灯停60:C60<B60,COLORRED;
黄灯观望60:A60>=C60 AND C60>=B60,COLORYELLOW ;
STICKLINE(C60>A60,7,10,8,0),COLORGREEN,LINETHICK2; { _通达信股票指标公式}
STICKLINE(C60<B60,7,10,8,0),COLORRED,LINETHICK2;
STICKLINE(A60>=C60 AND C60>=B60,7,10,8,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(C=C AND CURRBARSCOUNT=100,9,'【60日线】'),COLORBLUE;
CC:=C;
A:=MAX(MA(CC,60),MA(CC,120));
B:=MIN(MA(CC,60),MA(CC,120));
绿灯行:C>A,COLORGREEN;
绿灯停:C<B,COLORRED;
黄灯观望:A>=C AND C>=B,COLORYELLOW ;
STICKLINE(C>A,2,5,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,2,5,8,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,2,5,8,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(C=C AND CURRBARSCOUNT=100,4,'【120日线】'),COLORBLUE;




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

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

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

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