N:=5;
LT:=LLVBARS(L,N);
A1:=BacKSET(BARSTATUS=2,LT+1);
A2:=BACKSET(BARSTATUS=2,N+LT+1);
HH:=IF(A2 AND NOT(A1),H,0);
HT:=HHVBARS(HH,0);
A3:=BArslAST(crOSS(BACKSET(BARSTATUS=2,HT+1),0.5));
A:REF(H,A3);
{
选股公式:
N:=5;
LT:=LLVBARS(L,N);
A1:=BACKSET(BARSTATUS=2,LT+1);
A2:=BACKSET(BARSTATUS=2,N+LT+1);
HH:=IF(A2 AND NOT(A1),H,0);
HT:=HHVBARS(HH,0);
A3:=BARSLAST(CROSS(BACKSET(BARSTATUS=2,HT+1),0.5));
A:=REF(H,A3);
选股:CROSS(C,A);
}