黄金分割理论的动态分割指标,主图交易指标!!!
日:=50;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
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;
L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;
L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;
L5:=低1+(高1-低1)*1.809;
短压:REFDATE(高1,DATE),colorgreen,LINETHICK1;
支撑236:REFDATE(H1,DATE),coloryellow;
支撑382:REFDATE(H2,DATE),colormagenta;
支撑500:REFDATE(H3,DATE),colorligray;
支撑618:REFDATE(H4,DATE),colorwhite,LINETHICK1;
支撑809:REFDATE(H5,DATE),colorwhite;
低:REFDATE(低1,DATE),colorwhite;
阻力1191:REFDATE(L1,DATE),coloryellow;
阻力1382:REFDATE(L2,DATE),colormagenta;
阻力1500:REFDATE(L3,DATE),colorligray;
阻力1618:REFDATE(L4,DATE),colorred;
阻力1809:REFDATE(L5,DATE),colorwhite;
DIFF:=EMA(CLOSE,2) - EMA(CLOSE,60);
DEA:=EMA(DIFF,8);
DRAWTEXT(CROSS(DIFF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.40,'金X'),COLOR0099FF;
风险系数1:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
风险系数2:=100*(HHV(HIGH,90)-CLOSE)/(HHV(HIGH,90)-LLV(LOW,90));
阶段底部:CROSS(90,风险系数1) AND CROSS(90,风险系数2) AND COUNT(ABS(风险系数1-风险系数2)/风险系数2<0.15,1)=1,NODRAW;
STICKLINE(阶段底部,O,(O+C)/2,3,0),colormagenta;
A1:=(CLOSE+HIGH+LOW)/3;
A2:=EMA(A1,3);
A3:=REF(A2,1);
A4:=IF(A2>A3,A2,DRAWNULL);
A5:=IF(A2<=A3,A2,DRAWNULL);
STICKLINE(CROSS(C,REF(A5,1)),REF(A5,1)*1.002,REF(A5,1),20,0),colorred;
DRAWTEXT(CROSS(REF(A4,1),C) AND A4,H,'↓死X'),colorgreen;