Identifying Short Term Market Turns Using Neural Networks and Genetic Algorithms



Similar documents
A Candlestick Primer. By Tom Bierovic

Golden Penny Stock Millionaires Golden Market Secrets For Trading Penny Stocks:

USING CANDLESTICK CHARTS TO TRADE FOREX

New Trendlens Indicators & Functions

CHART PATTERNS.

CHART TRADING GUIDE 1

How to time the stock market Using Artificial Neural Networks and Genetic Algorithms

Trendline Tips And Tricks

Ed Heath s Guerilla Swing Trading Plan (as of 1/22/13)

12 Signals to Master any Market'

What You Don t Know About Candlesticks

Neural Network Stock Trading Systems Donn S. Fishbein, MD, PhD Neuroquant.com

Alerts & Filters in Power E*TRADE Pro Strategy Scanner

Swing Trading Using Candlestick charting with Pivot Point Analysis. Written by John L. Person

Intra-Day Trading Techniques. Pristine.com Presents. Greg Capra. book, Tools and Tactics for the Master Day Trader

3 POWERFUL FOREX PRICE PATTERNS

by Mark Rose Read candlestick charts accurately Spot patterns quickly and easily Use that information to make profitable trading decisions

Intra-Day Trading Techniques

Definitions to Basic Technical Analysis Terms.

The Candlestick Summit Reaching the top levels of Nison candlesticks- Day 1

A Day Trader Search for Profits Written By: John L. Person, CTA

Candlesticks. Bar Charts CANDLESTICK CORNER. When you look at your charts, do you understand everything they re telling you? by Rudy Teseo BEARISH

Table of Contents. Preface. Chapter 1: TRADING BASICS. Chapter 2: BASIC TOOLS. Chapter 3: ADX. Chapter 4: ACCUMULATION LINE

The NYSE Tick Index And Candlesticks

8 Day Intensive Course Lesson 3

One of the primary challenges traders deal with is

Fuzzy Candlestick Approach to Trade S&P CNX NIFTY 50 Index using Engulfing Patterns

The Power And Finesse of Japanese Candlestick Charting

ADX breakout scanning ADX breakouts can signal momentum setups as well as exit conditions for intraday and swing traders. FIGURE 1: AFTER ADX > 40

Discussion Paper: Trading Periods. Written by: John Howell & Andrew Dimitri. Planet Wealth Trading Room

Class 2: Buying Stock & Intro to Charting. Buying Stock

Guidelines to use with Fibonacciqueen trade setups!!!

I Really Trade. Trading Patterns for Stocks & Commodities. Introducing The False Break Buy and Sell Pattern

TRADING GAPS TAIL STRATEGY SPECIAL REPORT #37

Stock Investing Basics of Japanese Candlesticks.

How to see the market context using CCI Written by Buzz

Technical Analysis Module NATIONAL STOCK EXCHANGE OF INDIA LIMITED

How To Use TC2000 To Find The Best Candlestick Trades

Simple & Consistent Fibonacci Method Prepared by: Simone Guy. {Free learning resource: NOT FOR RESALE}

Action Forex Company Limited 2012

PCF s for TC2000 and TCNet Users 3 MAJOR SIGNALS. The Hanging Man. The Inverted Hammer. The Piercing Pattern. The Dark Cloud

An Unconventional View of Trading Volume

The Logic Of Pivot Trading

Learning and Remembering the Signals Fast and Easy

Analyzing Gaps for Profitable Trading Strategies

TRADING SECRET NO. 3 How to combine two simple tools to capture big trending moves, especially in currencies

Swing Trading Tactics

WELCOME TO Trading Boot Camp Day 2

Swing Trade Setup by a 3-5 Day Pullback

Trend Determination - a Quick, Accurate, & Effective Methodology

Sunil Mangwani

JUST SIT BACK AND LET THE GIRTH MODEL MAKE MONEY FOR YOU. Elham Negahdary

Pattern Recognition and Prediction in Equity Market

Chapter 1.3. Technical Analysis: Trends, Support and Resistance

Channel Lines. Charts of futures price

Core Trading for a Living

A guide for end-users

FOREX analysing made easy

$TICK - Tock - Testing the NYSE TICK Index

Active Trend Trading System

How To Know When A Market Is In A Strong Trending Phase


21 CANDLESTICKS EVERY TRADER SHOULD KNOW. Dr. Melvin Pasternak

START-UP MANUAL FOR MTI 4.0 TECHNICAL ANALYSIS CHARTING

Additional details >>> HERE <<<

Technical analysis. Course 11

Advanced Trading Systems Collection FOREX TREND BREAK OUT SYSTEM

2: NYSE 2 15 NYSE

Contrarian investing and why it works

Handbook of Technical Analysis For Phil s Stock World. By Pharmboy

Chapter 2.3. Technical Analysis: Technical Indicators

Daytrading Cup Breakouts

THE CYCLE TRADING PATTERN MANUAL

Online Tutorial. Table of contents

Guide to Trading Indices

Investors Intelligence Using Point & Figure Charts

Chapter 1.4 Trends 0

This library is included for Platinum Club members, and may be purchased separately for the Gold version of Trade Navigator.

Stochastic Oscillator.

Chart Patterns Trader. Trader SUPPLEMENT. Understanding and Trading Classic Chart Patterns. By: Kevin Matras Zacks Investment Research, Inc

Technical Analysis SAmple InveSTIng plans 1

In the Richard D. Wyckoff method on stock market science and techniques, the fourth step of his

Candlestick Charting Explained

(NASDAQ: MNGA) Magnegas Corporation. Bullish. Investment Highlights

Day Trade System EZ Trade FOREX

Advanced Trading Systems Collection MACD DIVERGENCE TRADING SYSTEM

Chapter 3.4. Forex Options

Expert- Forex- Systems.com

A Beginner s Guide to SHORT SELLING

均 衡 表 Ichimoku Kinkō Hyō

INTRODUCTORY MANUAL. The 10 Keys to Successful Trading A Forex Tutorial

FUTURES STRATEGY: Short-term CCI p. 10. ADJUSTING TO stock index futures shift p. 14. STRADDLES, STRANGLES, and volatility p. 16

The Art of Japanese Candlestick Charting

JOURNAL THE BASIC GANN SWING PLAN FOR STOCKS QUESTIONS ROBERT KRAUSZ'S. Volume 1, Issue 4

The Truth About 60 Second Binary Options TABLE OF CONTENTS. I. 60 Second Binary Options- Make 75% a Minute. Binary Options Basics

Action Forex Company Limited 2010

Sunday, September 15, 13. Trade E-mini Futures without Indicators

As a professional floor trader at the Chicago Board of Figure 1 Trade, I have studied many trading

JAPANESE CANDLESTICK CHARTING TECHNIQUES

MATHEMATICAL TRADING INDICATORS

Transcription:

Identifying Short Term Market Turns Using Neural Networks and Genetic Algorithms Donn S. Fishbein, MD, PhD Neuroquant.com On March 26, 2008, in the Wall Street Journal page one article Stocks Tarnished By Lost Decade', E. S. Browning reported that the stock market was right where it was nine years ago, having been one on the worst investments during that period. The buy-and-hold investor would have done better investing in US Treasury bonds. Although there are academic theories which state that market movements are random and therefore unpredictable, others believe that market timing can increase returns over buy-and-hold strategies. Numerous fundamental and technical indicators have been discussed in relation to financial market timing. It may be that no single indicator is by itself useful in this task. In his recent book, The Only Three Questions That Matter, Ken Fisher takes some time to show that even widely touted factors such as the direction of interest rate changes by the Federal Reserve Bank are of little use in predicting market direction. If one accepts that no single indicator has predictive value, one must next ask if some combination of factors is predictive. While both fundamental and technical indicators influence long term market trends, as one turns from monthly and weekly bars to daily and hourly bars, technical indicators come to dominate. The reason is simply that, with the exception of episodic events, fundamental changes in financial instruments occur too slowly to significantly affect intraday or swing trading intervals. Given the dominance of technical factors in short term trading, the trader using technical analysis may find this trading environment more suitable than longer term trading. Japanese candlestick charting is a longstanding technique which uses

colored bars to indicate the relationship of the opening and closing prices of a bar. A vertical line indicates the low and high of the day, while the bar indicates the difference of the open and close, with a dark bar indicating (close < open) and a lighter bar indicating (close > open). A number of candlestick patterns have been rigorously defined and categorized into patterns which indicate continuation or reversal of the existing trend. Although they are touted as a visual, chart based tool, candlestick patterns have precise, mathematical definitions, and are suitable for use in algorithmic trading systems. The following patterns are thought to indicate a bullish reversal -- that is, a downtrending market now turning upwards: Belt Hold (bullish) Breakaway (bullish) Doji Star (bullish) Engulfing Pattern (bullish) Hammer Harami (bullish) Harami Cross (bullish) Homing Pigeon Inverted Hammer Kicking (bullish) Ladder Bottom Matching Low Meeting Line (bullish) Morning Doji Star Morning Star Piercing Line Stick Sandwich Three Inside Up Three Outside Up Three Stars in the South Three White Soldiers Tri Star (bullish) Unique Three River Bottom White Hammer The following patterns are thought to indicate a bearish reversal -- that is, an uptrending market now turning downwards: Abandoned Baby Top

Advance Block Belt Hold (bearish) Black Hanging Man Breakaway (bearish) Dark Cloud Cover Deliberation Doji Star (bearish) Engulfing Pattern (bearish) Evening Doji Star Evening Star Hanging Man Harami (bearish) Harami Cross (bearish) Identical Three Crows Kicking (bearish) Meeting Line (bearish) Shooting Star Three Black Crows Three Inside Down Three Outside Down Tri Star (bearish) Two Crows Upside Gap Two Crows Consider a definition of a Harami (pregnant woman) bullish candlestick, a bullish (turning upward) reversal signal: Downward Trend 1 bar ago AND Long Black Day 1 bar ago AND Short White Day AND Closing Price < Opening Price 1 bar ago AND Opening Price > Closing Price 1 bar ago AND (Closing Price-Opening Price)/(Opening Price 1 bar ago-closing Price 1 bar ago)<0.7 WHERE Downward Trend = (ExpAvg(Closing Price,9) < ExpAvg(Closing Price,9) 1 bar ago)

As the chart above shows, over a nine year period ending in March, 2008, trading the Nasdaq-100 exchange traded fund (QQQQ, formerly QQQ), 34 trades were triggered by Harami (bullish) formations (solid up arrowheads). Using a defined exit five days after entry, this resulted in an annualized gain of 4.5%. The total time in-market over nine years was 170 days. While this is not a spectacular return, the Nasdaq-100 was actually down over this period. Furthermore, the limited time in market reduced overall risk. Reversal signals, in part due to their rigid definition, do not occur frequently for individual financial instruments. When using a single reversal signal and waiting for it to occur for a single stock, very few trades would result. Furthermore, because of the way in which these signals are defined, they do not tend to coincide with other reversal signals. Finally, it is uncommon that a reversal signal in one direction is followed by a reversal signal in the opposite direction quickly enough to lock in a profit from the first signal. There are two approaches that will result in an increased number of trades. The first approach is to use existing candlestick reversal signals, such as those listed above, and:

Scan multiple financial instruments Look for one of multiple reversal signals for each financial instrument Use exit criteria other than the occurrence of candlestick reversal signals to exit trades This approach results in additional trades and increases average return on account. The percentage of losing trades increases, as does time-in-market, and therefore risk. The second approach begins with reviewing trades defined by candlestick reversal signals, either a single signal or a combination of signals. Even considering that multiple candlestick patterns are scanned for over multiple stocks, a relatively small number of trades results. Closer examination of the candlestick charts with trades superimposed shows that profitable trades are missed when chart actions closely approximate but do not exactly match the criteria of reversal candlestick patterns. What if some leeway where allowed in the definition of a reversal pattern? What if the degree of allowed leeway was determined by the market conditions surrounding the candidate pattern? Referring to the criteria of the Harami (bullish) signal shown above, it can be seen that both binary and qualitative criteria are listed. What if some flexibility in the definition of the signal was allowed? For example, what if the specification: Closing Price < Opening Price 1 bar ago were now allowed to read: Closing Price <= (1.05)( Opening Price 1 bar ago)? What if the signal would fire if only five of the six criteria were met? What if the six criteria were combined in some way other than a simple AND statement? The tasks of selecting criteria and valuing parameters could be performed by a genetic algorithm, while combining the resulting parameters in a non-linear fashion could be performed by an artificial neural network. Details of how genetic

algorithms and neural networks could accomplish these tasks can be found in earlier papers in this series (Fishbein, www.neuroquant.com, 2001-2007). As a proof-of-concept, a system was constructed using the first four bullish and bearish reversal signals listed above. Each signal was modified to allow selection and combination of criteria by a hybrid genetic algorithm/neural network system. Trades were triggered when any of the modified signals fired. No effort was made to further select or combine the modified signals. If a reversal signal did not occur within five bars, the trade was exited. The system was tested over a five year period with both the Nasdaq-100 and S&P 500 exchange traded funds (QQQQ and SPY). The results were encouraging. The QQQQ system returned an annualized yield of 17.2%, with 60% of trades profitable. The SPY system returned an annualized yield of 9.8%, with 64% of trades profitable. These results improve on both the buy-and-hold and straight candlestick reversal systems. Theoretical risk is increased by virtue of the fact that more trades are triggered and the system is in-market for longer periods, but actual drawdown increased by less than 0.1% over the straight candlestick reversal system. Candlestick reversal system using genetic algorithms and neural networks to modify candlestick reversal criteria

There are several ways in which this proof-of-concept system could be improved upon. Additional traditional candlestick reversal signals could be used as a starting point. Rather than accepting any signal firing as a trade trigger, signals could interrelate based on their temporal proximity to other signals. Exit criteria, treated very simply in this study, could be examined more formally. These suggestions are but a few of the possible improvements. Candlestick charting has earned a well deserved reputation over a long period of time. The use of genetic algorithms and neural networks can extend its usefulness and increase the ability to adapt to changing markets. copyright 2008 Neuroquant.com and Donn S. Fishbein