通达信五星上将副图源码

[复制链接]
查看59 | 回复0 | 2021-8-19 18:17:53 | 显示全部楼层 |阅读模式

以下是通达信五星上将副图源码(无源码的请下载附件导入)

C5:=EMA(C,5);
C10:=EMA(C,10);
C30:=EMA(C,30);  
D1:=2*(C5-C10);D2:=2*(C5-C30);D3:=200*(D1+D2);
LL:=V/1000;

将军:D3;
A1:=MA(LL,5);
A2:=MA(LL,10);
A3:=MA(LL,120);
A4:=MA(LL,250);


DRAWTEXT( D3>0,20 ,'★' ),COLORRED;
DRAWTEXT( A1>A3,40,'★' ),COLORFF00FF;
DRAWTEXT(A1>A3 AND A2>A3,60 ,'★' ),COLOR33CC00;
DRAWTEXT( A1>A2 AND A2>A3 AND A3>A4,80 ,'★' ),COLORYELLOW;
DRAWTEXT( D3>100,100 ,'★' ),COLORWHITE;DRAWTEXT(FILTER(D3>0 AND D3<100 AND A1>A2 AND A1>A3 AND A2>A3 AND A3>A4,13) ,120 ,'四星上将' ),COLORFF00FF;
DRAWTEXT( FILTER(D3>100 AND A1>A2 AND A2>A3 AND A3>A4,13),180 ,'五星上将' ),COLORRED;
100;200;

 

 

716133615.jpg

716133615.jpg

回复

使用道具 举报

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

本版积分规则