大智慧成本动向副图指标
源码
DRAWGBKlast(DATE>900101,strip(RGB(0,20,0),RGB(20,0,20),5));
ZF:=H-L;
CB:=AMOUNT/VOL/100;
DV1:=IF(ZF>0 AND C>CB, ((H-C)/(H-CB))*((H-C)/(H-CB))*((H-CB)/ZF*VOL) ,0);
UV1:=IF(ZF>0 AND C>CB, VOL-DV1 ,0);
UV2:=IF(ZF>0 AND C<CB, ((C-L)/(CB-L))*((C-L)/(CB-L))*((CB-L)/ZF*VOL) ,0);
DV2:=IF(ZF>0 AND C<CB, VOL-UV2 ,0);
成本差:(UV1+UV2-DV1-DV2)/VOL/CAPITAL*1000000,Color3d;
成本差累计15:EMA(SUM(成本差,15),5),COLOR00FF00,LINETHICK2;
0,color0047ff;