Code Monkey home page Code Monkey logo

falcon_d's Introduction

FALCON_D

Description

20191109 Repository to develop simpler trading robot.

NB: Use on your own risk!!!

Implemented based on the FALCON template. Trading robot can be used together with Decision Support System as described in the 'Lazy Trading Educational Project'. Robot logic is implemented based on states. States are defined in the custom functions that 'confines' a strategy space in one place. Obviously the best is to understand this robot using Strategy Tester, well only use it for H1 charts!

Goal

Trading robot based on:

  • Asset optimization, selection of best currency pairs
  • Analysis of performance using 'forward' test
  • Use of R package 'lazytrade' to facilitate and speed up the analysis

Code source

Original code is taken from: FALCON_F2, some ideas are borrowed from ForexBoat.com course on Forex

Example of setups

Robot Setup

  • Using just few charts with Assets that we know (e.g. USD/GBP/EUR/AUD)
  • NB: Only use it on H1 charts!!!

Filters

  • H1 chart, same parameters as we defined
  • Moving Averages filter D950/D1
  • RSI filters

Entry

  • Entry is simply decided if the price at Hour X would change more than X pips from the beginning of the day (Hour 0). Price change is in the opposite direction from the trend

Exits

  • Fixed time in minutes e.g. 1440min is 24 hours
  • Obviously Hard Stops that can be setup using variety of options e.g. volatility of fixed

Filters

User defined

  • only sell/buy positions selectable

Moving Average

  • D1 price is above D750 enables buy trades
  • D1 price is below D750 enables sell trades

Note: D750/D1 is customizable in External Parameters

RSI

  • can use RSI based filter to detect overbought/oversold asset. Period of the robot is hard coded in the code to be 14 Days:
  • Filter all buy trades when RSI is > 70

extern int RSI_NoBuyFilter = 70;

  • Filter all sell trades when RSI is < 30

extern int RSI_NoSellFilter = 30;

  • Removes above mentioned filters:

extern int RSI_NoBuyFilter = 100; extern int RSI_NoSellFilter = 0;

Development Check List (on Strategy Tester)

  • Time hold order is working
  • JPY pairs targets are working well
  • Both Buy/Sell orders are opened
  • Only Buy | Only Sell
  • Both Buy/Sell orders are blocked
  • Multi positions are possible

falcon_d's People

Contributors

vzhomeexperiments 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.