通达信年季月周日同图源码附图

通达信公式 年季月周日同图

MNC:=C#YEAR,NODRAW;
MNO:=O#YEAR,NODRAW;
MNH:=H#YEAR,NODRAW;
MNL:=L#YEAR,NODRAW;
STICKLINE(MNC>=MNO,MNH,MNL,5,0),COLOR34567F,;
STICKLINE(MNC<MNO,MNH,MNL,5,0),COLORLICYAN,;
MJC:=C#SEASON,NODRAW;
MJO:=O#SEASON,NODRAW;
MJH:=H#SEASON,NODRAW;
MJL:=L#SEASON,NODRAW;
STICKLINE(MJC>=MJO,MJH,MJL,5,0),COLORD66998;
STICKLINE(MJC<MJO,MJH,MJL,5,0),COLORGRAY;
JGT:=(O#SEASON<REF(O#SEASON,1))OR(O#SEASON>REF(O#SEASON,1))OR(H#SEASON>REF(H#SEASON,1));
T0:=BARSLAST(JGT);
季高:HHV(H,T0+1),NODRAW;
季低:LLV(L,T0+1),NODRAW;
季开:O#SEASON,COLORMAGENTA,NODRAW;
季收:C#SEASON,NODRAW;
季中:=(季高+季低)/2,COLORYELLOW,NODRAW;
上季中:REF(季中,T0+1)COLORYELLOW,NODRAW;
月开:O#MONTH,COLORLIGREEN,NODRAW;
月高:=H#MONTH,NODRAW;
月低:=L#MONTH,NODRAW;
月收:=C#MONTH,NODRAW;
月开日:=BARSLAST(MONTH-REF(MONTH,1)=1)NODRAW;
月中:=(月高+月低)/2,POINTDOT,COLORWHITE,;
上月高:REF(月高,月开日+1)COLORWHITE,NODRAW;
上2月高:REF(上月高,月开日+1)COLORWHITE,NODRAW;
上月中:REF(月中,月开日+1)COLORYELLOW,NODRAW;
月中间:=(月高+月低)/2,POINTDOT,COLORWHITE,NODRAW;
STICKLINE(月开,月开,月开,4,0),COLORWHITE;
ZGT:=(H#WEEK<REF(H#WEEK,1)) OR (H#WEEK>REF(H#WEEK,1));
周开日:=BARSLAST(ZGT);
周开:O#WEEK,COLORWHITE,NODRAW;
周高:=H#WEEK,NODRAW;
周低:=L#WEEK,NODRAW;
周收:=C#WEEK, COLORFF6EC7,NODRAW;
上周高:REF(周高,周开日+1)COLORCYAN,NODRAW;
上2周高:REF(上周高,周开日+1)COLORCYAN,NODRAW;




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

通达信公式 年季月周日同图

MNC赋值:C#YEAR,NODRAW
MNO赋值:O#YEAR,NODRAW
MNH赋值:H#YEAR,NODRAW
MNL赋值:L#YEAR,NODRAW
当满足条件MNC>=MNO时,在MNH和MNL之间画柱状线
当满足条件MNC MJC赋值:C#SEASON,NODRAW
MJO赋值:O#SEASON,NODRAW
MJH赋值:H#SEASON,NODRAW
MJL赋值:L#SEASON,NODRAW
当满足条件MJC>=MJO时,在MJH和MJL之间画柱状线
当满足条件MJC JGT赋值:(O#SEASON<1日前的O#SEASON)OR(O#SEASON>1日前的O#SEASON)OR(H#SEASON>1日前的H#SEASON)
T0赋值:上次JGT距今天数
输出季高:T0+1日内H最高值,NODRAW
输出季低:T0+1日内L最低值,NODRAW
输出季开:O#SEASON,画洋红色,NODRAW
输出季收:C#SEASON,NODRAW
季中赋值:(季高+季低)/2,画黄色,NODRAW
上输出季中:T0+1日前的季中画黄色,NODRAW
输出月开:O#MONTH,COLORLIGREEN,NODRAW
月高赋值:H#MONTH,NODRAW
月低赋值:L#MONTH,NODRAW
月收赋值:C#MONTH,NODRAW
月开日:=上次MONTH-1日前的MONTH=1距今天数NODRAW
月中赋值:(月高+月低)/2,POINTDOT,画白色,
上输出月高:月开日+1日前的月高画白色,NODRAW
上2输出月高:月开日+1日前的上月高画白色,NODRAW
上输出月中:月开日+1日前的月中画黄色,NODRAW
月中间:=(月高+月低)/2,POINTDOT,画白色,NODRAW
当满足条件月开时,在月开和月开之间画柱状线
ZGT赋值:(H#WEEK<1日前的H#WEEK) OR (H#WEEK>1日前的H#WEEK)
周开日赋值:上次ZGT距今天数
输出周开:O#WEEK,画白色,NODRAW
周高赋值:H#WEEK,NODRAW
周低赋值:L#WEEK,NODRAW
周收赋值:C#WEEK, COLORFF6EC7,NODRAW
上输出周高:周开日+1日前的周高画青色,NODRAW
上2输出周高:周开日+1日前的上周高画青色,NODRAW


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

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