N:=36;
差价:=((c-REF(c,1))*0.382+(C-O)*0.618)*0.382;
均价:=(C+(H+l)/2*0.382+(c+O)/2*0.618)/2;
多空线:=EMA(EMA(EMA(HHV((H+均价)/2,1)-EMA(差价,246)/35,3),8),24),COLORWHITE;
操盘线:=ema(eMA((均价+c)/2,4)-ema(差价,246)/4,2),COLORMAGENTA;
反操盘线:=EMA(操盘线-(eMA((均价+c)/2,2)-操盘线),2),COLORGRAY,LINETHICK1;
黄金线:=(反操盘线+多空线)/2,COLORYELLOW,LINETHICK2;
行情线:=EMA(EMA(EMA(HHV((H+均价)/2,1)-EMA(差价,246)/99,3),24),72);
X1:=eMA((均价+h)/2,5),COLORWHITE;
X2:=eMA(X1,8),COLORWHITE,LINETHICK2;
空:5*REF(行情线,1)-REF(SUM((均价+H)/2,5-1),1),COLORGREEN,LINETHICK1;
多:8*REF(X2,1)-REF(SUM((均价+H)/2,8-1),1),COLORWHITE,LINETHICK1;
游资:N*REF(黄金线,1)-REF(SUM((均价+H)/2,N-1),1),COLOR7F00FF,LINETHICK1;
三六计:MA(游资,3),COLORAAAA00;
PARTLINE(游资>多,多),COLORYELLOW,LINETHICK2;
PARTLINE(多>空,多),COLORRED,LINETHICK2;
0;