通达信黄金十字擒涨停优化源码分时主图

[复制链接]
查看108 | 回复0 | 2021-8-20 19:57:46 | 显示全部楼层 |阅读模式

以下是通达信黄金十字擒涨停优化源码分时主图(无源码的请下载附件导入)

时间:=TIME2=100100;
 N:=BARSLAST(时间);
C1:CONST(IF(N,MAX(REF(HHV(H,0),N+1),DYNAINFO(4)),HHV(H,0))),DOTLINE,COLORRED;
 C2:CONST(IF(N,MIN(REF(LLV(L,0),N+1),DYNAINFO(4)),LLV(L,0))),DOTLINE,COLORGREEN;
 C3:(C1+C2)/2,DOTLINE,COLORYELLOW;
 VV:=HHV(V,0);
 ZF:=(C1/C2-1)*100;
 DRAWTEXT(CURRBARSCOUNT=2,C1,VARCAT(VARCAT(VARCAT(VARCAT('上限:',VAR2STR(C1,2)),'元,'),VARCAT('振幅:',VAR2STR(ZF,2))),'%')),COLORRED;
 DRAWTEXT(CURRBARSCOUNT=2,C3,VARCAT(VARCAT('中限:',VAR2STR(C3,2)),'元')),COLORYELLOW;
 DRAWTEXT(CURRBARSCOUNT=2,C2,VARCAT(VARCAT('下限:',VAR2STR(C2,2)),'元')),COLORGREEN;
 DRAWTEXT(C1/C2<=1.03 AND CROSS(C,C1) AND V>=VV,C1*1.005,'★买入')COLORRED;
 DRAWTEXT(C1/C2<=1.03 AND CROSS(C2,C) AND V>=VV,C2*0.998,'★卖出')COLORGREEN;
 STICKLINE(C1/C2<1.03 AND CROSS(C,C1) AND V>=VV,DYNAINFO(3)*1.03,DYNAINFO(3)*0.97,1,0),COLORRED;

时间:=TIME2=100100;
 N:=BARSLAST(时间);
C1:=CONST(IF(N,MAX(REF(HHV(H,0),N+1),DYNAINFO(4)),HHV(H,0)));
 C2:=CONST(IF(N,MIN(REF(LLV(L,0),N+1),DYNAINFO(4)),LLV(L,0)));
 C3:=(C1+C2)/2;
 VV:=HHV(V,0);
 C1/C2<=1.03 AND CROSS(C,C1) AND V>=VV;

62088389.png

62088389.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则