Category Archives: Research

Stock investing case studies: stock analysis, making investment decisions, and conclusions.

Pre-Release Announcement

Addaptron Software has been making steady progress with the development of the next generation of high quality software tools for investors/traders. Although there is still a lot of work ahead, Addaptron Software is getting ready to deliver a new software product, SMT-1 (Stock Market Tools, version 1.0). Its first (beta) release is scheduled for October-November 2018.

One of the achievements is all-in-one output forecast signal. This signal is combined from technical indicators, waves, and cycles data by Artificial Intelligence (AI) module. Also based on prediction accuracy, AI decides what time-frame signals to include. There are three types of output: (1) positive numbers for up trending symbols, (2) negative numbers for down trending ones, and (3) zero numbers for uncertain prediction (when AI is unable to provide a reliable prediction result).

In short, SMT-1 has the following benefits:

  • Its comprehensive AI forecast output is combined into a single list of ranked symbols. Such a simple concept enables most investors/traders to use the software easily.
  • Since AI is able to optimize many settings parameters, the number of user-defined parameters is minimized so that users can save time.
  • The software recommends entry/exit prices that allows users just to place a limit buy or limit sell order for the next market day.
  • The software has a back-test simulation functionality that allows users to try different trading strategies.
  • Except a calculated sell signal, the software has an ability to maximize trading profit by optimizing additional sell-trigger parameters.
  • The software includes an extra feature to analyze a current position, recommend the action, track buy-sell transactions, and measure trading performance.
A screenshot of SMT-1 alpha version, main interface
A screenshot of SMT-1 alpha version, main interface

The SMT-1 release will represent a leap forward in usability, functionality, performance and value for Addaptron Software product users. Visit our website addaptron.com at the end of 2018 to download a beta version of SMT-1 and take advantage of this huge upgrade and promotional deal.

New Stock Market Forecast Tools SMFT-2 Released

Addaptron Software released a new Stock Market Forecast Tools SMFT-2. It is an integrated advanced system that is the next generation improved software based on older SMFT-1 version and a few recent development projects.


New Stock Market Forecast Tools SMFT-2

 


Most prediction modules provided with back-test calculation to estimate the accuracy of forecast within the recent performance periods. Additionally, the back-testing computations play an important role if more than one method is used. It allows estimating a weight of each method in a composed result; the weights that are proportional to the ability of the methods to predict the price.

SMFT-2 currently includes five major modules:

  • TA Predictor – prediction for day or week period based on technical analysis, pattern recognition and Neural Networks (generates composite result). Back-analysis models optimization and batch calculation for comparative analysis included.
  • Waves – Elliott Wave model: back-test optimization, up to 10 waves forecast.
  • Cycles – prediction based on cycle analysis.
  • Week day – search for maximum performance using price behavior depending on week day. It allows discovering the best entry/exit days of week; batch calculation included.
  • Month day – search for maximum performance using price behavior depending on month day. It allows discovering the best entry/exit days of month; batch calculation included.

The implemented methods are statistically proven and widely used. All modules share the same EOD (end-of-day) input data. The software is provided with a free Downloader that allows downloading EOD historical quotes files from the Internet for free. A fully-functional software SMFT-2 during initial 30-day period is free. The software and associated documentation are delivered via download links over the Internet. For technical requirements, installation instruction, and download link, visit SMFT-2 download page.

Prediction Combined with Simple Algorithm Provides Stable Return

Any prediction can fail but if it is combined with well-tested buy-sell rules, the result is much better. Addaptron Software provides predictions of major ETFs prices (Open, High, Low, Close) for the next day. This article describes one of the simplest algorithms to use one-day candle prediction data. The algorithm consists of four simple rules:

  1. Place Buy Limit order with predicted Low price before the stock market is opened.
  2. As soon as the Buy Limit order is completed, place Sell Limit order with predicted High price.
  3. Cancel the order if it is not completed during the first half of the stock market day.
  4. If the stock market is about to close but the order is not completed, cancel the Sell Limit order and place Sell Market order.

The following charts and tables demonstrate one of the practical examples of described above approach (symbol BOIL).

Predicted and actual prices chart (dark green and red filled candles – predicted, light green and red line candles – actual):

The chart of predicted and actual prices


Predicted and actual prices table:

The table of predicted and actual prices


Intraday performance chart (actual prices) for the same period:

The intraday prices


The result of using the described algorithm:

The result of using the described algorithm


The example is based on the following assumptions: 300 shares are used for trading, transaction fee is $10 so that 2 transactions (buy and sell) within day cost $20. Another example (symbol SSO) can be find here

Candlestick Patterns Decoded by Neural Network

Candlestick patterns can signal a trend continuation or reversal. Many traders and investors know how to benefit from candlesticks analysis. As a rule, a simple chart analysis is used that requires analysts to remember and correctly interpret, at least, typical candlestick patterns. However, the number of possible different candlestick shapes and their combinations in a row can be huge. Besides, some patterns interpretations might be considered as contradictory or doubtful.

Fortunately, statistical methods combined with computer power can be a good solution to make the candlestick patterns recognition works less time-consuming and more effective. These days, Neural Network (NN) can help to automate a candlestick patterns recognition task. NN should be properly trained in order to be able to predict the next candlestick parameters with the highest probability. One of the obvious problems of implementing a candlestick pattern NN predicting system is a formalization of inputs.

Numerous tests show many possibilities of improving NN candlestick patterns recognition systems. For example, output result can be composed from selected optimized calculations based on different historical periods. Also there are many different ways to formalize the shapes and relative positions of candlesticks. As well as, as back- and forward-testing show, it is reasonable to re-train NN for each particular type of shares and latest historical periods to make the forecast more accurate.

Optimal Solution. There is an automated tool FTA-2 (free use of fully-functional version for one month). It has module which enables using Neural Network to recognize typical candlestick patterns and predict future prices (open, high, low, close). This module predicts only one next candlestick but the prediction can be successfully used for different widths of candlestick, i.e., the number of trading days in one candlestick. The module has been enhanced to calculate result that is composed from different historical periods that allows making the forecast more accurate. Also it can perform comparative forecast analysis for many symbols.

Candlestick Patterns Decoded by Neural Network

Useful resources:

  • Candlestick basics – major signals
  • Neural Network basics – introduction
  • The computer program which enables using Neural Network to recognize typical candles patterns and predict future prices – software FTA-2

Using Parabolic SAR with Neural Network for Predicting

Parabolic SAR (SAR stands for Stop-And-Reverse) is a trend-following indicator that has been used by many traders for decades. Its major application is in trading systems to define a trailing stop, i.e., to protect profit when a price trend changes. The term “parabolic” appeared to characterize the indicator parabola shape that is due to using an accelerating factor in the formula. SAR is especially effective in a trending market. To make it more effective in a sideways market, it is often used in conjunction with other indicators.

SAR indicator gives a strong signal when a price trend is about to reverse, therefore, this indicator can be used for prediction. To compare the predictive ability of SAR with other indicators, it has been implemented into the technical analysis module of Fundamental-Technical Analyzer FTA-2. SAR calculations have been used to collect statistics based on the forecast simulations for major indexes and ETFs during August-October 2011 period. As a result, SAR’s position was mostly in “top ten” indicators list.

Using Parabolic SAR with Neural Network for Predicting

The research and presented chart are made by Fundamental-Technical Analyzer FTA-2, one of the software modules that enables composing Neural Network forecasts of many indicators with weights accordingly to each indicator’s predictive ability.

Omitting logical rules for accelerating factor and reversal conditions, a recurring core formula for SAR is the following:

SAR (current point) = AF * [EP – SAR (previous point)] + SAR (previous point)

where:
AF – Acceleration Factor (normally starts from 0.02 and increases by 0.02 if each next point reaches a new extreme, saturates until 0.2);
EP – Extreme Point (lowest low or highest high).

To summarize, Parabolic SAR can be enriched by combining it with Neural Network and successfully used for predicting stock market prices. Combing it with Neural Network allows extracting more statistically stable patterns and, therefore, providing a better accuracy in the forecast. As simulations showed, improved results can be achieved if SAR is transformed into more sensitive indicator by subtracting it from close price (it indicates the degree of SAR and price convergence).

Best vs. Many Technical Indicators: When Error Is Useful

Some indicators can provide a better prediction than others so that it seems logically to use the best selected ones to build a composite forecast. On the other hand, even the best indicators can fail. The questions is how to get a consistent good accuracy in predicting – by using only a few best indicators or many good ones. The answer is not obvious and, therefore, a factual comparative analysis would be needed to shed some light on this issue. This short report is based on limited statistical researches; it is an attempt to reach a certain conclusion.

About Expert Method. Apparently, the more good forecasts are taken into consideration, the more precise can be an approximation to actual value. There is Expert Method. This method can be explained by following. As example, an experimentalist shows a pen and asks a group of about 40 people to write down their estimate of the length. Then he collects notes and calculates the average number – normally it is almost 100% accurate. Why it works? Because everyone makes errors in different directions so that averaging gives a precise result.

The Details of Experiment. To find an optimal number of top performing indicators, two tests have been done – using artificial data and real market data. Artificial data allow performing forward testing with more consistent statistics. Although back-testing has been done on out-of-sample sets, it did not have the same forward-testing success every time. Forward testing showed that in average few indicators might produce less accurate prediction than many.

Best vs. Many Technical Indicators: When Error Is Good
The researches and presented chart are made by Technical Analyzer TA-1 (the software is able to compose Neural Network forecasts of many indicators with weights accordingly to each indicator’s predictive ability).

Conclusion. The main conclusion is that relying on a couple of best indicators might yields less consistent success over a long run than using many best and good ones. However, too many is another extreme and not good. The second conclusion is that the list of best indicators is not static – it evolves depending on many factors, including market conditions and, probably, on the number of traders employing particular indicators to make their buy-sell decisions. Thirdly, if the best current top of indicators is known, here is a magic number – it is around 30. And finally, better results are possible if indicators are combined accordingly to their latest back-testing ranking.

Divergence Indicators Demonstrate Better Predictive Abilities

Technical analysts use many different indicators. Not all indicators are equally good. Some of them have better predictive abilities than others at given conditions. Statistical results of the research for stocks and indexes during the last several months have showed the way to improve some regular indicators. In short, if an indicator is trend-differentially coupled with price – it demonstrates better predictive abilities than a pure indicator.

Calculating Divergence IndicatorAmong studied indicators are Relative Strength Index (RSI) and Moving Average Convergence/Divergence (MACD) indicators. They have been transformed to a slope of line and differentially-coupled with a price line slope. Indicators and price transformation to line slopes has been performed using Least Squares Linear Regression within a sliding 10-day period (moving window). A comparative analysis of indicators’ predictive abilities showed that these two coupled ones are better than around 90% of all other (57) the most popular indicators.

The chart below shows an example of such forecast:

The research results presented here have been calculated using a feature of Technical Analyzer TA-1 (TA). Except analyzing chart with indicators and historical data, TA enables to perform a 10-day forecast using Artificial Neural Network. The calculations can be done on the basis of one selected technical indicator or all available. If all indicators used, TA decides how much weight should be assigned for each indicator’s forecast in a composite result by using back-testing for particular market conditions and a specific stock. Each weight is proportional to a predictive ability of a corresponding technical indicator.

New Trading Decision Support Systems Group on LinkedIn

New Trading Decision Support Systems group on LinkedInThe new group Trading Decision Support Systems is intended to be a resource for individual/institutional traders/investors and software developers in stock market area to share ideas, initiate and participate discussions, benefit from the collective intelligence, and to expand network. It will be primarily focused on such topics as:

  • Trading EOD and intraday different asset classes: trading tips, strategies, why, how, and results.
  • Trading systems: algorithms, methods, technologies, human factor, and statistics.
  • Software tools to support traders decisions: forecast methods, simulations, back-testing, and optimization.
  • Technical Analysis: indicators and chart patterns.
  • Fundamental Analysis: financial ratios and predictive models.
  • News: analysis and formalization by converting to measurable variables to automate systems with contributing news factor.
  • Numerical methods, data processing, artificial intelligence, and modeling in stock market areas.

Many things remain unchangeable in a trading world – supply-demand price balance, greed-fear driven mistakes, as well as, ability to think, make right decisions, and find the best solutions. When once winning approaches, strategies, or methods failed, many traders are prone to analyze the reasons why it happened. Then they create new approaches and develop new successful systems. If systems are automated, it is easy and fast to test them, collect and analyze back-testing and live statistics, and then make necessary improvements. That is why it is important to implement the best ideas in software applications that can be also used by others.

The computational technologies are changing. Systems empowered by Artificial Intelligence have self-learning abilities that enable them to adapt to market changes. One of the purposes of this group is to bring together the developers of decision support software and traders-users for mutual benefits: the developers get more ideas about their products’ improvements and make a better progress in developing software for traders, the users arise issues relating to their needs and wants. Hopefully everyone will find something useful participating in this group.

You are welcome to join this newly created networking group. Be the first to start a relevant discussion, promote your product or service. Please join Trading Decision Support Systems group on LinkedIn!

Using Quality Function in Investment Analyzer

Stock market investors and traders are making their decisions trying to analyze all relevant factors. Indeed, a good decision should be based on a sufficient number of criteria taking into consideration many company’s fundamentals, its stock characteristics, and external factors. During this process the market participants dealing with selecting sufficient volume of data and converting quantitative and qualitative parameters into valuable information. How to deal with a huge amount of data? How to choose the right data to analyze? What is the best way to process all info inputs?

One of the parts in decision-making chain that is often overlooked is a proper interpretation of data. There are different risks of converting data into valuable information. One of them occurs when some of the factors are exceedingly overvalued and others are neglectfully undervalued and, therefore, this might significantly diminish the quality of output signals for making decision.

One of the solutions is to use a computer program Investment Analyzer InvAn-3/4. It processes automatically all input data converting them into one number, i.e., composite rating. For better analysis, important company-stock characteristics are divided into homogeneous groups as components for further calculation of the composite rating. These components are: fundamental, technical, and timing ratings (FTTR). Finally, the program combines FTTR that allows measuring the quality of a company-stock by a single number.

The composite rating is a result of harmonic averaging of FTTR that initially transformed by Quality Auto-Function (HAQF method) with different weights. Applying HAQF to FTTR allows modeling stock and its company quality very realistically. It enables to reflect accurately the quality of company-stock as a system. In other words, this composition algorithm of the components ensures the following three principles:

  1. System reliability depends on reliability of its weakest part(s)
  2. Too good some system’s component(s) cannot mask the rest of components
  3. The composite result is formed by all components accordingly to each component’s importance

The synthesis of ratios and parameters is performed on the basis of HAQF method that allows modeling company-stock state and dynamics very close to reality. Quality Function (QF) transforms these ratios and parameters (factors) with different critical and sufficient values. The main purpose of Quality Function is to model system quality by normalizing with two characteristic parameters – sufficient and critical. When a certain parameter has its value less than critical, the function approaches to zero. If some parameter exceeds the sufficient value, the function ceases increasing. The following example of non-symmetrical Quality Function (critical value is 30, sufficient value is 250) is to help to understand QF:

Using Quality Function in Investment Analyzer

Neural Network vs. Cycle Analysis to Predict the Stock Market

The purpose of this research was to compare two statistical methods: one that based on Cycle Analysis, another – on a simple Neural Network. Price and volume data were used to train this particular Neural Network. These statistical forecasts were built using historical data of S&P-500 index for six months (from June 2009 to January 2010).

The charts below shows how actual 5-day performance (yellow line) differ from predicted performances by these two methods. The top half is the comparison of Neural Network prediction, bottom half – Cycle Analysis. Green bars mean buy signals, red – sell*.

Neural Network vs. Cycle Analysis to Predict the Stock Market

Three major conclusions for this particular historical period:

  1. Cycle Analysis prediction gives signals too early, Neural Network prediction – too late.
  2. In average, the prediction by Cycle Analysis showed slightly better accuracy than the one by Neural Network.
  3. It seems logical to combine these two methods to improve the accuracy.

* ) The calculations have been performed by an integrated experimental system that combined two applications: Cycle Analysis predictor SMAP-3 and Neural Network predictor NNSTP-2