优化的指标带了支撑阻力-精品通达信指标公式源码分享
N:=150 ;
高1:=REF(HHV(H,N),3);
低1:=REF(LLV(L,N),3);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORGREEN,CROSSDOT,LINETHICK2;
上191:REFDATE(H1,DATE),COLORCYAN,POINTDOT;
上382:REFDATE(H2,DATE),COLORYELLOW,POINTDOT;
中5:REFDATE(H3,DATE),COLORRED,CIRCLEDOT;
下618:REFDATE(H4,DATE),COLORYELLOW,POINTDOT;
下809:REFDATE(H5,DATE),COLORCYAN,POINTDOT;
低:REFDATE(低1,DATE),COLORRED,CROSSDOT,LINETHICK2;
DRAWICON(CROSS(ZIG(3,12),REF(ZIG(3,12),1)),LOW*0.82,7);
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.99,1);
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.94,3);
DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.88,5);
DRAWICON(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),HIGH*1.15,8);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.1,6);
DRAWICON(CROSS(REF(ZIG(3,8),1),ZIG(3,8)),HIGH*1.06,4);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),HIGH*1.02,2);
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!