N:=5;
S:=MAX(C,O);
X:=MIN(C,O);
A:=X>REF(S,1) OR S<REF(X,1);
XG:=HHV(X,N)<=LLV(S,N) AND COUNT(A,N)>0;
Q:=BacKSET(XG,N);
QD:=BArslAST(crOSS(Q,0.5));
G:=REFX(LLV(S,N),N-1);
D:=REFX(HHV(X,N),N-1);
HH:=REFX(HHV(H,N),N-1);
LL:=REFX(LLV(L,N),N-1);
DRAWLINE(QD=0,G,XG,LLV(S,N),0),COLORGREEN;
DRAWLINE(QD=0,D,XG,HHV(X,N),0),COLORGREEN;
DRAWLINE(QD=0 AND S<REF(X,1),HH,XG AND REF(S<REF(X,1),N-1),HHV(H,N),0),DOTLINE,COLORBLUE;
DRAWLINE(QD=0 AND S<REF(X,1),LL,XG AND REF(S<REF(X,1),N-1),LLV(L,N),0),DOTLINE,COLORBLUE;
STICKLINE(QD=0 AND S<REF(X,1),HH,LL,0,-1),COLORBLUE;
STICKLINE(XG AND REF(S<REF(X,1),N-1),HHV(H,N),LLV(L,N),0,-1),COLORBLUE;
DRAWLINE(QD=0 AND X>REF(S,1),HH,XG AND REF(X>REF(S,1),N-1),HHV(H,N),0),DOTLINE,COLORMAGENTA;
DRAWLINE(QD=0 AND X>REF(S,1),LL,XG AND REF(X>REF(S,1),N-1),LLV(L,N),0),DOTLINE,COLORMAGENTA;
STICKLINE(QD=0 AND X>REF(S,1),HH,LL,0,-1),COLORMAGENTA;
STICKLINE(XG AND REF(X>REF(S,1),N-1),HHV(H,N),LLV(L,N),0,-1),COLORMAGENTA;
{
选股公式:
N:=5;
S:=MAX(C,O);
X:=MIN(C,O);
A:=X>REF(S,1) OR S<REF(X,1);
HHV(X,N)<=LLV(S,N) AND COUNT(A,N)>0;
}
评论(0)