finance.stocks
Class EODQuotes
java.lang.Object
finance.stocks.EODQuotes
public class EODQuotes
- extends java.lang.Object
Copyright 2005, DocJava, Inc.
User: dlyon
Date: Sep 18, 2006
Time: 5:22:17 PM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EODQuotes
public EODQuotes(EODQuote[] e)
EODQuotes
public EODQuotes(java.lang.String[] s)
throws java.text.ParseException
- Throws:
java.text.ParseException
add
public void add(EODQuote vr)
getRecords
public EODQuote[] getRecords()
getRecords
public EODQuote[] getRecords(java.util.Date start,
java.util.Date end)
- Get the records between start and end, exclusive
- Parameters:
start
- end
-
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSmaNew
public double[] getSmaNew(int period)
printSma
public void printSma(int period)
getEma
public double getEma(int period,
double sc)
getClosePrices
public double[] getClosePrices()
getFormat
public static java.lang.String getFormat(double n)
sortByDateAscending
public void sortByDateAscending()
- Sorts the options from earliest date to latest date.
sortByDateDescending
public void sortByDateDescending()
main
public static void main(java.lang.String[] args)
throws java.text.ParseException
- Throws:
java.text.ParseException