Coder Social home page Coder Social logo

qmachinetrader's Introduction

qMachineTrader

Q Learning is a reinforcement learning method for incrementally estimating the optimal action-value function. It is an off-policy temporal difference method. As such, it is model-free and uses bootstrapping.

Word to the wise. Machine learning is only as smart as it's designer and can only be optimised for historic events. Moreover, it can never harness human intuition, product integrity or longevity. I would use this only for guidance.

This script is designed to be used in conjunction with qMonitor (https://github.com/sandybradley/qMonitor/blob/master/qmonitor.q). That needs to be running for a while to get some meaningful backtest learning. Automated trading takes place on Bitmex.

Pre-requisites

KDB+

Bitmex account

Run learning and start automated trading

Edit your api credentials in qMachineTrader.q. Ensure qMonitorBTCUSD has been running for a long time. Then start the script with a new q instance.

\l qMachineTrader.q

The learner will iterate backtests to form a decision matrix based on the programmed bit-field states. This takes a while. After that, it will select the best performing matrix and apply it to current market conditions for automated trading. This project is entirely experimental. You are most likely to lose money.

Karma jar

BTC - 112eMCQJUkUz7kvxDSFCGf1nnFJZ61CE4W

LTC - LR3BfiS77dZcp3KrEkfbXJS7U2vBoMFS7A

ZEC - t1bQpcWAuSg3CkBs29kegBPXvSRSaHqhy2b

XLM - GAHK7EEG2WWHVKDNT4CEQFZGKF2LGDSW2IVM4S5DP42RBW3K6BTODB4A Memo: 1015040538

Nano - nano_1ca5fxd7uk3t61ghjnfd59icxg4ohmbusjthb7supxh3ufef1sykmq77awzh

XRP - rEb8TK3gBgk5auZkwc6sHnwrGVJH8DuaLh Tag: 103535357

EOS - binancecleos Memo: 103117718

Recommended links

Getting started - Coinbase

Portfolio balance - Binance

Futures trading - Deribit

Cold wallet - Atomic

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.