有关主力公式三个----都是精品!
{zljc主力进场}
Var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),13,1)/SMA(MAX(LOW-Var2,0),13,1)*100;
Var4:=EMA(IF(CLOSE*1.2,Var3*13,Var3/13),13);
Var5:=LLV(LOW,34);
Var6:=HHV(Var4,34);
Var7:=IF(LLV(LOW,56),1,0);
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=EMA(CLOSE,5);
Var10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
STICKLINE(Var9>REF(Var9,1),0,Var9*0.25,4,0),color10E410;
减仓:IF(Var9>REF(Var9,1),Var9*0.25,0),color10E410,STICK;
STICKLINE(Var9<REF(Var9,1),0,Var9*0.25,4,0),color1010FF;
增仓:IF(Var9<REF(Var9,1),Var9*0.25,0),color1010FF,STICK;
STICKLINE(Var8>REF(Var8,1),0,Var8,4,0),color10FFFF;
主力进场:IF(Var8>REF(Var8,1),Var8,0),color10FFFF,STICK;
STICKLINE(Var8<REF(Var8,1),0,Var8*1.5,4,0),colorFFF810;
洗缓:IF(Var8<REF(Var8,1),Var8*1.5,0),colorFFF810,STICK;
增减力度:Var10*0.2,colorFF7676;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,Var8*3,4,0),Color006EFF;
↑买↑:XL3,Color006EFF,STICK;
DRAWTEXT(XL3,Var8*3.5,'买'),Color006EFF;
DRAWICON(XL3,15,1),COLORRED;
v0:0,colorffa2af;
{=============================================================================}
{ZLCX主力出现}
DIF:=EMA(CLOSE,13)-EMA(CLOSE,28);
DEA:=EMA(DIF,8);
MACD:=(DIF-DEA)*2;
STICKLINE((MACD > 0),0,MACD,3,3),COLORYELLOW;
STICKLINE((MACD <= 0),0,MACD,3,3),COLORGREEN;
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=SMA(VAR11,3,1);
主力出现:DRAWICON(CROSS(VAR11,VAR12) AND (VAR11<40),0,1);
v0:0,colorffa2af;
Var1:ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
Var2:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
{STICKLINE(Var1,VAR11,VAR12,8,0),COLORYELLOW,LINETHICK2;{高位黄s}
{STICKLINE(Var1,VAR11,VAR12,3,0),COLORYELLOW,LINETHICK2;{高位黄s}
{STICKLINE(Var1,H,L,1,0),COLORYELLOW,LINETHICK2;{高位黄s}
{STICKLINE(Var2,VAR11,VAR12,8,0),COLORFF00FF,LINETHICK2;{底位红色}
{STICKLINE(Var2,VAR11,VAR12,3,0),COLORFF00FF,LINETHICK2;{底位红色}
{STICKLINE(Var2,H,L,1,0),COLORFF00FF,LINETHICK2;{底位红色}
{==================================================================================}
{zldxh主力动向}
var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),13,1)/SMA(MAX(LOW-Var2,0),13,1)*100;
Var4:=EMA(IF(CLOSE*1.2,Var3*13,Var3/13),13);
Var5:=LLV(LOW,34);
Var6:=HHV(Var4,34);
Var7:=IF(LLV(LOW,56),1,0);
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=EMA(CLOSE,5);
Var10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10);
Var11:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7*(-1);
Var12:=EMA(CLOSE,5)*(-1);
STICKLINE(Var12<REF(Var12,1),0,Var12*0.08,4,1),color10E410;
减仓:IF(Var12<REF(Var12,1),Var12,0),color10E410,linethick0;
STICKLINE(Var9<REF(Var9,1),0,Var9*0.08,4,1),color1010FF;
增仓:IF(Var9<REF(Var9,1),Var9*0.2,0),color1010FF,linethick0;
STICKLINE(Var8>REF(Var8,1),0,Var8,4,1),color10FFFF,linethick0;
主力进场:IF(Var8>REF(Var8,1),Var8*8,0),color10FFFF,linethick0;
STICKLINE(Var11>REF(Var11,1),0,Var11,4,1),colorFFF810;
洗盘:IF(Var11>REF(Var11,1),Var11*8,0),colorFFF810,linethick0;
主力持仓:LOW,colorFF10FF,linethick0;
增减力度:Var10*5,colorwhite,linethick2;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,Var8*3,4,0),Color006EFF;
DRAWTEXT(XL3,Var8*2,'买'),Color0000FF;
↑买:DRAWICON(XL3,Var8*3,4),colorred;
{====================================================================}
|