com.exponto.jstock.indicators
Class MacdAlgorithm

java.lang.Object
  extended bycom.exponto.jstock.indicators.MacdAlgorithm

public class MacdAlgorithm
extends java.lang.Object

Calculates the MACD for a LogDataSeries with given parameters

Author:
kaare

Constructor Summary
MacdAlgorithm()
           
 
Method Summary
static java.util.ArrayList computeMacd(LogDataSeries logDS, MacdParameters macdParameters)
          Calculates the MACD over a periode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacdAlgorithm

public MacdAlgorithm()
Method Detail

computeMacd

public static java.util.ArrayList computeMacd(LogDataSeries logDS,
                                              MacdParameters macdParameters)
Calculates the MACD over a periode.

Parameters:
logDS - the logDataSeries
Returns:
an ArrayList with MACD(slow/fast/trigger) data


Copyright © 2004 Kaare Ranum