Git Product home page Git Product logo

webclinic017 / volume-algo-eurusd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xbt3k/volume-algo-eurusd

0.0 0.0 0.0 25 KB

The code is a EUR/USD algorithm that uses moving averages and the On-Balance Volume (OBV) and Chaikin Money Flow (CMF) indicators to buy or sell the currency pair. It retrieves historical data, calculates indicators, and executes trades based on price crossing the moving average and OBV/CMF signals.

License: MIT License

Python 100.00%

volume-algo-eurusd's Introduction

Forex Trading Algorithm

This algorithm uses a combination of volume, OBV, and CMF indicators to execute trades in the EUR/USD market. It is designed to run on Python 3.8 and requires the following libraries: pandas, numpy, backtrader, ta, and pyyaml.

Getting Started

  1. Install the required libraries by running pip install -r requirements.txt in your terminal.

  2. Create a config.yml file with your desired parameters, including your trading strategy, time frame, and risk management.

  3. Run main.py to start trading live, or run backtest.py to backtest your strategy on historical data.

Configuration

The config.yml file contains the following parameters:

  • strategy: The trading strategy to use. Options include MA_cross, RSI, and MACD.
  • timeframe: The time frame to trade on. Options include 1m, 5m, 15m, 1h, and 1d.
  • risk_management: The risk management parameters. Options include fixed or dynamic, and include the stop_loss and take_profit parameters.

Backtesting

To backtest your trading strategy, run backtest.py in your terminal. The results will be saved to a backtest_results.csv file.

Live Trading

To start trading live, run main.py in your terminal. Make sure to adjust the config.yml parameters to suit your needs, and monitor the trading activity closely.

Disclaimer

Trading forex carries a high level of risk and may not be suitable for all investors. The algorithm provided is for educational purposes only and should not be considered financial advice. Always do your own research before making any investment decisions.

volume-algo-eurusd's People

Contributors

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