亮剑智者富之-黄金分割 亮剑智者富之-黄金分割
主线:=WMA(CLOSE,P1)*0.98; VAR1:=POW(CLOSE-主线,1); VAR2:=MA(VAR1,3); VAR3:=SQRT(VAR2); 阻力线:=主线+1.96*VAR3; 支撑线:=主线-1.96*VAR3; PARTLINE(主线>REF(主线,1) AND 阻力线<>支撑线,主线),LINETHICK3,colorFF; PARTLINE(主线<REF(主线,1),主线),LINETHICK2,colorFF0000; DRAWICON(主线>REF(主线,1),主线,10); N1:=SYSPARAM(3); N:=N1-SYSPARAM(2)+1; HH:=HHV(HIGH,N); LL:=LLV(LOW,N); 最高:HH[N1],colorFF; 最低:LL[N1],colorFF; 最低+(最高-最低)*0.191; 最低+(最高-最低)*0.382; 最低+(最高-最低)*0.5,colorFF00FF; 最低+(最高-最低)*0.618; 最低+(最高-最低)*0.809; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.191,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*0.191,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.382,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*0.382,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.5,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*0.5,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.618,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*0.618,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.809,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*0.809,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*1,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),REF(最低+(最高-最低)*1,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),2),SHIFT110,colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'000%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.191,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'19.1%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.382,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'38.2%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.5,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'50%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.618,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'61.8%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*0.809,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'80.9%↑'),colorFFFF; DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(2),REF(最低+(最高-最低)*1,BARSLAST(BARSCOUNT(CLOSE)=SYSPARAM(2))),'99.99%↑'),colorFFFF; VAR1:=WINNER(CLOSE); VAR2:=VOL/CAPITAL; VAR3:=VAR2/VAR1; 财神线:=IF(VAR1<N1/100,VAR3,0); DRAWICON(财神线>3,LOW,10),ALIGN5; VAR1:=WINNER(CLOSE); VAR2:=VOL/CAPITAL; VAR3:=VAR2/VAR1; 财神线:=IF(VAR1<N1/100,VAR3,0); 财神到:=财神线; DRAWICON(财神线<REF(财神线>1,1) AND 财神线>0.5 AND 财神线<1,HIGH,1),ALIGN5; VAR1111:=FORCAST(CLOSE,5); STICKLINE(CLOSE<OPEN,HIGH,LOW,1,0),color8800; STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),colorFF00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),color8800; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,7,0),color9900; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,6,0),colorAA00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,5,0),colorBB00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),colorCC00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),colorDD00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),colorEE00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),colorFF00; STICKLINE(CLOSE>=OPEN,HIGH,LOW,1,0),colorFF; STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),colorEEFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8,0),colorFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),color22FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0),color44FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),color66FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),color88FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),colorAAFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),colorCCFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),colorEEFF; DRAWNUMBER(SYSPARAM(2)=BARPOS,CLOSE,FINANCE(33),2),ALIGN5; DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,' -收益'),ALIGN5; DRAWTEXT(BARPOS=SYSPARAM(2),HIGH,'\n所属块:'+BLKNAME),ALIGN4,colorFFFF; STICKLINE(CLOSE<OPEN,HIGH,LOW,1,0),color8800; STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),colorFF00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8,0),color8800; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,7,0),color9900; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,6,0),colorAA00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,5,0),colorBB00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),colorCC00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3,0),colorDD00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),colorEE00; STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1,0),colorFF00; STICKLINE(CLOSE>=OPEN,HIGH,LOW,1,0),colorFF; STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),colorEEFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8,0),colorFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),color22FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0),color44FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),color66FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),color88FF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),colorAAFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),colorCCFF; STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),colorEEFF; VAR1:=(CLOSE+HIGH+LOW)/3; CB:=MA(VAR1,4); A1:=HHV(CB,18); A2:=HHV(CB,41); A3:=HHV(HIGH,62)*0.98; B1:=LLV(CB,18); B2:=LLV(LOW,62)*1.02; MID:=MA(CLOSE,20); UPPER:=MID+2*STD(CLOSE,20); LOWER:=MID-2*STD(CLOSE,20); VAR18:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100); VAR28:=EMA(VAR18,3); VAR38:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,24)-EMA(CLOSE,36))*(-100); VAR48:=EMA(VAR38,9); VAR58:=CROSS(VAR18,VAR28); VAR36:=CROSS(VAR28,VAR18); STICKLINE(VAR36,OPEN,CLOSE,1.5,0),colorFFFFFF; STICKLINE(VAR58,OPEN,CLOSE,8,0),colorFF; STICKLINE(VAR58,OPEN,CLOSE-(CLOSE-OPEN)*0.33,8,0),colorFFFF; STICKLINE(VAR58,OPEN,CLOSE-(CLOSE-OPEN)*0.66,8,0),LINETHICK2,colorFF00FF; 拐点:=MA(CLOSE,N8); 拐点1:=MA(CLOSE,N8); GD1:=REF(COUNT(拐点<=REF(拐点,1),5)=5,1) AND 拐点>REF(拐点,1); GD2:=REF(COUNT(拐点1<=REF(拐点1,1),5)=5,1) AND 拐点1>REF(拐点1,1); DRAWICON(GD1,LOW*0.99,8); DRAWICON(GD1,LOW*0.98,1); MID:=MA(CLOSE,20); UPPER:=MID+2*STD(CLOSE,20); LOWER:=MID-2*STD(CLOSE,20); V1:=(CLOSE-LOWER)/(UPPER-LOWER)*100; V2:=V1-EMA(V1,5); K1:=SUM(LLV(V2,4),4)/4; V3:=EMA(V2,64)*10; V4:=EMA(0.4*V2*(-1),3); V5:=-1*EMA(V2,39)*10; A:=V3>10; B:=V2>V4; D:=V5>10; E:=V3<=10 OR V2<=V4 OR V5<=10; KS:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100); RKS:=REF(KS,1); MLS:=RKS/KS>1.23 AND RKS>13 AND CLOSE/REF(CLOSE,1)>1.03; 开:=OPEN; 高:=HIGH; 低:=LOW; 收:=CLOSE; 超跌:STICKLINE(KS>13,高,低,0,1),LINETHICK2,colorFFFFFF; 反弹:STICKLINE(MLS=1,高,低,0,1),LINETHICK2,colorFF00 |
