finance.eod
Class EODQuotes

java.lang.Object
  extended by finance.eod.EODQuotes

public class EODQuotes
extends java.lang.Object


Constructor Summary
EODQuotes()
           
EODQuotes(EODQuote[] e)
           
EODQuotes(java.lang.String[] s)
           
 
Method Summary
 void add(EODQuote vr)
           
 double[] getClosePrices()
           
 double getCoefficientOfVariation()
           
 java.util.Date[] getDates()
           
 double getEma(int period, double sc)
           
static java.lang.String getFormat(double n)
           
 EODQuote getHighestClosingPriceQuote()
          Search the list of quotes and return the EODQuote with the highest closing price.
 EODQuote getHighestPriceQuote()
           
 double[] getHighPrices()
           
 EODQuote getLowestClosingPriceQuote()
          Search the list of quotes and return the EODQuote with the lowest closing price.
 EODQuote getLowestPriceQuote()
           
 double[] getLowPrices()
           
static EODQuote getNextDayQuote(java.lang.String symbol, java.util.Date startDate)
          Return the quote for the next valid trading day.
 double[] getOpenPrices()
           
 EODQuote getQuote(java.util.Date date)
           
 EODQuote getQuote(int i)
           
 EODQuotes getQuotes(EODQuoteFilter qf)
           
 EODQuote[] getRecords()
           
 EODQuote[] getRecords(java.util.Date start, java.util.Date end)
          Get the records between start and end, exclusive
 double getRsi(int period)
           
 int getSize()
           
 double[] getSmaClose(int window)
           
static double[] getSmaWindow(double[] in, int windowIncrement, int windowSize)
           
 double getStandardDeviation()
           
 Trades getTrades(java.lang.String symbol, int shares, EODParmetricQuoteFilter buyFilter, EODParmetricQuoteFilter sellFilter)
           
 Trades getTrades(java.lang.String symbol, int shares, EODQuoteFilter buyFilter, EODQuoteFilter sellFilter)
           
 double[] getVolumes()
           
static void main(java.lang.String[] args)
           
 void printSma(int period)
           
 EODQuotes reverseRecords()
           
 void sortByDateAscending()
          Sorts from earliest date to latest date.
 void sortByDateDescending()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EODQuotes

public EODQuotes()

EODQuotes

public EODQuotes(EODQuote[] e)

EODQuotes

public EODQuotes(java.lang.String[] s)
          throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

getSize

public int getSize()

add

public void add(EODQuote vr)

reverseRecords

public EODQuotes reverseRecords()

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:

getQuote

public EODQuote getQuote(int i)

getNextDayQuote

public static EODQuote getNextDayQuote(java.lang.String symbol,
                                       java.util.Date startDate)
                                throws java.text.ParseException,
                                       java.io.IOException
Return the quote for the next valid trading day. EODQuotes.getNextDayQuote(DateUtils.getDate("04/03/2007"));

Parameters:
startDate -
Returns:
quote for next valid trading day.
Throws:
java.text.ParseException
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSmaClose

public double[] getSmaClose(int window)

getCoefficientOfVariation

public double getCoefficientOfVariation()

getSmaWindow

public static double[] getSmaWindow(double[] in,
                                    int windowIncrement,
                                    int windowSize)

printSma

public void printSma(int period)

getRsi

public double getRsi(int period)

getEma

public double getEma(int period,
                     double sc)

getDates

public java.util.Date[] getDates()

getClosePrices

public double[] getClosePrices()

getLowestPriceQuote

public EODQuote getLowestPriceQuote()

getHighestPriceQuote

public EODQuote getHighestPriceQuote()

getQuotes

public EODQuotes getQuotes(EODQuoteFilter qf)

getTrades

public Trades getTrades(java.lang.String symbol,
                        int shares,
                        EODQuoteFilter buyFilter,
                        EODQuoteFilter sellFilter)

getTrades

public Trades getTrades(java.lang.String symbol,
                        int shares,
                        EODParmetricQuoteFilter buyFilter,
                        EODParmetricQuoteFilter sellFilter)

getLowestClosingPriceQuote

public EODQuote getLowestClosingPriceQuote()
Search the list of quotes and return the EODQuote with the lowest closing price.

Returns:
lowest closing price

getHighestClosingPriceQuote

public EODQuote getHighestClosingPriceQuote()
Search the list of quotes and return the EODQuote with the highest closing price.

Returns:
highest closing price

getLowPrices

public double[] getLowPrices()

getHighPrices

public double[] getHighPrices()

getVolumes

public double[] getVolumes()

getOpenPrices

public double[] getOpenPrices()

getFormat

public static java.lang.String getFormat(double n)

sortByDateAscending

public void sortByDateAscending()
Sorts from earliest date to latest date.


getStandardDeviation

public double getStandardDeviation()

getQuote

public EODQuote getQuote(java.util.Date date)

sortByDateDescending

public void sortByDateDescending()

main

public static void main(java.lang.String[] args)
                 throws java.text.ParseException,
                        java.io.IOException
Throws:
java.text.ParseException
java.io.IOException