    private double get_volumeWAP2(Instrument instrument, Period period, Period basePeriod, int shift) {
        double VWAP2 = 0;
        try {
          Object[] result = indicators.calculateIndicator(instrument,
            period, new OfferSide[] {OfferSide.ASK, OfferSide.ASK}, basePeriod, "VolumeWAP2",
            new AppliedPrice[]{AppliedPrice.TYPICAL_PRICE, AppliedPrice.TYPICAL_PRICE}, new Object[]{}, shift);
          VWAP2 = (Double)(result[0]);
        } catch (JFException e) { e.printStackTrace(); console.getErr().println(e); VWAP2 = Double.NaN;}
        return (VWAP2);
    }