SlideShare a Scribd company logo
Comparison of the Buy and Hold Strategy
with Trading System of Technical Rules
Enhanced by ANN and GA
Case Study: Tehran Stock Exchange
By:
K.Dehghan Manshadi
Sep 2012
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Some Definitions
Trading
System
Technical
Analysis
Trading
Policy
Using set of tools and techniques in order to make investment
decisions
Methods and strategies used to forecast future prices based
on different factors e.g. past prices, volume, trends ,..
One turning point is a point in time where one price trend
change into another one. In general there are 3 main trends:
upward, downward, and uniform trends
Turning
Points
The approach that one trader choose in order to do his/her
trades to gain from positions he/she gets in the market
2
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Research Goals
Resear
ch OBJ.
• Dependency of Parameter
setting to Investors Experience
• Different Signals from different
Trading Rule at the same Time
• Difficulty of changing different
signals from different rules to
one trading decision
Difficulties for using Technical
Analysis
Key Issues
Technical Rules are based on
parameters that if are set properly,
will lead to profitable positions in
market. The main challenge
regarding technical rules are their
different mechanism to produce
trading signals. This will result in
different signals by different rules
at the same time. And this will
mixed the traders.
Building Up the new Intelligent Trading System to omit the
Dependency of investments to Investors experience
4
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Studies Categorization
Category
one
Studies done to develop scientific
framework for formulating TA
Netcci, Brok,
Murphi, Bollinger,
Achelis, Osle
Category
Two
Category
Three
Category
Four
StudiesCategories
Focus of the Research's Top Researchers
Studies done to investigate the
forecasting power of technical rules
compered to other forecasting tools
Studies done to evaluate the statistical
aspects and quality of the rules outputs.
Studies done to optimize the TA
indicators and rules and developing
new trading tools
Fama, Blume, James,
Chang,
Osler,Alexander
Scatchell
Thomson, Williams,
Bollinger
5
Previous Research's
Alejandro
Rodríguez
Researcher Year Subejct Key Take Away
Using ANN to enhance the TA
indices
ANN had a remarkable effect
on TA indices performance
2011
Xiaowei Lin
Using GA to improve the
forecasting parameters in TA
and enhancing the ESN
parameters to reach better
forecasted turning point
The system based on GA
resulted in more profitability
compared with B&H strategy2011
Liu, Chang ,
et.al Building up an efficient
forecasting model in order to
producing trading signals
CBDWNN had a better
performance than other
studied models
2009
Baba,Inoue,
& Yanjun
Establish a system composed
of ANN and GA to forecast
the TOPIX in future market
The composite model had a
good performance in
forecasting the market Index
2002
Kuo, Chen
and Hwang
Intelligent system to support
decision making based on GA
and fuzzy ANN
The new system enables
quantification of qualitative
variables affecting stock price2001
6
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Study steps and Trading System Architecture
Setting
Parameters by
GA and Turning
Point Diagnoses
Network
Build up and
Training
Testing
Hypothesis and
Assess the
performance
The society and
selected Sample
Society: Stocks in
Tehran 50 Company
Indices
Sample: randomly
chosen 15 stocks
Timeframe: 8 years
2005-2012
Suitable training of
the GA parameters
for each trading rule
to forecast the
trading signals
Changing different
trading signals from
different rules to
one trading signal
with the help of
ELMAN network
Calculating the
portfolio %return by
considering uniform
weighting across all
assets and running
Mann Whitney non-
parametric Test
TradingSystemArch.
8
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Technical Rules – 1 of 4
Golden
Cross
and Dead
Cross
Simple MA is a popular
technical indicator which
calculates the mean price in a
specified period in which
MA(N) means long-term MA
while MA(n) means short-term
MA. Cross section of these two
represent a trading point.
Approach FigureParameters
Moving
Average
Envelope
MA envelope forms a channel
or zone of commitment around
a MA. If price breaks the upper
band in downtrend, then it is
time to buy; if it breaks through
the lower band in uptrend,
then it is time to sell
MA(n)
MA(N)
10
Technical Rules – 2 of 4
Relative
strength
Index
System
RSI ranges from 0 to 100.
Generally, if the RSI rises above
overbought
level (usually 80), it indicates a
selling signal; if it falls below
oversold level (usually 20), it
indicates a buying signal.
Approach FigureParameteres
Rate of
change
Index
The divergence of different
ROCs can indicate possible
reversal of price trend.
Generally, when long-term ROC
reaches a new high while short-
term ROC locates near the
equilibrium line (usually with
the value of 100), the price will
possibly fall down; similarly,
when long-term ROC reaches a
new low while short-term
ROC is near the equilibrium
line, the price may ascend
11
Technical Rules – 3 of 4
Stochastic
System
In the up-trend, it tries to
measure when the closing
price would get close to the
lowest price in the given
period; in the down-trend,
it means when the closing
price would get close to the
highest price in the given
period.
The crossover of %K and %D
lines may indicate meaningful
reversal in price trend.
Approach FigureParameters
• C:close price at now
• LL :lowest price in the period
• HH :highest price in the priod
12
Technical Rules – 4 of 4
Hammer
and
Hanging
man
Indicates price reversal in the
future
Approach FigureParameters
Dark
Cloud
Cover
Indicates price reversal in the
future
ndC :next day close price
pdO :previous day open price
Piercing
Line
Indicates price reversal in the
future
Engulfing
Pattern
Indicates price reversal in the
future
13
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
GA Structure – Fitness Function
Genetic Structure- Buy Position
If Ti is a buy position, then there are three
states for fitness function:
B) If Sj is a sell signal then we should have
punishment for wrong identification
If the Ti is an expected selling position then
the fitness function will be build in a similar
way.
15
1
2
3
4
5
6
7
8
9
GA Steps
GA Structure – Key Steps
Considering following chromosome structure
for each feasible solution
Creating a random society as chromosomes
with above structure
Calculating the fitness function for each
chromosome
In order to generating the next generation,
some current chromosomes are selected as
parents
F (Position) = 2- sp + 2 *(sp -1) * (pos-1) / (n-1)
With the following equations each pare of parents
reproduce new spring:
Offspring 1 = Parent 1 * (rand1) + Parent 2 * (1-rand1)
Offspring = Parent 1 * (rand ) + Parent 2 * (1-rand )
Next step is to produce new generation.
Next generation is composed of the best
current springs and new springs.
Parameters and Specifications of the used GA:
Population: 50
Gen: 300
GGAP: 0.8
Parent selection approach:
Roulette wheel selection
New spring creation approach:
Recombination
Mutation probability: 0.1
Policy to create new generation: keeping 10% of the
best current springs+ keeping 10% of the worst
current springs+ the random springs of the old and
new generation
P1 p2 P3 …… Pn
16
1
3
2
5
4
6
7
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
ELMAN Network
NetworkArchitectureNetworkSpecification
• Recurrent Network with two layer
• The recurrent specification of the network enable detecting time varying
trends – high approximating power
• The main difference of ELMAN with other 2layers networks is to have a
recurrent relationship in layer one – delay in this layer keep the past values
in the network to use them in future.
18
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
Testing Hypothesis Approach
Implica
tions
• To what extend we can rely on historic
data?
• How much data is suitable to train the
network?
• It’s a rule of thumb that using more data
to train the Network don’t result in better
performance all the time
• Price time series nonstationary and
changing behavior
Challenges with the Network Rolling Window Approach
If the time series behavior trough the time is nonstattionary, it means
some characteristics of the series such as noise as well as the forecasting
parameters change trough the time . Therefore using a static model lead
to weak forecast.
P-Value of the Mackinnon statistic in dickey-
Fuller test for most of the stocks is
remarkable(very big) and the unit root
hypothesis is rejected that admit the
nonstationary of the price time series in our
sample
20
Table of Contents
• Definitions
• Goals of the research
• Previous Research
• Study steps
• Technical Rules as the trading system parts
• GA structure used
• ELMAN Network
• Testing Hypothesis Approach
• Key Results
2
4
5
8
10
15
18
20
22
The system performance in diagnosing turning points
0
20
40
60
80
100
120
140
No. of Correct Signals
No. of incorrect Signals
No. of Zero Signals in Windows
Signals %Frequency
Correct Signals 31%
Zero Signals 61%
Wrong Signals 8%
Implica
tion
The developed trading system have a good performance in diagnosing
trading points
22
Comparison between B&H Strategy and the developed Trading System
performance
151%
-10%
24%
48%
77%
49%
17%
26% 29%
44%
-20%
0%
20%
40%
60%
80%
100%
120%
140%
160%
window1 window2 window3 window4 window5
%RETURN
Implica
tion
Both Strategy performance are remarkable. The trading system in
all window had positive performance
23
Buy and Hold
Trading System
Testing Hypothesis
Implica
tion
Statistically there is no significant difference between the returns in
B&H strategy and the intelligent Trading System
Non-ParametricTestParametricTest
No significant
difference
between
performance
of the two
strategy
5α
24
Conclusions
Suggestionsforfuture
studies
KeyResults • TA like the buy and hold strategy possess the potential for profitability in
Iran Market
• Both Active and Passive Strategies can be profitable in Iran Stock Market
• Artificial Intelligence can help improve the performance of technical
Analysis rules
• The variance of returns in B&H strategy is more than suggested trading
system
• Good performance of the technical analysis can approve the weak
efficiency of the market.
• Comparison of the trading system based on technical rules with other trading
strategies such as momentum and reverse.
• In this study the weights of different assets assumed equal. Rebalancing the
portfolio trough the time can be good option to enhance the trading system
performance.
• Using more technical rules to build the system
• Using other artificial intelligence techniques to set the technical parameters
• Considering other factors like volume of the trades in trading system to
moderate the sensitivity of the system to price changes.
25

More Related Content

Viewers also liked

Copia de titelles
Copia de titellesCopia de titelles
Copia de titellesmbquesada
 
maes
maesmaes
NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin
Davide Cioccia
 
Virtual museum provisional-2
Virtual museum provisional-2Virtual museum provisional-2
Virtual museum provisional-2monstersmuseum
 
Inside TorrentLocker (Cryptolocker) Malware C&C Server
Inside TorrentLocker (Cryptolocker) Malware C&C Server Inside TorrentLocker (Cryptolocker) Malware C&C Server
Inside TorrentLocker (Cryptolocker) Malware C&C Server
Davide Cioccia
 
ASL Lab Meeting Presentation 20/3/2013
ASL Lab Meeting Presentation 20/3/2013ASL Lab Meeting Presentation 20/3/2013
ASL Lab Meeting Presentation 20/3/2013
Kostas Alexis
 
Autonomous Infrastructure Inspection and Maintenance
Autonomous Infrastructure Inspection and MaintenanceAutonomous Infrastructure Inspection and Maintenance
Autonomous Infrastructure Inspection and Maintenance
Kostas Alexis
 
Pp u06-mates1º decimales
Pp u06-mates1º decimalesPp u06-mates1º decimales
Pp u06-mates1º decimales
Claudia Aravena Alcapio
 
MED 2011 UPATcopter Presentation
MED 2011 UPATcopter PresentationMED 2011 UPATcopter Presentation
MED 2011 UPATcopter Presentation
Kostas Alexis
 
Biogeohemijski ciklusi
Biogeohemijski ciklusiBiogeohemijski ciklusi
Biogeohemijski ciklusijurrasic1234
 
ICRA 2013 Tilt-TriRotor
ICRA 2013 Tilt-TriRotorICRA 2013 Tilt-TriRotor
ICRA 2013 Tilt-TriRotor
Kostas Alexis
 

Viewers also liked (12)

Entre
EntreEntre
Entre
 
Copia de titelles
Copia de titellesCopia de titelles
Copia de titelles
 
maes
maesmaes
maes
 
NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin NAS Botnet Revealed - Mining Bitcoin
NAS Botnet Revealed - Mining Bitcoin
 
Virtual museum provisional-2
Virtual museum provisional-2Virtual museum provisional-2
Virtual museum provisional-2
 
Inside TorrentLocker (Cryptolocker) Malware C&C Server
Inside TorrentLocker (Cryptolocker) Malware C&C Server Inside TorrentLocker (Cryptolocker) Malware C&C Server
Inside TorrentLocker (Cryptolocker) Malware C&C Server
 
ASL Lab Meeting Presentation 20/3/2013
ASL Lab Meeting Presentation 20/3/2013ASL Lab Meeting Presentation 20/3/2013
ASL Lab Meeting Presentation 20/3/2013
 
Autonomous Infrastructure Inspection and Maintenance
Autonomous Infrastructure Inspection and MaintenanceAutonomous Infrastructure Inspection and Maintenance
Autonomous Infrastructure Inspection and Maintenance
 
Pp u06-mates1º decimales
Pp u06-mates1º decimalesPp u06-mates1º decimales
Pp u06-mates1º decimales
 
MED 2011 UPATcopter Presentation
MED 2011 UPATcopter PresentationMED 2011 UPATcopter Presentation
MED 2011 UPATcopter Presentation
 
Biogeohemijski ciklusi
Biogeohemijski ciklusiBiogeohemijski ciklusi
Biogeohemijski ciklusi
 
ICRA 2013 Tilt-TriRotor
ICRA 2013 Tilt-TriRotorICRA 2013 Tilt-TriRotor
ICRA 2013 Tilt-TriRotor
 

Similar to Buy and Hold Strategy

major project PPT AKHIL.pptx
major project PPT AKHIL.pptxmajor project PPT AKHIL.pptx
major project PPT AKHIL.pptx
AkhilReddy693446
 
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
NUS-ISS
 
Trends in-om-scm-27-july-2012-2
Trends in-om-scm-27-july-2012-2Trends in-om-scm-27-july-2012-2
Trends in-om-scm-27-july-2012-2
Sanjeev Deshmukh
 
SAS Training session - By Pratima
SAS Training session  -  By Pratima SAS Training session  -  By Pratima
SAS Training session - By Pratima
Pratima Pandey
 
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & EvaluationSECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
Professional Training Academy
 
Goal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
Goal Decomposition and Abductive Reasoning for Policy Analysis and RefinementGoal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
Goal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
Emil Lupu
 
DS M1 full - KQB KtuQbank.pdf
DS M1 full - KQB KtuQbank.pdfDS M1 full - KQB KtuQbank.pdf
DS M1 full - KQB KtuQbank.pdf
MidhunM83
 
Big Data Project - Final version
Big Data Project - Final versionBig Data Project - Final version
Big Data Project - Final versionMihir Sanghavi
 
Sesión 6: La experiencia de Trinidad y Tobago
Sesión 6:  La experiencia de Trinidad y TobagoSesión 6:  La experiencia de Trinidad y Tobago
Sesión 6: La experiencia de Trinidad y Tobago
Indotel RD
 
Stock Price Prediction using ML Techniques
Stock Price Prediction using ML TechniquesStock Price Prediction using ML Techniques
Stock Price Prediction using ML Techniques
NarayanJee4
 
Statistical Arbitrage
Statistical ArbitrageStatistical Arbitrage
Statistical Arbitrage
Shubham Patil
 
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
PingCAP
 
Token engineering presentation 5 13-18
Token engineering presentation 5 13-18Token engineering presentation 5 13-18
Token engineering presentation 5 13-18
Michael Zargham
 
Equipment finance projects 101
Equipment finance projects 101Equipment finance projects 101
Equipment finance projects 101
David Pedreno
 
Agile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity managementAgile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity management
Agnirudra Sikdar
 
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
Mostafa Arjmand
 
Equipment finance systems project guide 101
Equipment finance systems project guide 101Equipment finance systems project guide 101
Equipment finance systems project guide 101
David Pedreno
 
Equipment finance systems project guide "101"
Equipment finance systems project guide "101"Equipment finance systems project guide "101"
Equipment finance systems project guide "101"
David Pedreno
 
Equipment finance projects guide "101"
Equipment finance projects guide "101"Equipment finance projects guide "101"
Equipment finance projects guide "101"
David Pedreno
 

Similar to Buy and Hold Strategy (20)

major project PPT AKHIL.pptx
major project PPT AKHIL.pptxmajor project PPT AKHIL.pptx
major project PPT AKHIL.pptx
 
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
AI in Finance: An Ensembling Architecture Incorporating Machine Learning Mode...
 
Trends in-om-scm-27-july-2012-2
Trends in-om-scm-27-july-2012-2Trends in-om-scm-27-july-2012-2
Trends in-om-scm-27-july-2012-2
 
SAS Training session - By Pratima
SAS Training session  -  By Pratima SAS Training session  -  By Pratima
SAS Training session - By Pratima
 
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & EvaluationSECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
 
Goal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
Goal Decomposition and Abductive Reasoning for Policy Analysis and RefinementGoal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
Goal Decomposition and Abductive Reasoning for Policy Analysis and Refinement
 
DS M1 full - KQB KtuQbank.pdf
DS M1 full - KQB KtuQbank.pdfDS M1 full - KQB KtuQbank.pdf
DS M1 full - KQB KtuQbank.pdf
 
Big Data Project - Final version
Big Data Project - Final versionBig Data Project - Final version
Big Data Project - Final version
 
Sesión 6: La experiencia de Trinidad y Tobago
Sesión 6:  La experiencia de Trinidad y TobagoSesión 6:  La experiencia de Trinidad y Tobago
Sesión 6: La experiencia de Trinidad y Tobago
 
Stock Price Prediction using ML Techniques
Stock Price Prediction using ML TechniquesStock Price Prediction using ML Techniques
Stock Price Prediction using ML Techniques
 
Statistical Arbitrage
Statistical ArbitrageStatistical Arbitrage
Statistical Arbitrage
 
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
 
Token engineering presentation 5 13-18
Token engineering presentation 5 13-18Token engineering presentation 5 13-18
Token engineering presentation 5 13-18
 
Fuzzy Presentation
Fuzzy PresentationFuzzy Presentation
Fuzzy Presentation
 
Equipment finance projects 101
Equipment finance projects 101Equipment finance projects 101
Equipment finance projects 101
 
Agile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity managementAgile analytics : An exploratory study of technical complexity management
Agile analytics : An exploratory study of technical complexity management
 
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
Foreaign Exchange Data Crawling and Analysis for Knowledge Discovery Leading ...
 
Equipment finance systems project guide 101
Equipment finance systems project guide 101Equipment finance systems project guide 101
Equipment finance systems project guide 101
 
Equipment finance systems project guide "101"
Equipment finance systems project guide "101"Equipment finance systems project guide "101"
Equipment finance systems project guide "101"
 
Equipment finance projects guide "101"
Equipment finance projects guide "101"Equipment finance projects guide "101"
Equipment finance projects guide "101"
 

Recently uploaded

Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Holger Mueller
 
In the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptxIn the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptx
Adani case
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
bosssp10
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Lviv Startup Club
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
An introduction to the cryptocurrency investment platform Binance Savings.
An introduction to the cryptocurrency investment platform Binance Savings.An introduction to the cryptocurrency investment platform Binance Savings.
An introduction to the cryptocurrency investment platform Binance Savings.
Any kyc Account
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
LuanWise
 
Training my puppy and implementation in this story
Training my puppy and implementation in this storyTraining my puppy and implementation in this story
Training my puppy and implementation in this story
WilliamRodrigues148
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
Ben Wann
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
Operational Excellence Consulting
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
uae taxgpt
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.docBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
daothibichhang1
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
RajPriye
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdfBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
daothibichhang1
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
Corey Perlman, Social Media Speaker and Consultant
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Navpack & Print
 

Recently uploaded (20)

Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
 
In the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptxIn the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptx
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
An introduction to the cryptocurrency investment platform Binance Savings.
An introduction to the cryptocurrency investment platform Binance Savings.An introduction to the cryptocurrency investment platform Binance Savings.
An introduction to the cryptocurrency investment platform Binance Savings.
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
 
Training my puppy and implementation in this story
Training my puppy and implementation in this storyTraining my puppy and implementation in this story
Training my puppy and implementation in this story
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.docBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdfBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc.pdf
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
 

Buy and Hold Strategy

  • 1. Comparison of the Buy and Hold Strategy with Trading System of Technical Rules Enhanced by ANN and GA Case Study: Tehran Stock Exchange By: K.Dehghan Manshadi Sep 2012
  • 2. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 3. Some Definitions Trading System Technical Analysis Trading Policy Using set of tools and techniques in order to make investment decisions Methods and strategies used to forecast future prices based on different factors e.g. past prices, volume, trends ,.. One turning point is a point in time where one price trend change into another one. In general there are 3 main trends: upward, downward, and uniform trends Turning Points The approach that one trader choose in order to do his/her trades to gain from positions he/she gets in the market 2
  • 4. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 5. Research Goals Resear ch OBJ. • Dependency of Parameter setting to Investors Experience • Different Signals from different Trading Rule at the same Time • Difficulty of changing different signals from different rules to one trading decision Difficulties for using Technical Analysis Key Issues Technical Rules are based on parameters that if are set properly, will lead to profitable positions in market. The main challenge regarding technical rules are their different mechanism to produce trading signals. This will result in different signals by different rules at the same time. And this will mixed the traders. Building Up the new Intelligent Trading System to omit the Dependency of investments to Investors experience 4
  • 6. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 7. Studies Categorization Category one Studies done to develop scientific framework for formulating TA Netcci, Brok, Murphi, Bollinger, Achelis, Osle Category Two Category Three Category Four StudiesCategories Focus of the Research's Top Researchers Studies done to investigate the forecasting power of technical rules compered to other forecasting tools Studies done to evaluate the statistical aspects and quality of the rules outputs. Studies done to optimize the TA indicators and rules and developing new trading tools Fama, Blume, James, Chang, Osler,Alexander Scatchell Thomson, Williams, Bollinger 5
  • 8. Previous Research's Alejandro Rodríguez Researcher Year Subejct Key Take Away Using ANN to enhance the TA indices ANN had a remarkable effect on TA indices performance 2011 Xiaowei Lin Using GA to improve the forecasting parameters in TA and enhancing the ESN parameters to reach better forecasted turning point The system based on GA resulted in more profitability compared with B&H strategy2011 Liu, Chang , et.al Building up an efficient forecasting model in order to producing trading signals CBDWNN had a better performance than other studied models 2009 Baba,Inoue, & Yanjun Establish a system composed of ANN and GA to forecast the TOPIX in future market The composite model had a good performance in forecasting the market Index 2002 Kuo, Chen and Hwang Intelligent system to support decision making based on GA and fuzzy ANN The new system enables quantification of qualitative variables affecting stock price2001 6
  • 9. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 10. Study steps and Trading System Architecture Setting Parameters by GA and Turning Point Diagnoses Network Build up and Training Testing Hypothesis and Assess the performance The society and selected Sample Society: Stocks in Tehran 50 Company Indices Sample: randomly chosen 15 stocks Timeframe: 8 years 2005-2012 Suitable training of the GA parameters for each trading rule to forecast the trading signals Changing different trading signals from different rules to one trading signal with the help of ELMAN network Calculating the portfolio %return by considering uniform weighting across all assets and running Mann Whitney non- parametric Test TradingSystemArch. 8
  • 11. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 12. Technical Rules – 1 of 4 Golden Cross and Dead Cross Simple MA is a popular technical indicator which calculates the mean price in a specified period in which MA(N) means long-term MA while MA(n) means short-term MA. Cross section of these two represent a trading point. Approach FigureParameters Moving Average Envelope MA envelope forms a channel or zone of commitment around a MA. If price breaks the upper band in downtrend, then it is time to buy; if it breaks through the lower band in uptrend, then it is time to sell MA(n) MA(N) 10
  • 13. Technical Rules – 2 of 4 Relative strength Index System RSI ranges from 0 to 100. Generally, if the RSI rises above overbought level (usually 80), it indicates a selling signal; if it falls below oversold level (usually 20), it indicates a buying signal. Approach FigureParameteres Rate of change Index The divergence of different ROCs can indicate possible reversal of price trend. Generally, when long-term ROC reaches a new high while short- term ROC locates near the equilibrium line (usually with the value of 100), the price will possibly fall down; similarly, when long-term ROC reaches a new low while short-term ROC is near the equilibrium line, the price may ascend 11
  • 14. Technical Rules – 3 of 4 Stochastic System In the up-trend, it tries to measure when the closing price would get close to the lowest price in the given period; in the down-trend, it means when the closing price would get close to the highest price in the given period. The crossover of %K and %D lines may indicate meaningful reversal in price trend. Approach FigureParameters • C:close price at now • LL :lowest price in the period • HH :highest price in the priod 12
  • 15. Technical Rules – 4 of 4 Hammer and Hanging man Indicates price reversal in the future Approach FigureParameters Dark Cloud Cover Indicates price reversal in the future ndC :next day close price pdO :previous day open price Piercing Line Indicates price reversal in the future Engulfing Pattern Indicates price reversal in the future 13
  • 16. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 17. GA Structure – Fitness Function Genetic Structure- Buy Position If Ti is a buy position, then there are three states for fitness function: B) If Sj is a sell signal then we should have punishment for wrong identification If the Ti is an expected selling position then the fitness function will be build in a similar way. 15 1 2 3 4 5 6 7 8 9
  • 18. GA Steps GA Structure – Key Steps Considering following chromosome structure for each feasible solution Creating a random society as chromosomes with above structure Calculating the fitness function for each chromosome In order to generating the next generation, some current chromosomes are selected as parents F (Position) = 2- sp + 2 *(sp -1) * (pos-1) / (n-1) With the following equations each pare of parents reproduce new spring: Offspring 1 = Parent 1 * (rand1) + Parent 2 * (1-rand1) Offspring = Parent 1 * (rand ) + Parent 2 * (1-rand ) Next step is to produce new generation. Next generation is composed of the best current springs and new springs. Parameters and Specifications of the used GA: Population: 50 Gen: 300 GGAP: 0.8 Parent selection approach: Roulette wheel selection New spring creation approach: Recombination Mutation probability: 0.1 Policy to create new generation: keeping 10% of the best current springs+ keeping 10% of the worst current springs+ the random springs of the old and new generation P1 p2 P3 …… Pn 16 1 3 2 5 4 6 7
  • 19. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 20. ELMAN Network NetworkArchitectureNetworkSpecification • Recurrent Network with two layer • The recurrent specification of the network enable detecting time varying trends – high approximating power • The main difference of ELMAN with other 2layers networks is to have a recurrent relationship in layer one – delay in this layer keep the past values in the network to use them in future. 18
  • 21. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 22. Testing Hypothesis Approach Implica tions • To what extend we can rely on historic data? • How much data is suitable to train the network? • It’s a rule of thumb that using more data to train the Network don’t result in better performance all the time • Price time series nonstationary and changing behavior Challenges with the Network Rolling Window Approach If the time series behavior trough the time is nonstattionary, it means some characteristics of the series such as noise as well as the forecasting parameters change trough the time . Therefore using a static model lead to weak forecast. P-Value of the Mackinnon statistic in dickey- Fuller test for most of the stocks is remarkable(very big) and the unit root hypothesis is rejected that admit the nonstationary of the price time series in our sample 20
  • 23. Table of Contents • Definitions • Goals of the research • Previous Research • Study steps • Technical Rules as the trading system parts • GA structure used • ELMAN Network • Testing Hypothesis Approach • Key Results 2 4 5 8 10 15 18 20 22
  • 24. The system performance in diagnosing turning points 0 20 40 60 80 100 120 140 No. of Correct Signals No. of incorrect Signals No. of Zero Signals in Windows Signals %Frequency Correct Signals 31% Zero Signals 61% Wrong Signals 8% Implica tion The developed trading system have a good performance in diagnosing trading points 22
  • 25. Comparison between B&H Strategy and the developed Trading System performance 151% -10% 24% 48% 77% 49% 17% 26% 29% 44% -20% 0% 20% 40% 60% 80% 100% 120% 140% 160% window1 window2 window3 window4 window5 %RETURN Implica tion Both Strategy performance are remarkable. The trading system in all window had positive performance 23 Buy and Hold Trading System
  • 26. Testing Hypothesis Implica tion Statistically there is no significant difference between the returns in B&H strategy and the intelligent Trading System Non-ParametricTestParametricTest No significant difference between performance of the two strategy 5α 24
  • 27. Conclusions Suggestionsforfuture studies KeyResults • TA like the buy and hold strategy possess the potential for profitability in Iran Market • Both Active and Passive Strategies can be profitable in Iran Stock Market • Artificial Intelligence can help improve the performance of technical Analysis rules • The variance of returns in B&H strategy is more than suggested trading system • Good performance of the technical analysis can approve the weak efficiency of the market. • Comparison of the trading system based on technical rules with other trading strategies such as momentum and reverse. • In this study the weights of different assets assumed equal. Rebalancing the portfolio trough the time can be good option to enhance the trading system performance. • Using more technical rules to build the system • Using other artificial intelligence techniques to set the technical parameters • Considering other factors like volume of the trades in trading system to moderate the sensitivity of the system to price changes. 25

Editor's Notes

  1. D. Whitley, “The GENITOR Algorithm and Selection Pressure: Why Rank-Based Allocation of Reproductive Trials is Best”, Proc. ICGA 3, pp. 116-121,Morgan Kaufmann Publishers, 1989.