x_1:=6; x_2:=6; x_3:=if(high=hhv(high,8*x_1),high,drawnull); x_4:=const(barslast(x_3=high))+1; x_5:=const(if(x_4=1,high,ref(high,x_4-1))); x_6:=if(low=llv(low,8*x_2),low,drawnull); x_7:=const(barslast(x_6=low))+1; x_8:=const(if(x_7=1,low,ref(low,x_7-1))); x_9:=currbarscount<=x_7 and low=x_8; x_10:=currbarscount<=x_4 and high=x_5; stickline(if(x_7>x_4,x_10,x_9),x_8,x_5,0,0),color628962; stickline(if(x_7>x_4,x_9,x_10),x_8,x_5,0,0),color628962; notext高:ref(high,barslast(x_10)),dotline,color628962; notext低:ref(low,barslast(x_9)),dotline,color628962; x_11:=llv(ma((low+high+close+open)/4,6),88); x_12:=ema((high+low+close)/3*(hhv(high,10)-close)/(hhv(high,10)-llv(low,10))*20/10+x_11,2); x_13:=(3*x_12-2*sma(x_12,5,1))*0.3; x_14:=(hhv(indexh,13)-indexc)/(hhv(indexh,13)-llv(indexl,13)); x_15:=ema(3*x_14-2*sma(x_14,18,1),5); x_16:=(indexc-llv(indexl,8))/(hhv(indexh,8)-llv(indexl,8)); x_17:=3*sma(x_16,3,1)-2*sma(sma(x_16,3,1),5,1); x_18:=(indexc*2+indexh+indexl)/4; x_19:=ema(x_18,13)-ema(x_18,34); x_20:=ema(x_19,5); x_21:=(x_19-x_20+x_11)*1; x_22:=1.86*ema(close,5)-ema(close,13); 资金力度:x_22,colorgreen,linethick2; x_23:=ma(close,1); x_24:=sma(sma(sma(x_23,2,1),2,1),2,1); x_25:=(ema(close,5)*7+ema(close,10)*3)/10; x_26:=(x_24-ref(x_24,1))/ref(x_24,1)*100; x_27:=ma(close,17)+abs(ma(close,17)-ref(ma(close,17),1)); x_28:=ma(close,17)+ma(close,17)-ref(ma(close,17),1); x_29:=if(ma(close,17)<x_28,x_28,ma(close,17)); x_30:=ema(close,243); x_31:=ema(close,3); x_32:=x_29-(x_31-x_29); 散筹:x_30-(x_31-x_30),colorgreen,linethick2; notextcg:ma(close,17)+abs(ma(close,17)-ref(ma(close,17),1)),colorffaa99; notextcg1:ma(close,17)+ma(close,17)-ref(ma(close,17),1),colorffaa99; 主筹:if(ma(close,17)<x_28,x_28,ma(close,17)),colorlimagenta,linethick2; notext3:if(主筹<ref(主筹,1),主筹,drawnull),colorffaa99,linethick2; notext4:if(主筹>ref(主筹,1),主筹,drawnull),colorlimagenta,linethick2; x_33:=forcast(close,5); 黄:llv(forcast(close,5),2),coloryellow; x_34:=x_33*100-黄*100; drawband(x_33,rgb(155,155,0),黄,rgb(0,155,0)); 绿:if(x_34=0,黄,drawnull),colorgreen,linethick2; drawkline(high,open,low,close); xh:=filter(主筹>ref(主筹,1) and cross(x_34,黄) and c>notextcg,5); drawicon(xh,主筹,26); 
|