通达信【时间玄学】主图指标 海边技术 时间周期 源码分享 附图
DRAWTEXT(YEAR<>REF(YEAR,1),H*1.04,VAR2STR(YEAR,0)),COLORRED;
DRAWTEXT(MONTH<>REF(MONTH,1),H,VAR2STR(MONTH,0)),COLORYELLOW;
DRAWTEXT(DAY<>REF(DAY,1),L,VAR2STR(DAY,0)),COLORLIBLUE;
DRAWTEXT(WEEKDAY<>REF(WEEKDAY,1),L*0.995,VAR2STR(WEEKDAY,0)),COLORGREEN;
STICKLINE(MOD(DAY,5)=0,C,O,1,0),COLORYELLOW;
{STICKLINE(MOD(DAY,2)=0,C*0.99,O*1.01,2,0),COLORRED;};
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
DRAWTEXT(YEAR<>1日前的YEAR,H*1.04,VAR2STR(YEAR,0)),画红色
DRAWTEXT(MONTH<>1日前的MONTH,H,VAR2STR(MONTH,0)),画黄色
DRAWTEXT(DAY<>1日前的DAY,L,VAR2STR(DAY,0)),COLORLIBLUE
DRAWTEXT(WEEKDAY<>1日前的WEEKDAY,L*0.995,VAR2STR(WEEKDAY,0)),画绿色
STICKLINE(MOD(DAY,5)=0,C,O,1,0),画黄色
{STICKLINE(MOD(DAY,2)=0,C*0.99,O*1.01,2,0),画红色
}