GUP1:=MA(HHV(H,500),13); GUP2:=MA(HHV(H,250),13); GUP3:=MA(HHV(H,89),13); GUP4:=MA(LLV(L,500),13); GUP5:=MA(LLV(L,250),13); GUP6:=MA(LLV(L,89),13); GUP7:=MA((GUP1*0.558+GUP2*0.558+GUP3*0.558+GUP4*0.96+GUP5*0.96+GUP6*0.96)/6,17); GUP8:=MA((GUP1*0.55+GUP2*0.55+GUP3*0.65+GUP4*1.25+GUP5*1.23+GUP6*1.2)/6,17); GUP9:=MA((GUP1*0.68+GUP2*0.68+GUP3*0.68+GUP4*1.3+GUP5*1.3+GUP6*1.3)/6,17); GUP10:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17); GUP11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100; GUP12:=MA(IF(C*1.35<=GUP10,GUP11*10,GUP11/10),3); GUPH:=HHV(GUP12,30); GUPA:=MA(IF(L<=LLV(L,42),(GUPH+GUP11*2)/3,0),3)/200; DRAWBAND(GUPA,RGB(255,255,50),0.00001,RGB(0,100,50)); STICKLINE(CROSS(3.8,GUPA) AND GUPA<REF(GUPA,1),0,3.8,1,0),COLORFF00FF; DRAWTEXT(CROSS(3.8,GUPA) AND GUPA<REF(GUPA,1),3.8,'底买'),COLORFF00FF;
{选股公式一:牛} GUP1:=MA(HHV(H,500),13); GUP2:=MA(HHV(H,250),13); GUP3:=MA(HHV(H,89),13); GUP4:=MA(LLV(L,500),13); GUP5:=MA(LLV(L,250),13); GUP6:=MA(LLV(L,89),13); GUP7:=MA((GUP1*0.558+GUP2*0.558+GUP3*0.558+GUP4*0.96+GUP5*0.96+GUP6*0.96)/6,17); GUP8:=MA((GUP1*0.55+GUP2*0.55+GUP3*0.65+GUP4*1.25+GUP5*1.23+GUP6*1.2)/6,17); GUP9:=MA((GUP1*0.68+GUP2*0.68+GUP3*0.68+GUP4*1.3+GUP5*1.3+GUP6*1.3)/6,17); GUP10:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);
{选股公式二:底买} GUP1:=MA(HHV(H,500),13); GUP2:=MA(HHV(H,250),13); GUP3:=MA(HHV(H,89),13); GUP4:=MA(LLV(L,500),13); GUP5:=MA(LLV(L,250),13); GUP6:=MA(LLV(L,89),13); GUP7:=MA((GUP1*0.558+GUP2*0.558+GUP3*0.558+GUP4*0.96+GUP5*0.96+GUP6*0.96)/6,17); GUP8:=MA((GUP1*0.55+GUP2*0.55+GUP3*0.65+GUP4*1.25+GUP5*1.23+GUP6*1.2)/6,17); GUP9:=MA((GUP1*0.68+GUP2*0.68+GUP3*0.68+GUP4*1.3+GUP5*1.3+GUP6*1.3)/6,17); GUP10:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17); [sell=5,4]GUP11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;GUP12:=MA(IF(C*1.35<=GUP10,GUP11*10,GUP11/10),3);GUPH:=HHV(GUP12,30);GUPA:=MA(IF(L<=LLV(L,42),(GUPH+GUP11*2)/3,0),3)/200;底买:CROSS(3.8,GUPA) AND GUPA
{选股公式三:金山} GUP1:=MA(HHV(H,500),13); GUP2:=MA(HHV(H,250),13); GUP3:=MA(HHV(H,89),13); GUP4:=MA(LLV(L,500),13); GUP5:=MA(LLV(L,250),13); GUP6:=MA(LLV(L,89),13); GUP7:=MA((GUP1*0.558+GUP2*0.558+GUP3*0.558+GUP4*0.96+GUP5*0.96+GUP6*0.96)/6,17); GUP8:=MA((GUP1*0.55+GUP2*0.55+GUP3*0.65+GUP4*1.25+GUP5*1.23+GUP6*1.2)/6,17); GUP9:=MA((GUP1*0.68+GUP2*0.68+GUP3*0.68+GUP4*1.3+GUP5*1.3+GUP6*1.3)/6,17); [sell=3,4]GUP10:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);GUP11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;GUP12:=MA(IF(C*1.35<=GUP10,GUP11*10,GUP11/10),3);GUPH:=HHV(GUP12,30);GUPA:=MA(IF(L<=LLV(L,42),(GUPH+GUP11*2)/3,0),3)/200;金山:CROSS(10,GUPA) AND GUPA
{选股公式四:全买} GUP1:=MA(HHV(H,500),13); GUP2:=MA(HHV(H,250),13); GUP3:=MA(HHV(H,89),13); GUP4:=MA(LLV(L,500),13); GUP5:=MA(LLV(L,250),13); GUP6:=MA(LLV(L,89),13); GUP7:=MA((GUP1*0.558+GUP2*0.558+GUP3*0.558+GUP4*0.96+GUP5*0.96+GUP6*0.96)/6,17); GUP8:=MA((GUP1*0.55+GUP2*0.55+GUP3*0.65+GUP4*1.25+GUP5*1.23+GUP6*1.2)/6,17); GUP9:=MA((GUP1*0.68+GUP2*0.68+GUP3*0.68+GUP4*1.3+GUP5*1.3+GUP6*1.3)/6,17); [sell=3,4]GUP10:=MA((GUP7*3+GUP8*2+GUP9)/6*1.738,17);GUP11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;GUP12:=MA(IF(C*1.35<=GUP10,GUP11*10,GUP11/10),3);GUPH:=HHV(GUP12,30);GUPA:=MA(IF(L<=LLV(L,42),(GUPH+GUP11*2)/3,0),3)/200;全买:CROSS(38,GUPA) AND GUPA
|