Forex Trading System Development

Total Page:16

File Type:pdf, Size:1020Kb

Forex Trading System Development Forex Trading System Development An Interactive Qualifying Project submitted to the Faculty of WORCESTER POLYTECHNIC INSTITUTE in partial fulfilment of the requirements for the Degree of Bachelor of Science by Michael Poon Austin Alibozek Michael Guarino Date: 1 June 2014 Report Submitted to: Professor Hossein Hakim Professor Michael Radzicki i Abstract The focus of this report is to demonstrate the process of building a trading system to be used in the foreign exchange market. The report will introduce an overview of the currency market and different trading techniques and concepts used in the construction of a trading system. The process of building a forex trading strategy, from initial formation to optimization, is laid out based on existing research. The results and analysis of the group’s own experience building and testing a forex strategy is included to exhibit the method presented in the report. i Table of Contents Abstract ............................................................................................................................................ i Table of Figures ............................................................................................................................. iv 1 Introduction ............................................................................................................................. 1 1.1 Project Description ........................................................................................................... 2 2 Background .............................................................................................................................. 3 2.1 Trading Markets ............................................................................................................... 3 2.1.1 Stocks ........................................................................................................................ 3 2.1.2 Commodities ............................................................................................................. 5 2.1.3 Forex ......................................................................................................................... 6 1. Forex ................................................................................................................................ 6 2.2 Overview of Forex ........................................................................................................... 8 2.2.1 History of Forex ........................................................................................................ 8 2.2.2 Currency Pairs ........................................................................................................... 9 2.2.3 Market Structure ..................................................................................................... 11 2.2.4 Trading Sessions ..................................................................................................... 12 2.2.5 Leverage .................................................................................................................. 13 2.3 Analysis Techniques ...................................................................................................... 14 2.3.1 Fundamental Analysis ............................................................................................. 14 2.3.2 Market Sentiment .................................................................................................... 19 2.3.3 Technical Analysis .................................................................................................. 22 2.4 The Trading System ....................................................................................................... 36 2.4.1 Selecting a Currency Pair ........................................................................................ 37 2.4.2 Market Analysis ...................................................................................................... 37 2.4.3 Trading Style ........................................................................................................... 38 2.4.4 Risk Management and Position Sizing ................................................................... 39 3 Methodology .......................................................................................................................... 40 3.1.1 Establishing an Understanding of the market ......................................................... 40 3.1.2 Learning Trading Mechanics .................................................................................. 41 3.1.3 Research of Technical and Fundamental Analysis ................................................. 41 3.1.4 Testing and Evaluating Trading Strategies ............................................................. 42 ii 4 Process ................................................................................................................................... 44 4.1 Strategy I Process ........................................................................................................... 44 4.2 Strategy II Process .......................................................................................................... 54 4.3 Strategy III Process ........................................................................................................ 61 5 Results ................................................................................................................................... 69 5.1 Gain an Understanding of Forex .................................................................................... 69 5.2 Define Trading Personality ............................................................................................ 69 5.3 Select Useful Indicators ................................................................................................. 70 5.4 Define Entry and Exit Rules........................................................................................... 70 5.5 Manage Risk ................................................................................................................... 71 5.6 Trade the System ............................................................................................................ 71 Appendices .................................................................................................................................... 72 Appendix A. Exchange Rate Theories and Models .................................................................. 72 Purchasing Power Parity ........................................................................................................ 72 Interest Rate Theories ............................................................................................................ 73 Monetary Theory ................................................................................................................... 73 Appendix B. Weekly Reports.................................................................................................... 75 Weekly Report - 2/6/14 ......................................................................................................... 75 Weekly Report – 2/27/14 ....................................................................................................... 85 Appendix C. Trading Logs ........................................................................................................ 93 Strategy I Trading Log .......................................................................................................... 93 Strategy II Trading Log ............................................................................................................. 95 Strategy III Trading Log ........................................................................................................... 98 Appendix D. EasyLanguage Code .......................................................................................... 100 EL Strategy I – Strategy ...................................................................................................... 100 EL Strategy II – Strategy ......................................................................................................... 102 EL Strategy III - Indicator ....................................................................................................... 102 6 References ........................................................................................................................... 106 iii Table of Figures Figure 1 – Diagram of Forex Market Structure ............................................................................ 12 Figure 2 – Example of Simple Moving Average Indicator........................................................... 26 Figure 3 – Example of Moving Average Divergence Convergence Indicator ............................. 28 Figure 4 – Example of Bollinger Bands Indicator ........................................................................ 30 Figure 5 – Example of Relative Strength Index Indicator ........................................................... 33 Figure 6 – Example of Stochastic Indicator .................................................................................. 35 Figure 7 – Strategy I 2-Line SMA Strategy Chart ........................................................................ 47 Figure 8 – Strategy I: MACD Momentum Strategy Daily Chart .................................................. 49 Figure 9 – Strategy I: MACD Momentum Strategy 4-hour Chart
Recommended publications
  • Of Crashes, Corrections, and the Culture of Financial Information- What They Tell Us About the Need for Federal Securities Regulation
    Missouri Law Review Volume 54 Issue 3 Summer 1989 Article 2 Summer 1989 Of Crashes, Corrections, and the Culture of Financial Information- What They Tell Us about the Need for Federal Securities Regulation C. Edward Fletcher III Follow this and additional works at: https://scholarship.law.missouri.edu/mlr Part of the Law Commons Recommended Citation C. Edward Fletcher III, Of Crashes, Corrections, and the Culture of Financial Information-What They Tell Us about the Need for Federal Securities Regulation, 54 MO. L. REV. (1989) Available at: https://scholarship.law.missouri.edu/mlr/vol54/iss3/2 This Article is brought to you for free and open access by the Law Journals at University of Missouri School of Law Scholarship Repository. It has been accepted for inclusion in Missouri Law Review by an authorized editor of University of Missouri School of Law Scholarship Repository. For more information, please contact [email protected]. Fletcher: Fletcher: Of Crashes, Corrections, and the Culture of Financial Information OF CRASHES, CORRECTIONS, AND THE CULTURE OF FINANCIAL INFORMATION-WHAT THEY TELL US ABOUT THE NEED FOR FEDERAL SECURITIES REGULATION C. Edward Fletcher, III* In this article, the author examines financial data from the 1929 crash and ensuing depression and compares it with financial data from the market decline of 1987 in an attempt to determine why the 1929 crash was followed by a depression but the 1987 decline was not. The author argues that the difference between the two events can be understood best as a difference between the existence of a "culture of financial information" in 1987 and the absence of such a culture in 1929.
    [Show full text]
  • 2020-2024 County Growth Policy Working Draft Appendices
    2020-2024 WORKING DRAFT APPENDICES May 21, 2020 Prepared by Montgomery Planning www.MontgomeryPlanning.org [This page is intentionally blank.] Table of Contents Table of Contents ..................................................................................................................................... i Appendix A. Forecasting Future Growth ............................................................................................... 5 Summary ................................................................................................................................................... 5 Montgomery County Jurisdictional Forecast Methodology ...................................................................... 5 Overview ............................................................................................................................................... 5 Countywide Forecast ............................................................................................................................. 5 TAZ-level Small Area Forecast ............................................................................................................... 6 Projection Reconciliation ....................................................................................................................... 8 Appendix B. Recent Trends in Real Estate ........................................................................................... 11 Residential Real Estate ...........................................................................................................................
    [Show full text]
  • Stock-Market Simulations
    Project DZT0518 Stock-Market Simulations An Interactive Qualifying Project Report: submitted to the Faculty of WORCESTER POLYTECHNIC INSTITUTE in partial fulfillment of the requirements for the Degree of Bachelor of Science By Bhanu Kilaru: _____________________________________ Tracyna Le: _______________________________________ Augustine Onoja: ___________________________________ Approved by: ______________________________________ Professor Dalin Tang, Project Advisor Table of Contents LIST OF TABLES....................................................................................................................... 4 LIST OF FIGURES..................................................................................................................... 5 ABSTRACT ..................................................................................................................................... 6 CHAPTER 1: INTRODUCTION ................................................................................................. 7 1.0 INTRODUCTION .................................................................................................................... 7 1.1 BRIEF HISTORY .................................................................................................................. 9 1.2 DOW .................................................................................................................................. 11 1.3 NASDAQ..........................................................................................................................
    [Show full text]
  • Anatomy of a Meltdown
    ISSUE 3 | VOLUME 4 | SEPTEMBER 2015 ANATOMY OF A MELTDOWN ................... 1-7 OUR THOUGHTS ......... 7 Cadence FOCUSED ON WHAT MATTERS MOST. clips Anatomy of a Meltdown When the stock market loses value quickly as it has done the process. It’s easier to remember the tumultuous fall this week, people get understandably nervous. It’s not months of 2008 than it is to remember the market actu- helpful to turn on CNBC to get live updates from the ally peaked a year earlier in 2007. We’ve seen a few trading floor and to listen to talking heads demand ac- smaller corrections over the past seven years, but tion from someone, anyone!, to stop this equity crash, as they’ve played out over months instead of years, and if things that go up up up should not be allowed to go relatively quick losses in value have been followed by down, especially this quickly. So much time has passed relatively quick, and in some cases astonishingly quick, since the pain of the 2007-2009 finan- recoveries, to the point that we cial crisis that it is easy to lose perspec- may be forgetting that most signifi- tive and forget how to prepare for and The key is to not change cant stock market losses take years how to react to a real stock market strategy during these volatile to fully occur. The key is to not decline, so every double digit drop change strategy during these vola- feels like a tragedy. periods and to plan ahead of tile periods and to plan ahead of time for the longer term time for the longer term moves By now we’ve convinced ourselves moves that cause the signifi- that cause the significant losses in that we should have seen the 2007- cant losses in value.
    [Show full text]
  • Second Amended Statement of Claim
    - 3 - AND TO: RBC CAPITAL MARKETS LLC Three World Financial Centre 200 Vesey Street, 5th Floor New York, New York 10281 AND TO: BANK OF AMERICA CORPORATION 100 North Tryon Street Charlotte, North Carolina 28255 AND TO: BANK OF AMERICA, N.A. 101 South Tyron Street Charlotte, North Carolina 28255 AND TO: BANK OF AMERICA CANADA 400-181 Bay Street Toronto, ON M5J 2V8 AND TO: BANK OF AMERICA, NATIONAL ASSOCIATION 400 - 181 BAY ST Toronto, ON M5J 2V8 AND TO: BANK OF MONTREAL First Canadian Place 21st Floor, 100 King Street West Toronto, ON M5X 1A1 AND TO: BMO FINANCIAL CORP. 111 West Monroe Street Third Floor Chicago, IL 60603 AND TO: BMO HARRIS BANK N.A. 111 West Monroe Street Chicago, IL 60603 AND TO: BMO CAPITAL MARKETS LIMITED 95 Queen Victoria Street London EC4V 4HG United Kingdom AND TO: THE BANK OF TOKYO MITSUBISHI UFJ LTD. 2-7-1, Marunouchi, Chiyoda-ku Tokyo, Japan - 4 - AND TO: BANK OF TOKYO-MITSUBISHI UFJ (CANADA) 200 Bay Street, Royal Bank Plaza, South Tower Toronto, ON M5J 2J1 AND TO: BARCLAYS BANK PLC 1 Churchill Place London, England E14 5H AND TO: BARCLAYS CAPITAL INC. 745 7th Avenue New York, New York 10019 AND TO: BARCLAYS CAPITAL CANADA INC. 333 Bay Street, Suite 4910 Toronto, ON M5H 2R2 AND TO: BNP PARIBAS GROUP 16 Boulevard des Italiens Paris, France 75009 AND TO: BNP PARIBAS NORTH AMERICA INC. 787 7th Avenue New York, New York 10019 AND TO: BNP PARIBAS (CANADA) 1981 McGill College Avenue Montreal, QC H3A 2W8 AND TO: BNP PARIBAS 1981 McGill College Avenue Montreal, QC H3A 2W8 AND TO: CITIGROUP, INC.
    [Show full text]
  • Revenue Growth in a Declining Market
    Media Release Page 1/2 Winterthur, January 23, 2020 2019 financial year: revenue growth in a declining market Thanks to numerous new ramp-ups and the favorable portfolio of vehicle models supplied, Autoneum grew organically by 2.5% in a declining market. Adjusted for currency effects, Group revenue in Swiss francs amounted to CHF 2 297.4 million, 0.7% higher compared to the previous year. CHF million 2019 2018 Change Organic growth* Revenue Group 2 297.4 2 281.5 +0.7% +2.5% Revenue Business Groups (BG) - BG Europe 900.9 984.5 –8.5% –5.6% - BG North America 1 001.8 921.8 +8.7% +7.2% - BG Asia 275.7 260.3 +5.9% +8.1% - BG SAMEA 125.8 111.5 +12.8% +32.7% *Change in revenue in local currencies, adjusted for hyperinflation. For the second consecutive year, fewer vehicles were manufactured worldwide in 2019 than in the prior year. In particular, the persistently weak global economy and ongoing trade disputes have had an impact on vehicle demand. With only about 89 million vehicles produced, the market shrank by almost –6% compared to 2018. Despite this negative trend, Autoneum achieved an organic revenue growth of 2.5% through numerous production ramp-ups and a favorable mix of vehicle models supplied. Revenue consolidated in Swiss francs rose by 0.7% from CHF 2 281.5 million to CHF 2 297.4 million. Revenue growth in North America, Asia and SAMEA region significantly above market The Business Groups North America, Asia and SAMEA (South America, Middle East and Africa) not only outperformed the negative market trend in each case, but also reported higher revenues compared to the previous year.
    [Show full text]
  • Market Trend, Company Size and Microstructure Characteristics of Intraday Stock Price Formations
    European Research Studies Volume VI, Issue (1-2), 2003 Market Trend, Company Size and Microstructure Characteristics of Intraday Stock Price Formations Alexakis C. ∗∗∗ and Xanthakis E. ∗∗∗ Abstract The purpose of this study is to investigate whether there are certain price patterns during the trading session in the Athens Stock Exchange (ASE). We investigate statistically the series of stock returns, the volatility of stock returns and trading volume. In our analysis we use data from two different time periods; a period of rising prices (“bull” market) and a period of declining stock prices (“bear” market). We also use different categories of shares i.e. blue chips, medium capitalization stocks and small capitalization stocks. Our results indicate that there exist specific intraday patterns. The explanation of the revealed patterns can be based on investor sentiment and stock market microstructure characteristics Keywords : pattern, intraday, microstructure, regression JEL Classification : G14 1. Introduction The empirical research for stock price formation investigates a) if there is past available information which can help in predicting future returns profitably, and b) if non rational factors i.e. factors which are not predicted by the economic theory, influence stock prices (Muth 1961, Cootner 1962, Fama 1965, 1970, 1976, 1991, Gowland and Baker 1970, Cutler, Poterba and Summers 1989 and 1991, MacDonald and Taylor 1988, 1989, Spiro 1990, Cochrane 1991, Frennberg and Hansson 1993, Jung and Boyd 1996, Al-Loughani and Chappel 1997). Thus, according to the theory there should not be any patterns in the formation of stock prices or relevant variables i.e. trading volume, volatility which would imply a) and/or b) above.
    [Show full text]
  • TRADING the MAJORS Insights & Strategies
    We want traders to succeed TRADING THE MAJORS Insights & Strategies A useful guide to trading the major currency pairs 1 Trading the Majors 81% of investors lose money www.tickmill.com when trading CFDs. TABLE OF CONTENTS Introduction ................................................................................................................ 04 01 | Forex Trading Basics ................................................................................................ 05 1.1 What is Forex Trading and How it Works ...................................................... 06 1.2 Currency Pairs ..................................................................................................... 07 1.3 Factors Affecting the Forex Market ................................................................ 09 1.4 Key Characteristics of the Forex Market ....................................................... 10 1.5 Types of FX Markets .......................................................................................... 11 1.6 Brief History of Forex Trading .......................................................................... 12 1.7 Why Trade Forex? ............................................................................................... 13 02 | Currency Trading in Action ...................................................................................... 15 2.1 Long and Short Positions ................................................................................. 16 2.2 Types of Forex Orders ......................................................................................
    [Show full text]
  • World Development Studies 9 the Elusive Miracle
    UNU World Institute for Development Economics Research (UNUAVIDER) World Development Studies 9 The elusive miracle Latin America in the 1990s Hernando Gomez Buendia This study has been prepared within the UNUAVIDER project on the Challenges of Globalization, Regionalization and Fragmentation under the 1994-95 research programme. Professor Hernando Gomez Buendia was holder of the UNU/WIDER-Sasakawa Chair in Development Policy in 1994-95. UNUAVIDER gratefully acknowledges the financial support of the Sasakawa Foundation. UNU World Institute for Development Economics Research (UNU/WIDER) A research and training centre of the United Nations University The Board of UNU/WIDER Sylvia Ostry Maria de Lourdes Pintasilgo, Chairperson Antti Tanskanen George Vassiliou Ruben Yevstigneyev Masaru Yoshitomi Ex Officio Heitor Gurgulino de Souza, Rector of UNU Giovanni Andrea Cornia, Director of UNU/WIDER UNU World Institute for Development Economics Research (UNU/WIDER) was established by the United Nations University as its first research and training centre and started work in Helsinki, Finland in 1985. The purpose of the Institute is to undertake applied research and policy analysis on structural changes affecting the developing and transitional economies, to provide a forum for the advocacy of policies leading to robust, equitable and environmentally sustainable growth, and to promote capacity strengthening and training in the field of economic and social policy making. Its work is carried out by staff researchers and visiting scholars in Helsinki and through networks of collaborating scholars and institutions around the world. UNU World Institute for Development Economics Research (UNU/WIDER) Katajanokanlaituri 6 B 00160 Helsinki, Finland Copyright © UNU World Institute for Development Economics Research (UNU/WIDER) Cover illustration prepared by Juha-Pekka Virtanen at Forssa Printing House Ltd Camera-ready typescript prepared by Liisa Roponen at UNU/WIDER Printed at Forssa Printing House Ltd, 1996 The views expressed in this publication are those of the author(s).
    [Show full text]
  • Forex Trading System Development
    Forex Trading System Development An Interactive Qualifying Project Report Submitted to the Faculty of WORCESTER POLYTECHNIC INSTITUTE In partial fulfillment of the requirements for the Degree of Bachelor of Science By: Ziyan Ding Omar Olortegui Trivani Shahi Approved By: Professor Hossein Hakim Date: May 30th, 2016 Table of Contents Abstract ….……………..………………………………………………………………….….….6 Chapter 1: Introduction ………..……………………………………………………….….…....7 Chapter 2: Background Information ……………………………………………….…..…..….9 2.1 Financial Markets …………………….……………………..…..…………………9 2.1.1 Capital Market ………………….………………………………………….....9 2.1.2 Stock Market ………………………………………………………………...10 2.1.3 Bond Market ………………………………………………………………...10 2.1.4 Money Market ……………………………………………………………….10 2.1.5 Derivative Market …………………………………………………………...11 2.2 Forex Market ……………………………….……………………………………..11 2.2.1 Currency Pairs ………………………………....…………………………..12 2.2.2 Trading Sessions ……………………………………….…………………..13 2.2.3 Best Times During the Day to Trade Forex ……………….……………..14 2.3 Forex Trading Terminology ………………...………………….………………..15 2.3.1 Base/Quote Currency ……………...………………………………………15 2.3.2 Bid Price …………………………..…………………………………...…....15 2.3.3 Ask Price …………………………..…………………………………...…...15 2.3.4 Percentage In Point ……..…………………………………..……………..15 2.3.5 Leverage ……………………………………………………………...…......16 2.3.6 Lot Size ………………...……………………………………………...….....16 2.3.7 Short/Long ………………..……………………………………………...….16 2.3.8 Margin Call ………………..…………………………………………….......17 2.3.9 Stop Loss …………………..…………………………………………...…...17 Chapter 3:
    [Show full text]
  • Maple Syrup Price Trends
    History of Northeastern US Maple Syrup Price Trends T. Eric McConnell Gary W. Graham Abstract Average annual percentage rates of change (APR) in maple syrup prices (average gallon equivalent price in the United States) in seven northeastern United States and their aggregated region were determined for the years 1916 to 2012. The price trend lines were then compared on state-by-state and region-by-state bases. Maple syrup prices across all states and the region as a whole were increasing nominally at significant average annual rates. Nominal APRs ranged from 3.42 percent for Maine to 4.13 percent for New Hampshire, with the price in the combined region increasing at a rate of 3.96 percent annually. Real prices (discussed in 2012 constant dollars) were appreciating at significant annual rates in all areas except Maine. Real APRs ranged from 0.46 percent for Maine to 1.12 percent for New Hampshire, and the regional price was increasing at 0.95 percent annually. Whereas the region’s all-time high price of $40.38 was obtained nominally in 2008, the real price actually reached its highest point in 1987 ($53.89). Two other real price peaks were observed regionally: 1947 ($41.17) and 1972 ($45.31). No differences in trend line intercepts and slopes were found across the region. Obtaining price information for any one location has historically provided producers and processors a reasonable expectation of market activities occurring in the greater region. Production of maple-based products is one of the oldest differences existed. We then developed a weighted regional and most vertically integrated industries in American price and compared it with the states’ price trends.
    [Show full text]
  • International Journal of Economics & Management Sciences
    nomi co cs f E & o M l a a n n a r g u e o m J International Journal of Economics & e l n a t n Gallo C, Int J Econ and Manage Sci 2014, 3:1 S o i c t i a ISSN: 2162-6359 e n n r c e t e 10.4172/2162-6359.1000169 s n I Management Sciences DOI: Review article Open-access The Forex Market in Practice: A Computing Approach for Automated Trading Strategies Crescenzio Gallo* Department of Clinical and Experimental Medicine University of Foggia Viale Luigi Pinto 1, 71122 Foggia, Italy *Corresponding author: Crescenzio Gallo, Department of Clinical and Experimental Medicine University of Foggia Viale Luigi Pinto 1, 71122 Foggia, Italy, Tel: +39 0881-588067; E-mail: [email protected] Received date: June 11, 2014; Accepted date: July 10, 2014; Published date: July 20, 2014 Copyright: © 2014 Gallo C. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited Abstract Prediction of various market indicators is an important issue in finance. This can be accomplished through computer models and related applications. It turned out that artificial models have both great advantages and some limitations for learning the data patterns and predicting future values of the financial phenomenon under analysis. In this paper we analyze the particular financial market called Forex and the way computing models are used to automate trading strategies by making affordable predictions on the evolution of exchange rates between currencies.
    [Show full text]