P:=60;
Q:=30;
A1:=AMOUNT/VOL/100;A2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
A3:=SUM(AMOUNT,40)/A1/100;A4:=SUM(AMOUNT,80)/A1/100;B1:=DMA(A2,VOL/A3);
B2:=DMA(A2,VOL/A4);B3:=(CLOSE-B1)/B1*100;B4:=(CLOSE-B2)/B2*100;
现价:=C;分时确认:=MA(REF(HHV(C,60),1),2);均价:=SUM(现价*V,240)/SUM(V,240);
回调认同:=EMA(EMA(C,20),13);分时压力:=MA(REF(HHV(C,30),1),2);
分时支撑:=MA(REF(LLV(C,30),1),2);RSV:=(CLOSE-LLV(LOW,Q))/(HHV(HIGH,Q)-LLV(LOW,Q))*100;
K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;VAR2:=EMA(J,6);
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR4:=SMA(VAR3,13,8);
VAR5:=CEILING(SMA(VAR4,13,8));VAR6:="SSRP.MA1";VAR7:="SSRP.MA2";SIGNAL1:=CROSS(VAR5,VAR2) AND C>=均价;
SIGNAL2:=(CROSS(VAR5,VAR2) AND B3>0.6 AND C>=均价);SIGNAL3:=(CROSS(VAR6,VAR7) AND B3>0.6 AND C>=均价);
XG:(SIGNAL3 AND VAR5>VAR2);
(已测试)