趋势线:=MA(C,30);
回归斜率线A:=EMA(SLOPE(C,21)*20+C,42);
回归斜率线B:=REF(回归斜率线A,2);
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
MAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
MAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
元宝:=crOSS(经典K,经典D);
红箭头:=CROSS(EMA(C,3),回归斜率线A);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
X2:=LLV(J,2)=LLV(J,8);
红十:=CROSS(J,REF(J+0.01,1)) AND X2 AND J<20;
{M1:=EMA(EMA(C,21),3);
M2:=EMA(EMA(C,34),3);
阳:CROSS(C,M1)AND CROSS(C,M2);}
XGG:元宝 AND 红十;