黄金阶梯主图,支持压力一目了然 源码
黄金阶梯主图,支持压力一目了然 源码
还有黄金分割线。指标只是辅助,决策在人
源码
AA:=STRCAT(HYBLOCK,3);
CC:=STRCAT(AA,DYBLOCK);
DD:=STRCAT(CC,3);
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,STRCAT(DD,GNBLOCK)),COLORYELLOW;
M1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*M1+19*REF(M1,1)+18*REF(M1,2)+17*REF(M1,3)+16*REF(M1,4)+15*REF(M1,5)+14*REF(M1,6)+13*REF(M1,7)+12*REF(M1,8)+11*REF(M1,9)+10*REF(M1,10)+9*REF(M1,11)+8*REF(M1,12)+7*REF(M1,13)+6*REF(M1,14)+5*REF(M1,15)+4*REF(M1,16)+3*REF(M1,17)+2*REF(M1,18)+REF(M1,20))/210,COLORRED;
M2:=MA(牛线,6);
MAA5:MA(CLOSE,5);
M3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
M4:=SMA(M3,3,1);
M5:=SMA(M4,3,1);
M6:=3*M4-2*M5;
M7:=CLOSE-REF(CLOSE,1);
M9:=100*EMA(EMA(M7,6),6)/EMA(EMA(ABS(M7),6),6);
M10:=LLV(M9,2)=LLV(M9,7) AND COUNT(M9<0,2) AND CROSS(M9,MA(M9,2));
STICKLINE(M10,OPEN,CLOSE,2,0),COLORYELLOW;
M11:=150;
M12:=3;
M13:=REF(HHV(HIGH,M11),M12);
M14:=REF(LLV(LOW,M11),M12);
M15:=M13-(M13-M14)*0.191;
M16:=M13-(M13-M14)*0.382;
M17:=M13-(M13-M14)*0.5;
M18:=M13-(M13-M14)*0.618;
M19:=M13-(M13-M14)*0.809;
顶:REFDATE(M13,DATE),COLORRED,LINETHICK2;
一0.809:REFDATE(M15,DATE),DOTLINE,COLORYELLOW;
二0.618:REFDATE(M16,DATE),DOTLINE,COLORMAGENTA;
三0.500:REFDATE(M17,DATE),DOTLINE,COLORWHITE;
四0.382:REFDATE(M18,DATE),DOTLINE,COLORGREEN;
五0.191:REFDATE(M19,DATE),DOTLINE,COLORYELLOW;
低:REFDATE(M14,DATE),COLORRED,LINETHICK2;