<%@ page import="java.util.Collection, java.util.Iterator, java.math.BigDecimal, org.apache.geronimo.daytrader.javaee6.core.direct.*, org.apache.geronimo.daytrader.javaee6.entities.*, org.apache.geronimo.daytrader.javaee6.utils.*" session="true" isThreadSafe="true" isErrorPage="false"%>
DayTrader Home
DayTrader
<%= new java.util.Date() %>
<% Collection closedOrders = (Collection)request.getAttribute("closedOrders"); if ( (closedOrders != null) && (closedOrders.size()>0) ) { %>
Alert: The following Order(s) have completed.
<% Iterator it = closedOrders.iterator(); while (it.hasNext() ) { OrderDataBean closedOrderData = (OrderDataBean)it.next(); %>
order ID
order status
creation date
completion date
txn fee
type
symbol
quantity
<%= closedOrderData.getOrderID()%>
<%= closedOrderData.getOrderStatus()%>
<%= closedOrderData.getOpenDate()%>
<%= closedOrderData.getCompletionDate()%>
<%= closedOrderData.getOrderFee()%>
<%= closedOrderData.getOrderType()%>
<%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%>
<%= closedOrderData.getQuantity()%>
<% } %>
<% } %>
Welcome <%= accountData.getProfileID() %>,
User Statistics
account ID:
account created:
total logins:
session created:
<%= accountData.getAccountID() %>
<%= accountData.getCreationDate() %>
<%= accountData.getLoginCount() %>
<%= (java.util.Date) session.getAttribute("sessionCreationDate") %>
Account Summary
cash balance:
number of holdings:
total of holdings:
sum of cash/holdings
opening balance:
<% BigDecimal openBalance = accountData.getOpenBalance(); BigDecimal balance = accountData.getBalance(); BigDecimal holdingsTotal = FinancialUtils.computeHoldingsTotal(holdingDataBeans); BigDecimal sumOfCashHoldings = balance.add(holdingsTotal); BigDecimal gain = FinancialUtils.computeGain(sumOfCashHoldings, openBalance); BigDecimal gainPercent = FinancialUtils.computeGainPercent(sumOfCashHoldings, openBalance); %>$<%= balance %>
<%= holdingDataBeans.size()%>
$<%= holdingsTotal %>
$<%= sumOfCashHoldings %>
$<%= openBalance%>
current gain/(loss):
$
<%= FinancialUtils.printGainHTML(gain) %> <%= FinancialUtils.printGainPercentHTML(gainPercent) %>
Note: Click any
symbol
for a quote or to trade.
DayTrader Home
DayTrader