class Tick implements Serializable {

    public boolean inPeriod(DateTime timestamp) {
        return timestamp != null
                && !timestamp.isBefore(beginTime)
                && timestamp.isBefore(endTime);
    }

    public  Tick(Period timePeriod, DateTime endTime);
    public  Tick(DateTime endTime, double openPrice, double highPrice, double lowPrice, double closePrice, double volume);
    public  Tick(DateTime endTime, String openPrice, String highPrice, String lowPrice, String closePrice, String volume);
    public  Tick(DateTime endTime, Decimal openPrice, Decimal highPrice, Decimal lowPrice, Decimal closePrice, Decimal volume);
    public  Tick(Period timePeriod, DateTime endTime, Decimal openPrice, Decimal highPrice, Decimal lowPrice, Decimal closePrice, Decimal volume);

}