WebCab Technical Analysis
(J2SE Edition)

webcab.lib.finance.trading.indicators
Class Filters

java.lang.Object
  |
  +--webcab.lib.finance.trading.indicators.Filters
All Implemented Interfaces:
Serializable

public class Filters
extends Object
implements Serializable

Here we details a number of filters which can be applied to `clean' the underlying time series making it more amendable to analysis.

See Also:
Serialized Form

Constructor Summary
Filters()
          Creates a new instance.
 
Method Summary
 double medianPrice(double high, double low)
          Evaluates the Median Price which is the midpoint of each days trading range.
 double typicalPrice(double high, double low, double closing)
          Evaluates the Typical Price which is arithmetic average of the high, low and closing price for a trading day.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filters

public Filters()
Creates a new instance.

Method Detail

typicalPrice

public double typicalPrice(double high,
                           double low,
                           double closing)
Evaluates the Typical Price which is arithmetic average of the high, low and closing price for a trading day. The Typical Price is often used in place of the closing price within trading systems.

Parameters:
high - the high of the last trading day
low - the low of the last trading day
closing - the closing price on the last trading day

medianPrice

public double medianPrice(double high,
                          double low)
Evaluates the Median Price which is the midpoint of each days trading range. By replacing an interval with a point you are able to draw a daily line chart of a securities price action.

Parameters:
high - the traded high on the trading day under consideration
low - the traded low on the trading day under consideration

WebCab Technical Analysis
(J2SE Edition)