bc:=((H*0.5+L*0.5)*0.382+(O*0.382+C*0.618)*0.618);
WQFS:=SUMBARS(VOL,CAPITAL);
FSH:=REF(HHV(bc,WQFS*0.618),1);
FSL:=REF(LLV(bc,WQFS),1);
主筹线:=(bc-FSL)/((FSH+FSL)/2)*100,COLORRED;
散筹线:=(FSH-bc)/((FSL+FSH)/2)*100,COLORCYAN;
XP:=BARSLAST(CRoss(主筹线,散筹线));
盈亏:=EMA(WINNER(BC)*100-WINNER(ref(BC,XP+1))*100,3);
XG:cross(盈亏,0);