dailyValueMove *= futureSecurity.getUnitAmount();
} else if (security instanceof EquityOptionSecurity) {
final EquityOptionSecurity optionSecurity = (EquityOptionSecurity) security;
dailyValueMove *= optionSecurity.getPointValue();
} else if (security instanceof EquityIndexOptionSecurity) {
final EquityIndexOptionSecurity optionSecurity = (EquityIndexOptionSecurity) security;
dailyValueMove *= optionSecurity.getPointValue();
} else if (security instanceof EquityIndexFutureOptionSecurity) {
final EquityIndexFutureOptionSecurity optionSecurity = (EquityIndexFutureOptionSecurity) security;
dailyValueMove *= optionSecurity.getPointValue();
} else if (security instanceof IRFutureOptionSecurity) {
final IRFutureOptionSecurity optionSecurity = (IRFutureOptionSecurity) security;
dailyValueMove *= optionSecurity.getPointValue();
}
// Multiply by the Trade's Quantity
final Double dailyPnL = target.getTrade().getQuantity().doubleValue() * dailyValueMove;
// 5. Return