均线三部曲-精品通达信指标公式源码分享
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;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!