N:=10;
M:=10;
N1:=10;
M1:=10;
{主散博弈}
散筹估算:EMA((WINNER((O+C*2+H+L)/5*1.1)-WINNER((O+C*2+H+L)/5*0.9))*80,N),STICK,COLORGREEN;
EMA((WINNER((O+C*2+H+L)/5*1.1)-WINNER((O+C*2+H+L)/5*0.9))*80,N1),LINETHICK2,COLORGREEN;
主筹估算:EMA(WINNER((O+C*2+H+L)/5)*70,M),STICK,COLOR0000FF;
EMA(WINNER((O+C*2+H+L)/5)*70,M1),COLOR0000FF,LINETHICK2;
相对筹码:散筹估算-主筹估算,COLORFF9900,LINETHICK2;
动态底部:EMA(IF(L<= LLV(L,30),SMA(Abs(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*10,STICK,COLORYELLOW,LINETHICK6;
VAR1:=IF(C>=O,H,0);
VAR2:=IF(C<=O,REF(H,1),VAR1);
VAR3:=IF(C>=O,V,0);
VAR4:=IF(C<=O,REF(V,1),VAR3);
VAR5:=COUNT(VAR2>REF(VAR2,1) AND VAR4=2 AND C>O;
量价背离:VAR5*40,STICK,COLORFFF516,LINETHICK6;
{共振信号}
DRAWICON(crOSS(主筹估算,相对筹码),主筹估算-5,9);
DRAWICON(CROSS(主筹估算,散筹估算),主筹估算-5,26);