Wednesday, February 17, 2016

STOCHASTICS REVISITED

The Stochastics we studied earlier did not prove to be a useful indicator. But using brute force computer calculation there may have been a combination of profits, i.e. we found the 39 day Stochastics to be profitable using a simplistic rule. Buy the stock when Stochastics K moves above the 50% line, provided that both the price and Stochastics K have made a new high, and sell/ sell short the stock when the K stochastics moves below the 50% line provided again that both the price and K stockastics have made a new low.

This simplistic rule did uncover some gains worthwhile to notice them. There is no smoothing of the K in this decision rule, thus only the value Stochastics K is used to signal trades. The above rule did provide some consistent results for medium values of K, while it was not profitable for low values, or higher values of K.

One bad point was that there was only 40% of the trades which produced profit while the other 60% produced losses. Still, this indicator was profitable in the end.

Monday, February 8, 2016

RELATIVE STRENGTH INDEX

Relative strength Index or RSI is a complicated indicator. It is evaluates as follows:

RSI = 100 - [100 / (1+RS)] where RS is the ratio of exponentially smoothed moving average of n- period gains, to exp. smoothed moving average of n- period losses.

RSI only takes into consideration the close price of the stock. This indicator takes many values from the past so it may be seen as better than other indicators which may take only one value from the past i.e. the ROC for example. Therefore, we can say that RSI is more reliable than other indicators though again the RS value ratio may complicate things by adding some noise and make the indicator sometimes unreliable.

The RSI does not work well with small values of n and it works better with higher values of the period n, therefore it is better to work with high values of n.

One way to use RSI is to buy when the RSI crosses above 50%, while to sell when RSI crosses below 50%. For n = 21- day the best results were manifested in backtesting trials. In this setting, in overall, this indicator fared well in the backtesting trials thus, it may be a good tool to use for trading.

Friday, February 5, 2016

VOLUME ACCUMULATION OSCILLATOR

The Volume Accumulation Oscillator has been created by Mark Chaikin. It is a rather complicated formula represented as follows:

VAO = [Close price for a period n - (High price for a period n + Low price for a period n) / 2] * Volume for same period n

VAO = [Cn - (Hn + Ln) / 2] * Vn where n is the period.

What this indicator tries to do is to express the Close price for the period n as a percent of the High and Low of the same period and then weighted, or multiplied by the compounding Volume of the same period.

Right from the beginning, we can say that because volume is a value that often can be erratic, this indicator may suffer from the whimsical ups and downs of the multiplication by the Volume. Perhaps if Volume is smoothed out with a Moving Average may bring better results.

We tested this indicator with doing backtesting and what we found was that the indicator indeed is erratic, i.e. the curves created by n versus equity, were not smooth but jumped high/ low depending on n. Long periods of n, i.e. at n being from 30 to 100 poor results were produced.

Therefore, we cannot say that this indicator is a reliable indicator. Also we see no value to it as it behaves at low standard depending on other indicators. Even smoothing the results with moving averages did not produce any good results therefore, the conclusion can be said that the indicator is not of much value to the stock trader.

Thursday, February 4, 2016

INTEREST RATES AND STOCK PRICES

An interesting association may be uncovered if we test the interest rates of government securities with the stock market. Using monthly or weekly data we uncover that predicting stocks using the rate of change of interest rates, i.e. the one month rate of change which is the current value subtracted from the previous month rate of change, is a profitable system as well as the weekly rate of change, i.e. the 2 week rate of change produced the best results. These two systems produced positive profits that were quite high. Therefore, we can say that the 1 month rate of change of goverment interest rates as well as the 2- week rate of change of the same government securities is producing good results. Results showed that interest rates needed to move quite higher before they were able to influence the stock market. Small changes to the interest rates did not show any association with the stock market, therefore, in the end the interest rates ROC may not be a useful indicator, unless the interest rates raised, or lowered substantially.

Another association can be made that when interest rates are low, they show profitability towards the stock market, but when they are raised above a theshold value then they begin to influence the stock market. Therefore, low values of government interest rates do not have any correlation with the stock market. Interest rates need to move to higher values rather than stay at low values in order to have influence with the stock market.

Tuesday, February 2, 2016

DIRECTION OF SIMPLE MOVING AVERAGE

The Moving Average is a popular indicator and here we take a view at how it works when it changes direction, i.e. falling, or rising.
This indicator is the same as the Rate of Change ROC, because when the ROC crosses zero the same event works with the moving average, i.e. it changes direction. We shall not follow both here, only the Moving Average changing direction.

Some backtesting done proves that the n-day optimal for Moving Average changing direction is 31 days, i.e. the same optimal n for the ROC indicator. Since it is redundant to follow both indicators, the reader is refered to the post we already made about the ROC.

Wednesday, January 27, 2016

COMMODITY CHANNEL INDEX

To clear something out from the beginning, although this indicator has Commodity in the title it is equally applicable to stocks as well. Thus, we well use it for stocks.

The CCI is a complicated indicator. The formula, or formulas to calculate it is/ are as follows below.
There are a few steps to calculate this indicator. For a period characterized by n the indicator requires the following calculations:

CCI = (Mean price for a period - Moving Average for the period) / 0.015 * D

Mean Price for a period = (High of the period + Low of the period + close for the period) / 3
Moving Average for the period is the Moving Average of the Mean price that was just calculated above.
D = 1/n Sum of i=1 to n [Absolute value of Mean price for the period - Moving Average M]

The result of CCI is a statistical measure of the movement of the price and we shall not discuss the technical jargon here.

The indicator is to be used as a percent value usually ranging from -100% to +100%. The rule for buying/ selling the stock is that buy the stock when the indicator is above 100% and sell the stock when the indicator fall below -100%.

After backtesting such indicator, the best result was found to be when n = 90. Although this is a good indicator, the values between +100% and -100% had some impact in the buying/ selling of the stock because it would keep the position outside the stock price and some trends would not be followed thus it would lose profitability. Perhaps it would have been better if instead of making the neutral period to be from +100% to -100%, we could make this to be 0. This was backtested with the stock being bought when the indicator crossed above 0% and sold when it crossed below 0%. The results were suprising because the indicator faired quite well and interesting ly it gave more profit.

The conclusion is that more testing is needed to show whether this indicator is useful to the stock trader. As the results show the indicator can be used without the margin of -100% to +100%.
---------

[I would request perhaps any readers who may find the topics discussed here as interesting, then they may want to contribute some money so I have available resources to write more topics. If you can submit a small payment for example to my paypal account email chrisk144@gmail.com then I can continue writing my blogs without delay, or hesitations because of my busy time/ schedule, or lack of resources. Thank you very much.]

Tuesday, January 19, 2016

NEW HIGH, NEW LOW RATIO


With this indicator, the new high and new low values play some interest when they are divided to create the oscillator. Backtesting of this rationale was hopeful to uncover any positive results. Because of some randomness that exists when single values are taken from stock past data, usually the moving average of the stock values is taken before the backtesting is to run.

With various backtesting runs, it was found that the 10 day Moving Average was the best to smooth out the slightly erratic data of the stock. The results were layed down in statistical formation which is out of the context of this book. Therefore we will not discuss how the results were gathered for this indicator.

One interesting occurrence about this indicator was that the value of New High / New Low that showed some positive results was found to be around 40, i.e. the 10 day MA of (New High/ New Low) = 40.

The results do not hold much value because they were constructed in terms of statistical analysis rather than pure traditional backtesting. The conclusion is therefore that this indicator needs more studying and testing because it can be shown whether it is useful in predicting stock price movement.

Perhaps someone undertake the job to backtest this indicator in a better formation, i.e. simplier terms of buying or selling when the ratio hits a specific value without using statistical practices. Therefore we cannot conclude whether it is a good indicator in this respect. More research is basically needed to uncover any usefulness in this particular indicator.
---------

[I would request perhaps any readers who may find the topics discussed here as interesting, then they may want to contribute some money so I have available resources to write more topics. If you can submit a small payment for example to my paypal account email chrisk144@gmail.com then I can continue writing my blogs without delay, or hesitations because of my busy time/ schedule, or lack of resources. Thank you very much.]

Thursday, January 14, 2016

VOLUME PRICE TREND

Volume Price Trend is an indicator which uses the volume of the day to create an weighted value, i.e. it is a volume weighted price trend.

The formula for the VPT is as follows: The Sum of i=1 to n of (Close Price of i - Close price of previous period) * Volume

The result is an indicator with positive and negative values. If VPT is positive then buy long, if VPT is negative then sell the long position and buy short.

n is the value that needs to be optimized using backtesting software. The result was that for n=50, it produced quite good results, higher than other indicators which were back- tested in similar fashion.

Therefore, this indicator holds some importance and it may be a good indicator to use for the longer term. Because it is not a very popular indicator, it is not used quite often which gives it some injustice. More research is necessary to decide whether it holds promise to provide profit, or not. More tests necessary to be done for this indicator, until it is proven to be useful.

---------

[I would request perhaps any readers who may find the topics discussed here as interesting, then they may want to contribute some money so I have available resources to write more topics. If you can submit a small payment for example to my paypal account email chrisk144@gmail.com then I can continue writing my blogs without delay, or hesitations because of my busy time/ schedule, or lack of resources. Thank you very much.]

Monday, January 4, 2016

BIASED VS UNBIASED INDICATORS

Talking about the simple moving average MA, this is a not biased practice, i.e. that the Simple MA takes all the past data as important and does not discriminate between newer data and older ones.

When someone tries to apply the Simple MA rule for trading stocks, then they may find a small pitfall. Although it is not a bad technique to follow an MA when trading long but also short as well, then this simplistic approach may find one ill effect. Because the SMA gives equal significance to both short- term past data but also longer term (older) data then it is understandable that when the stock will have strong trends either upward or downward, then the stock will be regarding the newer data as more important than the older data. On the other hand, our SMA strategy for trading does not do such thing, i.e. it is not biased at all in regard to the past data, so it may indeed be prone to errors. This is true actually and it is the weakness of the Simple Moving Average that it may be trading well when the stock is fairly stable, but when it starts to show strong, or significant trends then the Simple MA simply will start to fall behind and will show random instability which may very well result in losses. Therefore, at least empirically we showed here the strong points but also the weak points of a simple moving average.

For strong trends, a biased indicator may be needed, i.e. exponential moving average. Indeed, our simple moving average may stat to become 'blind' when the market is a bull market, or also a bear market, i.e. when it has strong downward moves as well.

On the other hand, although an exponential moving will pick better at trendy stocks, it will start to show erroneous behavior when the market is fairly stable, i.e. with sideways movement. Unfortuantely, we dont know when the stock will depict strong trends, or when it will show sideways movement. Therefore, we may not be able to decide which of these two indicators to choose.

Some people may say we use both indicators so one can excel during strong trends, while the other will benefit when the market is sideways. This again is not a good practice because these two indicators are opposite each other. If we try to listen to both indicators, then again the one indicator i.e. the Simple moving average will be exiting the market fairly quickly when there is a trend, but the exponential moving average will still be holding the long position. If we listen to the SMA, then we will lose the chance that the exponential moving average gave us to ride the trend, while listening to the EMA, will have the opposite pitfall of doing a good job during trends but trading erroneously when the market is moving sideways.

This shows that using our logic, we can deduce that both of these indicators have the limits on how good they can be. Therefore, we can conclude that although Moving Averages are good predictors of future stock prices, they have their limits on how good they can be in taking advantage of price movements.

---------

[I would request perhaps any readers who may find the topics discussed here as interesting, then they may want to contribute some money so I have available resources to write more topics. If you can submit a small payment for example to my paypal account email chrisk144@gmail.com then I can continue writing my blogs without delay, or hesitations because of my busy time/ schedule, or lack of resources. Thank you very much.]