Package edu.brown.benchmark.tpce.util

Examples of edu.brown.benchmark.tpce.util.EGenMoney.lessThanOrEqual()


        /*
         *  Check if the order can be fulfilled immediately
         *  i.e., if the current price is less than the buy price
         *  or the current price is more than the sell price.
         */
        if (((tradeType == TradeType.eLimitBuy || tradeType == TradeType.eStopLoss) && priceAtPendingTime.lessThanOrEqual(limitPrice)) ||
            ((tradeType == TradeType.eLimitSell) && limitPrice.lessThanOrEqual(priceAtPendingTime))) {
            // Trigger the order immediately.
            submissionTimeFromPending = rnd.doubleRange(0.5 * meanInTheMoneySubmissionDelay, 1.5 * meanInTheMoneySubmissionDelay);
        }
        else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.