Package com.quantcomponents.core.model.beans

Examples of com.quantcomponents.core.model.beans.TradingPeriodBean


    closingDays.add(new BareDate(2012, 12, 25));
    closingDays.add(new BareDate(2012, 12, 31));
    closingDays.add(new BareDate(2011, 1, 1));
    bean.setClosingDays(closingDays);
    Set<WeekTradingDay> weekTradingDays = new HashSet<WeekTradingDay>();
    TradingPeriodBean tpBeanUnique = new TradingPeriodBean();
    tpBeanUnique.setStartHour(10);
    tpBeanUnique.setStartMinute(0);
    tpBeanUnique.setEndHour(22);
    tpBeanUnique.setEndMinute(30);
    TradingPeriodBean tpBeanMorning = new TradingPeriodBean();
    tpBeanMorning.setStartHour(10);
    tpBeanMorning.setStartMinute(0);
    tpBeanMorning.setEndHour(13);
    tpBeanMorning.setEndMinute(30);
    TradingPeriodBean tpBeanAfternoon = new TradingPeriodBean();
    tpBeanAfternoon.setStartHour(14);
    tpBeanAfternoon.setStartMinute(0);
    tpBeanAfternoon.setEndHour(23);
    tpBeanAfternoon.setEndMinute(30);
    TradingDayBean tdBean1 = new TradingDayBean();
    tdBean1.setTradingPeriods(new TradingPeriodBean[] { tpBeanUnique });
    TradingDayBean tdBean2 = new TradingDayBean();
    tdBean2.setTradingPeriods(new TradingPeriodBean[] { tpBeanMorning, tpBeanAfternoon });
    weekTradingDays.add(new WeekTradingDay(Calendar.MONDAY, tdBean1));
View Full Code Here

TOP

Related Classes of com.quantcomponents.core.model.beans.TradingPeriodBean

Copyright © 2018 www.massapicom. 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.