拐线抬头:=(EMA(C,5) * 7 + EMA(C,10) * 3) / 10;
A1:=(H + L + O + C) / 4;
A2:=EMA(A1,13) - EMA(A1,34);
A3:=EMA(A2,5);
A4:=(A2 - A3) * 5;
A5:=IF(A4 >= 1000,1000,IF(A4 <= A1,A1,A4));
A6:=FORCAST(FORCAST(A5,32),10);
A9:=EMA(C,3);
A10:=EMA(SLOPE(C,22) * 20 + C,45);
A11:=IF(PERIOD >8 AND PERIOD < 11,MA(A10,1),IF(PERIOD = 8,MA(A10,4),IF(PERIOD = 7,MA(A10,8),IF(PERIOD = 6,MA(A10,16),IF(PERIOD = 5,MA(A10,32),0)))));
A12:=A11 * 0.865;
A13:=IF(A9 > A11,A9,A12);
买卖线:=REVERSE(A13) + 2 * A6;
K2:=1;
A:=EMA((EMA(C,29)+EMA(C,31)+EMA(C,33))/3,3);
AA1:=EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3);
A15D:=IF(K2!=2, A-(AA1-A*0.977),DRAWNULL);
BR:=MA(CLOSE,13)+MA(CLOSE,13)-REF(MA(CLOSE,13),1);
分水岭R:=IF(MA(CLOSE,17)
YR:=分水岭R-(EMA(C,3)-分水岭R);
M5:=MA(C,3),COLORRED;
OUTF:=crOSS(M5,YR);
OUT1:=CROSS(M5,A15D);
【操盘线】:=EMA(((SLOPE(C,22)*20)+C),55);
XG:CROSS(拐线抬头,买卖线) AND (OUT1 OR OUTF) AND 拐线抬头>=【操盘线】;