Coder Social home page Coder Social logo

financial-ml / market-analysis-3 Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 37 KB

Machine Learning techniques that analyse Forex market.

Python 100.00%
python data-science machine-learning machine-learning-algorithms feature-engineering forex-prediction forex-analysis data-engineering forexconnect-api forex

market-analysis-3's Introduction

Market-Analysis-3

Overview

In Market Analysis 3 we change its component to improve performance and speed, plus that we merge all the component in two main programes Analyzer and Applier, Also add a lot of Mobility for Analyzing the market.

Analyzer Components

Dataset

Pull the Dataset for any symbol in any period of time in Forex market that contain the basic Features (open, high, low, close).

How we do it

We do it by using fxcm python library (PYFXCM).

Feature-Calculator

In Feature-Calculator we calculate the machine learning Feature based on this research (here).

How we do it

  • We build it in python .
  • It based on the main Features Dataset and some functions in this research (here)..

ML-Models

Different Machine Learning models that we used to learn from the Feature.

How we do it

  • We build the the models in python using scikit-learn.
  • It learn from our predefined Feature.
  • And then save it after finsh traning in PKL file.

Models

  • Decision Tree.
  • k-nearest neighbor.
  • RandomForest.
  • Support vector machine.
  • Neural-network-MLPClassifier.

Testing

Use to backtest a strategy that based on the prediction of the Models from any period of time.

How we do it

  • We do it by build our algorithmic trading strategy in python.
  • And load our Models in Tester component.
  • Then calculate the profits by saving the enter price and the Action then subtract from it the close price and subtract the spreed.

Algorithmic Trading

The advantage of Market-Analysis-3 is the mobility and in Algorithmic Trading we can have more the one Algorithm till now i add two algorithm:

  • Algo_1 Called every NTime see the prediction:

Enter : if all is equal then do the action.

Hold : if not equal.

Close : if all equal in the opesit side.

  • Algo_2 Called every NTime and NTime+1 see the prediction:

Enter : if all is equal in NTime and NTime+1 then do the action.

Hold : if not equal.

Close : if all equal in the opesit side.

What we test ?

  1. Profit
  2. Total number of trades
  3. Sum of wining trades
  4. Sum of loss trades
  5. Max drawdown
  6. Best trade

Applier Components

market-analysis-3's People

Contributors

amjad-aburaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

market-analysis-3's Issues

Real time data

Hi,

thanks for this interesting repository.
I am wondering how to apply your models to real-time data, do you have any suggestion for doing this?

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.