《UOSA战法》剑指战法说明,代码及图
{M=0 100 5 N=0 100 12 P=0 100 26}
TH:=MAX(H,REF(C,1));
TL:=MIN(L,REF(C,1));
TR1:=TH-TL;
XR:=C-TL;
XRM:=SUM(XR,M)/SUM(TR1,M);
XRN:=SUM(XR,N)/SUM(TR1,N);
XRP:=SUM(XR,P)/SUM(TR1,P);
UOS:=(XRM*M+XRN*N+XRP*P)/(M+N+P)*100;
MU5:MA(UOS,5);
MU20:MA(UOS,20);
DRAWBAND(MU5,180,MU20,RGB(65,165,65));
STICKLINE(UOS>REF(UOS,1),UOS,MU5,2,1),COLORRED;
STICKLINE(UOS<REF(UOS,1),UOS,MU5,2,0),COLORCYAN;
DRAWICON(CROSS(UOS,50) OR CROSS(UOS,65),50,26);
选股公式:
TH:=MAX(H,REF(C,1));
TL:=MIN(L,REF(C,1));
TR1:=TH-TL;
XR:=C-TL;
XRM:=SUM(XR,M)/SUM(TR1,M);
XRN:=SUM(XR,N)/SUM(TR1,N);
XRP:=SUM(XR,P)/SUM(TR1,P);
UOS:=(XRM*M+XRN*N+XRP*P)/(M+N+P)*100;
xg:CROSS(UOS,50) OR CROSS(UOS,65);
2144588345.jpg
|