大智慧的小树顶底源码如下:Var5:=LLV(LOW,75); Var6:=HHV(HIGH,75); Var7:=(Var6-Var5)/100; Var8:=SMA((CLOSE-Var5)/Var7,20,1); VarA:=3*Var8-2*SMA(Var8,15,1); 主力线:100-(100-VarA),Coloryellow,linethick1; DRAWICON((CROSS(主力线,ref(主力线,1)) and 主力线<=100),主力线,7),align1; DRAWICON((CROSS(ref(主力线,1),主力线) and 主力线<=100),主力线,8),align1; DRAWICON((CROSS(主力线,ref(主力线,1)) and 主力线>100),100*0.995,7),align1; DRAWICON((CROSS(ref(主力线,1),主力线) and 主力线>100),100*0.995,8),align1; 持强:HHV(IF(TIME<=100000,count(cross(主力线,ref(主力线,1))+cross(ref(主力线,1),主力线),0),0),0),coloryellow,LINETHICK0,PRECIS0; 连红:last(主力线>ref(主力线,1) and 主力线>100),LINETHICK0,colorred; partline(主力线,主力线<0),colorred; partline(主力线,主力线>100),colorgreen; FILLRGN(主力线,0,主力线<0,rgb(255,0,0)); FILLRGN(主力线,100,主力线>100,rgb(0,250,0)); 100,pointdot,colorgreen,LINETHICK1; 50,pointdot,colorgray,LINETHICK1; 0,pointdot,colorred,LINETHICK1; |