Giter Site home page Giter Site logo

reed-schimmel / oanda-forex-trader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chip-munk/oanda-forex-trader

0.0 1.0 0.0 154 KB

Algorithmic Trading | Trend Following | Reversal at Key Support & Resistance

Home Page: https://www.quantshin.com

Python 100.00%

oanda-forex-trader's Introduction

OANDA Forex Trader

Introduction

Deleveop a trading bot deployed in forex & CFD markets to capitalize trading opportunities in systematic and algorithmic ways, using various historically proven trading strategies.

Limitation of FX & CFD Trading

FX & CFD trading looks attractive for beginners who are interested in trading the markets. They can start trading with small amount of capital and many forex brokers provide instant access to the markets without much restrictions. However, there are downsides of it when you want to seriously manage large amount of money. The main limitation is you are most likely trading against your broker with the quotes provided by them. Therefore, there is information disadvantages between you and your brokers as your broker knows everything about your open trades, transactions and account activities. They can always use those information against you for their own benefits when market conditions go wild.

My advice is that if you really want to trade the markets seriously, you should consider trading futures or other derivatives which are traded in centralized and regulated exchanges. For example, trading futures involves real market participation through centralized exchanges, and you have access to real market order flows which are transparant and no hidden stuff.

In summary, forex and cfd are good instruments for you to test your algorithms with small amount of capital, but I don't recommend using them for large accounts due to the reasons above.

Trend Following Strategy (Original Turtle Traders)

Strategy Overview

Long term trend following strategy with wide stop and target. A breakout signal of previous highs or lows is considered as the beginning of new trend. Stops are determined by Average True Range of previous days. System 1 uses shorter periods to catch short trend and System 2 uses longer periods to catch long term trend.

Trading Rules (System 2)

  • Entry: Breakout Long @ previous 55 days high / Breakout Short @ previous 55 days low
  • Stop Loss: 2 x ATR
  • Take Profit (Modified): either 2 x ATR or 20 days low for long and 20 days high for short (whichever is close to current price)

Pros

  • Easy to understand and simple rules.
  • Less frequent trades.

Cons

  • Possibly lots of small losing trades, and it must catch big trends to cover previous losses.
  • Long term view might not be best for FX markets with lots of noise and consolidation phases.
  • Out-dated strategy with today's advanced markets.

Resources

Reversal Strategy (Turtle Soup by Linda Bradford-Raschke)

Strategy Overview

Since original turtle trading system has about 30% of breakout success rate at key highs and lows, that means 70% of the time markets fail to break out key levels. We can reverse-engineer to bet against original turtles to capitalize 70% of false breakouts. 'Turtle Soup' strategy goes long at previous lows and goes short at previous highs, expecting the markets to reverse.

Trading Rules

  • Entry: Long @ previous X days low and Short @ previous X days high
  • Stop Loss: Trailing stop to limit the downside risk
  • Take Profit (Modified): Until the initial trailing stop is hit.

Pros

  • Testing the key levels doesn't require large stops which means risk reward ratio can be improved if the market moves in favour of our positions.

Cons

  • The markets might move choppy around the key levels and we have no quantifiable information about how much the market actually behaves and reacts around the key levels.

oanda-forex-trader's People

Contributors

eshinhw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.