通达信均线三部曲源码副图

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

以下是通达信均线三部曲源码副图(无源码的请下载附件导入)

HJ_1:=1.1;
粘合:INTPART(MAX(MAX(MAX(MAX(MAX(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,20)),MA(CLOSE,60)),MA(CLOSE,120)),MA(CLOSE,250))/MIN(MIN(MIN(MIN(MIN(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,20)),MA(CLOSE,60)),MA(CLOSE,120)),MA(CLOSE,250))*1000)/1000,COLORGREEN;
共振:BARSLASTCOUNT(MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),1) AND MA(CLOSE,120)>REF(MA(CLOSE,120),1) AND MA(CLOSE,250)>REF(MA(CLOSE,250),1)),NODRAW,COLORMAGENTA;
多头:BARSLASTCOUNT(MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,120)>MA(CLOSE,250)),NODRAW,COLORRED;
 PLOYLINE(1.1,1.1),COLORWHITE;
 PLOYLINE(粘合,粘合),COLORGREEN;
 STICKLINE(共振,1.1,粘合,6,0),COLORYELLOW;
 STICKLINE(多头,1.1,粘合,6,0),COLORRED;
 STICKLINE(粘合<=1.1,粘合,1.1,6,0),COLORGREEN;
 HJ_2:=BARSLASTCOUNT(共振)=1 OR BARSLASTCOUNT(多头) AND 粘合>REF(粘合,1);
买点:HJ_2 AND REF(HJ_2,1)=0,NODRAW,COLORGREEN;
 DRAWTEXT(买点,粘合*1.1,124),COLORGREEN;

{-----------------------------------}

635311195.jpg

635311195.jpg

回复

使用道具 举报

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

本版积分规则