悠闲主图(通达信公式 主图 源码 测试图)加密不限时

[复制链接]
查看82 | 回复0 | 2022-6-27 19:01:32 | 显示全部楼层 |阅读模式
 
自用主图,把习惯要用的东西设成参数放一起了,说明都在图中
 
趋势:ZIG(3,P);
↑:=TROUGHBARS(3,P,1),COLOR0000FF,NODRAW;
↓:=PEAKBARS(3,P,1),COLOR00FF00,NODRAW;
低:IF(↑=0,C,IF(↓<↑,TROUGH(3,P,1),REF(TROUGH(3,P,1),1))),NODRAW;
高:IF(↓=0,C,IF(↑<↓,PEAK(3,P,1),REF(PEAK(3,P,1),1))),NODRAW;
①:IF(↓<↑,REF(高,↑),REF(低,↓)),COLORWHITE,NODRAW;
②:IF(↓<↑,REF(低,↓),REF(高,↑)),COLORYELLOW,NODRAW;
③:IF(↓<↑,高,低),COLORCYAN,NODRAW;
④:②*③/①,COLORGREEN,NODRAW;
涨%:IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)),COLORLIRED,NODRAW;
跌%:IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)),COLORCYAN,NODRAW;
{以下设置主图显示方式}
上:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED;
下:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN;
{分析家公式网}
ZT:=(C-REF(C,1))/REF(C,1)>0.095 AND C=H;
STICKLINE(ZT,C,O,1,0),COLORYELLOW;
 
XSS:=IF(X=1,涨%,IF(X=2,C,IF(X=3,BARSLAST(↑=1)+1,DRAWNULL)));
XSX:=IF(X=1,跌%,IF(X=2,C,IF(X=3,BARSLAST(↓=1)+1,DRAWNULL)));
 
DRAWNUMBER(↓=0 AND X,H*1.02,XSS);
DRAWNUMBER(↑=0 AND X,L*0.98,XSX);
 
STICKLINE(REF(XK<>0,1) AND ISLASTBAR,REF(C,1)*(1+XK/100),REF(C,1),0,0),COLORGRAY;
DRAWNUMBER(REF(XK<>0,1) AND ISLASTBAR,REF(C,1)*(1+XK/100),REF(C,1)*(1+XK/100)),COLORGRAY;
IF(XK>=10,CONST(REF(C,1)*(1+XK/100)),DRAWNULL),COLORLICYAN;

20203232412163714.png

20203232412163714.png
 

20203232403917256.png

20203232403917256.png
 
 

20203232412827741.png

20203232412827741.png
 

20203232413596120.png

20203232413596120.png
 

20203232414148619.png

20203232414148619.png
 

20203232414832821.png

20203232414832821.png

p20203232415238248.jpg

p20203232415238248.jpg

20203232403238877.rar

2.78 KB, 下载次数: 0

售价: 2 金钱  [记录]  [购买]

20203232403238877.rar

回复

使用道具 举报

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

本版积分规则