SlideShare a Scribd company logo
Feedback-based Stock Trading Strategies
Feedback-based Stock Trading Strategies
Cian McGowan
Supervised by Dr. Mark Burke
12135712
13 April, 2016
Feedback-based Stock Trading Strategies
Outline
Introduction to Feedback and Control Theory
Linking Control Theory and Stock Trading
Methods Used for the Testing of Strategies
Results of Tests
Conclusion
Feedback-based Stock Trading Strategies
What is Control Theory?
Interdisciplinary branch of engineering and
mathematics.
Control Theory breaks systems down into
input signals, output signals and
subsystems.
These systems can be written using block
diagrams.
The best way to understand Control Theory
is by studying examples how it is used.
Feedback-based Stock Trading Strategies
Feedback Loop
This block diagram depicts a closed feedback
loop.
Examples: Cruise control function of a car or
the implementation of a module satisfaction
survey.
Feedback-based Stock Trading Strategies
How can Control Theory be related to Trading?
The process of stock trading can be easily
broken down into input and output signals
based on stock prices.
Control Theory can be seen in many
wide-ranging areas such as engineering,
biology (homeostasis), geology (Earth’s
hydrocycle)...so why not apply it to finance?
Feedback-based Stock Trading Strategies
A Control System for Stock Trading
max
amount which can be invested or shorted at any time. A
classical feedback setup illustrating one possibility for the
scenario above is given in Figure 1.
Gain/Loss
Dynamics
Trading
Feedback
Strategy
stock gain g(t)
investment I(t)
stock price p(t)
CONTROLLED INPUT
UNCONTROLLED INPUT
PERFORMANCE OUTPUT
Figure 1: Control System Point of View
2.3 The Saturation Reset Controller
At the most general level, the amount invested I(t) is a
corr
men
Now
acco
or b
Not
abo
mar
3.1
Wh
is g
incr
This FYP examines different feedback-based
trading strategies and investigates their
ability to return a profit for traders.
Feedback-based Stock Trading Strategies
Assumptions Made for Testing
Transaction costs are ignored.
Discrete time.
Perfect liquidity.
Trader is a price taker.
Zero market spread.
Zero percent interest rates.
Feedback-based Stock Trading Strategies
Classical Linear Feedback Strategy
The first strategy tested used the following
function to modulate the investment level I(t).
I(t) = I0 + βg(t)
The coefficient, β, is known as the feedback
gain parameter. Its value determines how
sensitive the investment level is to changes in
stock price.
Feedback-based Stock Trading Strategies
Classical Linear Feedback Strategy
Days
0 200 400 600 800 1000 1200 1400
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Account Value of S&P 500 Portfolio using Feedback System
Figure 1: Account Value for Implementing the Classical Stategy on
the S&P Portfolio from 2005-2009.
Feedback-based Stock Trading Strategies
Feedback Strategy with Delay
The delay strategy stems from the theory that
the investment level I(t) should not only be
dependent on the gain/loss at time t but also on
a previous time t − µ.
I(t) = I0 + β[g(t) − g(t − µ)].
Feedback-based Stock Trading Strategies
Feedback Strategy with Delay
Days
0 200 400 600 800 1000 1200 1400
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Account Values: Delay versus No Delay
Delay
No Delay
Figure 2: Account Value for Implementing the Delay Stategy on the
S&P Portfolio from 2005-2009 versus Classical Strategy.
Feedback-based Stock Trading Strategies
Experimentation with Parameter Values
It was found that using a delay reduced the
volatility of the account values but that
increasing the delay above µ = 1 was not
beneficial.
It was found that it was best to use a large β
value during bullish market periods but that
overall, a value of β < 1 was more beneficial.
Feedback-based Stock Trading Strategies
The “Trigger” Strategy
For this system, the investment level function will
switch, depending on a triggering condition,
from I(t) to I∗
(t).
I(t) = I0 + β0g(t)
I∗
(t) = I0 + β1g(t)
Feedback-based Stock Trading Strategies
Days
0 200 400 600 800 1000 1200 1400
AccountValue
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Applying the use of a trigger to the S&P 500 Portfolio
Normal Feedback System
Feedback System with Trigger
Figure 3: Applying the Trigger Strategy to the S&P Portfolio versus
the Classical Strategy from 2005-2009.
Feedback-based Stock Trading Strategies
Transaction Costs
Two-part TC Model introduced in order to
reduce limitation of tests:
1% Stamp Duty on Purchases
0.9% of Account Value per annum in
Brokerage Fees
Feedback-based Stock Trading Strategies
Results after Transaction Costs are Added
System g(T) Broker Fees Taxation Profit
Classical 1.3774 0.1205 0.7071 0.5497
Moving Average 0.8658 0.1115 1.0390 -0.2847
Delay 0.8402 0.1019 0.4279 0.3105
Trigger 1.5274 0.1088 0.1251 1.2935
Table 1: Performance of the four main strategies for the FTSE 100
portfolio for the period 2004-2012.
Feedback-based Stock Trading Strategies
Results after Transaction Costs are Added
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Days
-1
-0.5
0
0.5
1
1.5
2
Values
FTSE 100 - Feedback System with Trigger and Transaction Costs
Gain or Loss
Profit
Total Costs
Figure 4: Perfomance of Trigger Strategy on the FTSE 100 Portfolio
from 2004-2012 with Transaction Costs.
Feedback-based Stock Trading Strategies
Conclusion
3 out of 4 strategies tested made a net profit.
There is certainly a place for the use of
control theory in finance.
This is a new line of research and requires
further testing and reduction of limitations.
Feedback-based Stock Trading Strategies
The End
Thanks for listening!

More Related Content

Similar to FYPP

gatheral_financialrisks_paris2014.pdf
gatheral_financialrisks_paris2014.pdfgatheral_financialrisks_paris2014.pdf
gatheral_financialrisks_paris2014.pdf
TomHardy96
 
Complex Event Processing within a Managed Accounts Platform
Complex Event Processing within a Managed Accounts PlatformComplex Event Processing within a Managed Accounts Platform
Complex Event Processing within a Managed Accounts Platform
Markus Dieckmann
 
Equity portfolio management strategies
Equity portfolio management strategiesEquity portfolio management strategies
Equity portfolio management strategies
Bikash Kumar
 
Tmgt 8103 module 8 ver 3.0
Tmgt 8103 module 8   ver 3.0Tmgt 8103 module 8   ver 3.0
Tmgt 8103 module 8 ver 3.0
INBPInc
 
Adaptix_2013
Adaptix_2013Adaptix_2013
Adaptix_2013
Gary Faktor
 
Dynamic stopcharts
Dynamic stopchartsDynamic stopcharts
Dynamic stopcharts
David Stendahl
 
Investigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based ModelInvestigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based Model
Takanobu Mizuta
 
Statistical Arbitrage
Statistical Arbitrage Statistical Arbitrage
Statistical Arbitrage
Taweh Beysolow II
 
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
 
POV7engl8.6RZ04
POV7engl8.6RZ04POV7engl8.6RZ04
POV7engl8.6RZ04
Richard Bachem
 
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
Giuseppe Basile
 
Value at risk
Value at riskValue at risk
Value at risk
Mohit Rathi
 
Cryptofinance melon protocol - a protocol for digital asset management stra...
Cryptofinance   melon protocol - a protocol for digital asset management stra...Cryptofinance   melon protocol - a protocol for digital asset management stra...
Cryptofinance melon protocol - a protocol for digital asset management stra...
Ian Beckett
 
44% YTD AI Fund
44% YTD AI Fund44% YTD AI Fund
44% YTD AI Fund
Hedge Fund Investment
 
Managerial economics assignment
Managerial economics assignmentManagerial economics assignment
Managerial economics assignment
Brian Miles
 
Know these things about automated trading in.pdf
Know these things about automated trading in.pdfKnow these things about automated trading in.pdf
Know these things about automated trading in.pdf
Riya Sen
 
Electricity Markets Regulation - Lesson 3 - Price Regulation
Electricity Markets Regulation - Lesson 3 - Price RegulationElectricity Markets Regulation - Lesson 3 - Price Regulation
Electricity Markets Regulation - Lesson 3 - Price Regulation
Leonardo ENERGY
 
Cmt level1-reading
Cmt level1-readingCmt level1-reading
Cmt level1-reading
Nitin Kulshrestha
 
IJCS_37_4_06
IJCS_37_4_06IJCS_37_4_06
IJCS_37_4_06
Abdalla Kablan
 
Strategic approachppg v02
Strategic approachppg v02Strategic approachppg v02
Strategic approachppg v02
Daniel Arturo Espinoza Soto
 

Similar to FYPP (20)

gatheral_financialrisks_paris2014.pdf
gatheral_financialrisks_paris2014.pdfgatheral_financialrisks_paris2014.pdf
gatheral_financialrisks_paris2014.pdf
 
Complex Event Processing within a Managed Accounts Platform
Complex Event Processing within a Managed Accounts PlatformComplex Event Processing within a Managed Accounts Platform
Complex Event Processing within a Managed Accounts Platform
 
Equity portfolio management strategies
Equity portfolio management strategiesEquity portfolio management strategies
Equity portfolio management strategies
 
Tmgt 8103 module 8 ver 3.0
Tmgt 8103 module 8   ver 3.0Tmgt 8103 module 8   ver 3.0
Tmgt 8103 module 8 ver 3.0
 
Adaptix_2013
Adaptix_2013Adaptix_2013
Adaptix_2013
 
Dynamic stopcharts
Dynamic stopchartsDynamic stopcharts
Dynamic stopcharts
 
Investigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based ModelInvestigation of Frequent Batch Auctions using Agent Based Model
Investigation of Frequent Batch Auctions using Agent Based Model
 
Statistical Arbitrage
Statistical Arbitrage Statistical Arbitrage
Statistical Arbitrage
 
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...
 
POV7engl8.6RZ04
POV7engl8.6RZ04POV7engl8.6RZ04
POV7engl8.6RZ04
 
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
an-examination-of-the-linkages-between-money-management-and-trading-goals-a-r...
 
Value at risk
Value at riskValue at risk
Value at risk
 
Cryptofinance melon protocol - a protocol for digital asset management stra...
Cryptofinance   melon protocol - a protocol for digital asset management stra...Cryptofinance   melon protocol - a protocol for digital asset management stra...
Cryptofinance melon protocol - a protocol for digital asset management stra...
 
44% YTD AI Fund
44% YTD AI Fund44% YTD AI Fund
44% YTD AI Fund
 
Managerial economics assignment
Managerial economics assignmentManagerial economics assignment
Managerial economics assignment
 
Know these things about automated trading in.pdf
Know these things about automated trading in.pdfKnow these things about automated trading in.pdf
Know these things about automated trading in.pdf
 
Electricity Markets Regulation - Lesson 3 - Price Regulation
Electricity Markets Regulation - Lesson 3 - Price RegulationElectricity Markets Regulation - Lesson 3 - Price Regulation
Electricity Markets Regulation - Lesson 3 - Price Regulation
 
Cmt level1-reading
Cmt level1-readingCmt level1-reading
Cmt level1-reading
 
IJCS_37_4_06
IJCS_37_4_06IJCS_37_4_06
IJCS_37_4_06
 
Strategic approachppg v02
Strategic approachppg v02Strategic approachppg v02
Strategic approachppg v02
 

FYPP

  • 1. Feedback-based Stock Trading Strategies Feedback-based Stock Trading Strategies Cian McGowan Supervised by Dr. Mark Burke 12135712 13 April, 2016
  • 2. Feedback-based Stock Trading Strategies Outline Introduction to Feedback and Control Theory Linking Control Theory and Stock Trading Methods Used for the Testing of Strategies Results of Tests Conclusion
  • 3. Feedback-based Stock Trading Strategies What is Control Theory? Interdisciplinary branch of engineering and mathematics. Control Theory breaks systems down into input signals, output signals and subsystems. These systems can be written using block diagrams. The best way to understand Control Theory is by studying examples how it is used.
  • 4. Feedback-based Stock Trading Strategies Feedback Loop This block diagram depicts a closed feedback loop. Examples: Cruise control function of a car or the implementation of a module satisfaction survey.
  • 5. Feedback-based Stock Trading Strategies How can Control Theory be related to Trading? The process of stock trading can be easily broken down into input and output signals based on stock prices. Control Theory can be seen in many wide-ranging areas such as engineering, biology (homeostasis), geology (Earth’s hydrocycle)...so why not apply it to finance?
  • 6. Feedback-based Stock Trading Strategies A Control System for Stock Trading max amount which can be invested or shorted at any time. A classical feedback setup illustrating one possibility for the scenario above is given in Figure 1. Gain/Loss Dynamics Trading Feedback Strategy stock gain g(t) investment I(t) stock price p(t) CONTROLLED INPUT UNCONTROLLED INPUT PERFORMANCE OUTPUT Figure 1: Control System Point of View 2.3 The Saturation Reset Controller At the most general level, the amount invested I(t) is a corr men Now acco or b Not abo mar 3.1 Wh is g incr This FYP examines different feedback-based trading strategies and investigates their ability to return a profit for traders.
  • 7. Feedback-based Stock Trading Strategies Assumptions Made for Testing Transaction costs are ignored. Discrete time. Perfect liquidity. Trader is a price taker. Zero market spread. Zero percent interest rates.
  • 8. Feedback-based Stock Trading Strategies Classical Linear Feedback Strategy The first strategy tested used the following function to modulate the investment level I(t). I(t) = I0 + βg(t) The coefficient, β, is known as the feedback gain parameter. Its value determines how sensitive the investment level is to changes in stock price.
  • 9. Feedback-based Stock Trading Strategies Classical Linear Feedback Strategy Days 0 200 400 600 800 1000 1200 1400 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Account Value of S&P 500 Portfolio using Feedback System Figure 1: Account Value for Implementing the Classical Stategy on the S&P Portfolio from 2005-2009.
  • 10. Feedback-based Stock Trading Strategies Feedback Strategy with Delay The delay strategy stems from the theory that the investment level I(t) should not only be dependent on the gain/loss at time t but also on a previous time t − µ. I(t) = I0 + β[g(t) − g(t − µ)].
  • 11. Feedback-based Stock Trading Strategies Feedback Strategy with Delay Days 0 200 400 600 800 1000 1200 1400 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Account Values: Delay versus No Delay Delay No Delay Figure 2: Account Value for Implementing the Delay Stategy on the S&P Portfolio from 2005-2009 versus Classical Strategy.
  • 12. Feedback-based Stock Trading Strategies Experimentation with Parameter Values It was found that using a delay reduced the volatility of the account values but that increasing the delay above µ = 1 was not beneficial. It was found that it was best to use a large β value during bullish market periods but that overall, a value of β < 1 was more beneficial.
  • 13. Feedback-based Stock Trading Strategies The “Trigger” Strategy For this system, the investment level function will switch, depending on a triggering condition, from I(t) to I∗ (t). I(t) = I0 + β0g(t) I∗ (t) = I0 + β1g(t)
  • 14. Feedback-based Stock Trading Strategies Days 0 200 400 600 800 1000 1200 1400 AccountValue 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Applying the use of a trigger to the S&P 500 Portfolio Normal Feedback System Feedback System with Trigger Figure 3: Applying the Trigger Strategy to the S&P Portfolio versus the Classical Strategy from 2005-2009.
  • 15. Feedback-based Stock Trading Strategies Transaction Costs Two-part TC Model introduced in order to reduce limitation of tests: 1% Stamp Duty on Purchases 0.9% of Account Value per annum in Brokerage Fees
  • 16. Feedback-based Stock Trading Strategies Results after Transaction Costs are Added System g(T) Broker Fees Taxation Profit Classical 1.3774 0.1205 0.7071 0.5497 Moving Average 0.8658 0.1115 1.0390 -0.2847 Delay 0.8402 0.1019 0.4279 0.3105 Trigger 1.5274 0.1088 0.1251 1.2935 Table 1: Performance of the four main strategies for the FTSE 100 portfolio for the period 2004-2012.
  • 17. Feedback-based Stock Trading Strategies Results after Transaction Costs are Added 0 200 400 600 800 1000 1200 1400 1600 1800 2000 Days -1 -0.5 0 0.5 1 1.5 2 Values FTSE 100 - Feedback System with Trigger and Transaction Costs Gain or Loss Profit Total Costs Figure 4: Perfomance of Trigger Strategy on the FTSE 100 Portfolio from 2004-2012 with Transaction Costs.
  • 18. Feedback-based Stock Trading Strategies Conclusion 3 out of 4 strategies tested made a net profit. There is certainly a place for the use of control theory in finance. This is a new line of research and requires further testing and reduction of limitations.
  • 19. Feedback-based Stock Trading Strategies The End Thanks for listening!