差价:=((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);
反多空线:=EMA(多空线-(eMA(均价,2)-多空线),2),COLORGRAY,LINETHICK1;
FILLRGN(反多空线>多空线,多空线,反多空线),COLORBLUE;
FILLRGN(反多空线<=多空线,多空线,反多空线),COLOR7F00FF,COLORBROWN;
角:=ATAN((多空线/ref(多空线,1)-1)*100)*180/3.1416,LINETHICK,COLORGREEN;
DRAWTEXT(filter(角>=30 and 多空线>ref(多空线,1),8),多空线*0.98,'∠30'),colorwhite,ALIGN0;
操盘线:ema(eMA(均价,4)-ema(差价,246)/4,2),COLORMAGENTA;
反操盘线:=EMA(操盘线-(eMA(均价,2)-操盘线),2),COLORGRAY,LINETHICK1;
FILLRGN(反操盘线>操盘线,操盘线,反操盘线),COLOR00AA99,COLORAAAA00;
FILLRGN(反操盘线<=操盘线,操盘线,反操盘线),COLOR7F00FF,COLOR00AA99;
STICKLINE(OPEN>=CLOSE,HIGH,LOW,0.2,0),colorFFCC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),colorFF9F68;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),colorFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),colorFFAA11;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),colorFFBB11;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),colorFFCC22;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),colorFFDD22;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),colorFFEE33;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),colorFFFF33;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.2,0),colorFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),colorCC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),color3300CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),color33CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),color6633CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),color3333FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),color6633FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),color3366FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),color6666FF;