config.tradingCalendar = tradingCalendarManager.tradingCalendarByName(tradingCalendarName);
if (config.tradingCalendar == null) {
messages.put(AverageCrossingTradingAgent.TRADING_CALENDAR_NAME, "Trading calendar not found: " + tradingCalendarName);
}
} else {
config.tradingCalendar = new FlatCalendar();
}
config.shortAveragePeriods = DEFAULT_SHORT_AVERAGE_PERIODS;
String tmp = properties.getProperty(AverageCrossingTradingAgent.SHORT_AVERAGE_PERIODS);
if (tmp != null) {
try {