最近两次死叉 通达信 源码 主图 附图
2015-11-27 11:06:33点击:
M5:=MA(C,5);
M10:=MA(C,10);
T:=BARSLAST(CROSS(M10,M5));
T1:=REF(T,T+1)+T+1;
YX:=BARSLAST(CURRBARSCOUNT=CONST(T)+1);
XY:=BARSLAST(CURRBARSCOUNT=CONST(T1)+1);
STICKLINE(YX>=0,REF(H,YX),REF(H,YX),4,0)COLOR70FFCA;
STICKLINE(XY>=0,REF(H,XY),REF(H,XY),4,0)COLORFFFFFF;
ZF:=(C-REF(C,1))/REF(C,1)*100;
DRAWTEXT(YX,L*0.98,VARCAT(VARCAT('一次死叉涨跌',VAR2STR(ZF,2)),'%'))COLOR70FFCA;
DRAWTEXT(XY,L*0.98,VARCAT(VARCAT('二次死叉涨跌',VAR2STR(ZF,2)),'%'))COLORFFFFFF;
M10:=MA(C,10);
T:=BARSLAST(CROSS(M10,M5));
T1:=REF(T,T+1)+T+1;
YX:=BARSLAST(CURRBARSCOUNT=CONST(T)+1);
XY:=BARSLAST(CURRBARSCOUNT=CONST(T1)+1);
STICKLINE(YX>=0,REF(H,YX),REF(H,YX),4,0)COLOR70FFCA;
STICKLINE(XY>=0,REF(H,XY),REF(H,XY),4,0)COLORFFFFFF;
ZF:=(C-REF(C,1))/REF(C,1)*100;
DRAWTEXT(YX,L*0.98,VARCAT(VARCAT('一次死叉涨跌',VAR2STR(ZF,2)),'%'))COLOR70FFCA;
DRAWTEXT(XY,L*0.98,VARCAT(VARCAT('二次死叉涨跌',VAR2STR(ZF,2)),'%'))COLORFFFFFF;
- 上一篇:地狱寻牛(源码 副图 通达信 贴图) 2015/11/27
- 下一篇:顶底三线--三点定乾坤{通达信、主图、源码、贴图} 2015/11/27