|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of Oscillators. This interface provides the same functionality as the Oscillators remote interface.
Oscillators| Method Summary | |
double |
momentum(double closing,
double ndayPrice)
Method momentum(double, double) as defined in the Oscillators remote interface. |
double |
moneyFlowIndex(double[] high,
double[] low,
double[] closing,
double[] volume)
Method moneyFlowIndex(double[], double[], double[], double[]) as defined in the Oscillators remote interface. |
double |
rateOfChange(double closing,
double ndayPrice)
Method rateOfChange(double, double) as defined in the Oscillators remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double moneyFlowIndex(double[] high,
double[] low,
double[] closing,
double[] volume)
Description copied from the Oscillators interface:
Evaluates the Money Flow Index (MFI) measures the strength of money flowing in and out of a security. The MFI is related to the Directional Movement Indicator of Wellas Wilder, but the MFI system also takes into account the volume as well as the price action.
Interpretation
Divergence of the indicator within a continuing trend indicates
that a reversal is imminent. The MFI also is a good means to
signal market tops and bottoms. A reasonable rule is a market top
is given more significance when the MFI is above 80 and a market
bottom is given more significance when the MFI is below 20.
Evaluation
The Money Flow Index (MFI) is evaluated over a given user defined
number of trading periods. To evaluation of the MFI follows the
below steps:
high - an array where the first terms corresponds the trading high on the last trading period, the second term corresponds to the high on the previous trading period and so on. Where the last term corresponds to the highest traded value on the earliest trading period from the period over which the MFI is evaluated.low - an array where the first terms corresponds the trading low on the last trading period, the second term corresponds to the low on the previous trading period and so on. Where the last term corresponds to the lowest traded value on the earliest trading period from the period over which the MFI is evaluated.closing - an array where the first terms corresponds the closing price on the last trading period, the second term corresponds to the closing price on the previous trading period and so on. Where the last term corresponds to the closing price on the earliest trading period from the period over which the MFI is evaluated.volume - an array where the first terms corresponds the volume on the last trading period, the second term corresponds to the volume on the previous trading period and so on. Where the last term corresponds to the volume on the earliest trading period from the period over which the MFI is evaluated.
IllegalArgumentException - thrown if any of the arrays given as parameters
are empty, not equal in length or contain elements which is strictly negative.Oscillators.moneyFlowIndex(double[], double[], double[], double[])
public double momentum(double closing,
double ndayPrice)
Description copied from the Oscillators interface:
We evaluate the n-day momentum which is simply the difference between today's closing price and the close price n days ago. The momentum indicator as the name suggests is the velocity with which the price is rising or falling, and hence will reflect how aggressively the asset is being purchased or sold.
Extended values and/or turning points of the momentum are good indicators of oversold or over brought conditions (respectively).
closing - the last closing price of the asset.ndayPrice - the closing price of the asset n days ago.
IllegalArgumentException - thrown if either parameter is strictly negative.Oscillators.momentum(double, double)
public double rateOfChange(double closing,
double ndayPrice)
Description copied from the Oscillators interface:
Calculate the n-day rate of change (ROC) indicator is related to the momentum indicator and will give similar readings. The (n-day) rate of change (ROC) is just the last closing price divided by the closing price n-days ago.
As with the case with the momentum indicator the rate of change (ROC) indicator on extended values and/or turning points indicates oversold or over brought conditions (respectively).
closing - the last closing price of the asset.ndayPrice - the closing price of the asset n days ago.
IllegalArgumentException - thrown if either parameter is strictly negative.Oscillators.rateOfChange(double, double)
|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||