差价:=((c-REF(c,1))*0.382+(C-O)*0.618)*0.382;
均价:=(C+(H+l)/2*0.382+(c+O)/2*0.618)/2;
A:=SUMBARS(V ,CAPITAL)*0.809;
量差:=SUM(差价*V,A)/A;
R:=VOL/((L+均价)/2);R1:=VOL/((H+均价)/2);
买:=IF((c+均价)/2>=均价,R*(h+均价)/2,量差),LINETHICK1;
卖:=IF((c+均价)/2<均价,R1*(l+均价)/2,量差),LINETHICK1,COLORGREEN;
DDX:SUM((买-卖)/(买+卖),A)/A,COLORSTICK;
动能:MA(DDX,5);
趋势:MA(DDX,10);
天:REF(HHV(MA(DDX,5),13),1),COLOR7F00FF,LINEDOT;
地:REF(LLV(MA(DDX,5),13),1),COLOR00AA99,LINEDOT;
0;