源码
N:=1.05;
A1:=((HIGH + LOW) / 2);
B0:=WMA(A1,13);
B1:=MA(B0,3);
B2:=MA(B0,5);
B3:=MA(B0,13);
B4:=MA(B0,21);
A:=(LLV(CLOSE,21) * N);
见底1:=(((((((CROSS(CLOSE,A) AND (LLV(CLOSE,20) = LLV(CLOSE,60))) AND (COUNT(CROSS(CLOSE,A),10) <= 1)) AND (B3 < B4)) OR (((CROSS(CLOSE,A) AND (LLV(CLOSE,20) = LLV(CLOSE,60))) AND (CLOSE < MIN(B1,MIN(B2,MIN(B3,B4))))) AND (COUNT(CROSS(CLOSE,A),10) <= 1))) OR (((CROSS(CLOSE,A) AND (CLOSE > (REF(CLOSE,1) * N))) AND (CLOSE < MIN(B1,MIN(B2,MIN(B3,B4))))) AND (COUNT(CROSS(CLOSE,A),10) <= 1))) OR ((((CROSS(CLOSE,A) AND (CLOSE > MAX(B1,MAX(B2,MAX(B3,B4))))) AND (MAX(B1,B2) < MAX(B3,B4))) AND (B3 < B4)) AND (COUNT(CROSS(CLOSE,A),10) <= 1))) OR ((((CROSS(CLOSE,A) AND (CLOSE > MAX(B1,MAX(B2,MAX(B3,B4))))) AND (MAX(B1,B2) < MIN(B3,B4))) AND (B3 > B4)) AND (COUNT(CROSS(CLOSE,A),10) < 1)));
VAR11:=((REF(HIGH,1) + REF(LOW,1)) / 2);
VAR12:=(MA(CLOSE,20) + (2 * STD(CLOSE,20)));
VAR13:=CROSS(VAR11,VAR12);
VAR21:=REF(CLOSE,1);
VAR22:=((SMA(MAX((CLOSE - VAR21),0),6,1) / SMA(ABS((CLOSE - VAR21)),6,1)) * 100);
VAR23:=CROSS(83,VAR22);
VAR31:=((SMA(MAX((CLOSE - VAR21),0),7,1) / SMA(ABS((CLOSE - VAR21)),7,1)) * 100);
VAR32:=CROSS(79,VAR31);
VAR33:=FILTER(VAR32,4);
ENTERLONG:((见底1 AND (EMA(CLOSE,250) > REF(EMA(CLOSE,250),1))) AND (CLOSE > EMA(CLOSE,250)));
EXITLONG:((VAR13 OR VAR23) OR VAR33);