|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Within this Enterprise JavaBean we implement Oscillators such as the money flow index, momentum and rate of change (ROC) indicators. Oscillators are generally used to identify short term price reversal points as opposed to longer term trending dynamics.
| Method Summary | |
double |
momentum(double closing,
double ndayPrice)
We evaluate the n-day momentum which is simply the difference between today's closing price and the close price n days ago. |
double |
moneyFlowIndex(double[] high,
double[] low,
double[] closing,
double[] volume)
Evaluates the Money Flow Index (MFI) measures the strength of money flowing in and out of a security. |
double |
rateOfChange(double closing,
double ndayPrice)
Calculate the n-day rate of change (ROC) indicator is related to the momentum indicator and will give similar readings. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double moneyFlowIndex(double[] high,
double[] low,
double[] closing,
double[] volume)
throws RemoteException
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.
RemoteException
public double momentum(double closing,
double ndayPrice)
throws RemoteException
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.
RemoteException
public double rateOfChange(double closing,
double ndayPrice)
throws RemoteException
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.
RemoteException
|
WebCab Technical Analysis (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||