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,55),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(Var8>REF(Var8,1),0,Var8,4,1),color10FFFF,linethick0;
STICKLINE(Var11>REF(Var11,1),0,Var11,4,1),colorFFF810;
界:0,ColorFFFFFF,linethick1;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 and REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,Var8*3,8,0),Colorred;
DRAWTEXT(XL3,Var8*2,'买'),Color00FFFF;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
红线上穿买:EMA((VA-VB)/(VC-VB)*10,5),COLORred;
红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;
散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,1,'进'),COLOR00FFFF;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,3,'●'),COLORFF00FF;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,9.5,'出'),COLOR00FF00;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,8,'●'),COLOR00FF00;
选股公式源码:
一、“买”和“进”同时出现选股:
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
TJ1:=REF(XL1,1)<XL2 REF(XL1,1)<REF(XL1,2);
散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);
TJ2:=CROSS(散户,庄家) AND 散户<30;
XG:TJ1 and TJ2;
二、“买”或“进”出现选股:(和跟或不同)
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
TJ1:=REF(XL1,1)<XL2 REF(XL1,1)<REF(XL1,2);
散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);
TJ2:=CROSS(散户,庄家) AND 散户<30;
XG:TJ1 or TJ2;
|