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.]