INPUT:N(8),M(13),P(60),S(3);
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力开始出:=IF(V4<=0,V4,0);
主力开始进:=IF(V4>=0,V4,0);
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场:=VB>=0;
大资金撤走:=VB<=0;
获利筹码:=EMA(WINNER(C)*70,5);
亏损筹码:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);
XG:((CROSS(主力开始进, 大资金进场)AND(获利筹码>亏损筹码))OR (CROSS(获利筹码,亏损筹码)AND(主力开始进> 大资金进场)))AND((c-ref(c,1))/ref(c,1)*100<2.5);