Giter Club home page Giter Club logo

gtrader's Introduction

About GTrader

Docker Automated Build Docker Build Status

GTrader is a trading strategy back-tester and bot manager.

Users

Please use GTrader-env to set up the PHP, MySQL and Nginx-SSL environment in Docker containers.

Developers

Either run from the Dockerhub container...

  1. docker run -d --name gtrader_php -p 127.0.0.1:9000:9000 gsoros/gtrader:latest
  2. inside the container, edit .env with your database settings
  3. configure your webserver to use php-fpm

... or rebuild everything

Requirements
Installation
  1. git clone https://github.com/gsoros/GTrader.git
  2. cd GTrader
  3. composer install
  4. npm install
  5. cp .env.example .env
  6. php artisan key:generate
  7. edit .env
  8. set up db
  9. php artisan migrate
  10. npm run dev
  11. (crontab -l; echo -e "### GTrader Schedule\n* * * * * `which php` `pwd`/artisan schedule:run >> `pwd`/storage/logs/schedule.log 2>&1") | crontab -
  12. php artisan serve

Screenshots

main chart

settings

training

strategies

Warning and disclaimer

Trading carries a high level of risk. This software is at an early stage of development and most likely contains serious bugs. Please do not use it with a live exchange account unless you are prepared to lose part or all of your balance. Even if you are confident having extensively backtested a strategy and are familiar with the inner workings of this software, it is very likely that your strategy is suffering from overfitting or any number of the many pitfalls of algo-trading.

License

GPLv3

gtrader's People

Contributors

gsoros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtrader's Issues

Discussion (was: Can't run bots)

Hi. Firstly, thanks. Very interesting project, for educate myself also.
I meet some problem. I create strategy and bot. But I can't run any bot, get the error from mysql and a lot of notice messages about undefined constants, mostly about indicators, as I understand. Is this possible on this step test the strategy? Could you please tell little bit, how it should work?
Part of output.

Notice: Use of undefined constant TRADER_MA_TYPE_KAMA - assumed 'TRADER_MA_TYPE_KAMA' in /Applications/MAMP/htdocs/symfony_steps/GTrader-env/GTrader/config/GTrader/Indicators/Trader.php on line 11
PHP Notice:  Use of undefined constant TRADER_MA_TYPE_MAMA - assumed 'TRADER_MA_TYPE_MAMA' in /Applications/MAMP/htdocs/GTrader-env/GTrader/config/GTrader/Indicators/Trader.php on line 12

Notice: Use of undefined constant TRADER_MA_TYPE_MAMA - assumed 'TRADER_MA_TYPE_MAMA' in /Applications/MAMP/htdocs/GTrader-env/GTrader/config/GTrader/Indicators/Trader.php on line 12
PHP Notice:  Use of undefined constant TRADER_MA_TYPE_T3 - assumed 'TRADER_MA_TYPE_T3' in /Applications/MAMP/htdocs/GTrader-env/GTrader/config/GTrader/Indicators/Trader.php on line 13

Notice: Use of undefined constant TRADER_MA_TYPE_T3 - assumed 'TRADER_MA_TYPE_T3' in /Applications/MAMP/htdocs/GTrader-env/GTrader/config/GTrader/Indicators/Trader.php on line 13
  
[Illuminate\Database\QueryException]                                                           
  SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `bots` where `status` = active)                                                       
                                            
  [PDOException]                             
  SQLSTATE[HY000] [2002] Connection refused  

Warning: Use of undefined constant TRADER_MA_TYPE_SMA

I'm getting below issue while composer install, my php version is 7.3

Warning: Use of undefined constant TRADER_MA_TYPE_SMA - assumed 'TRADER_MA_TYPE_SMA' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\xampp\GTrader\config\GTrader\Indicators\Bbands.php on line 9
PHP Warning: Use of undefined constant TRADER_MA_TYPE_SMA - assumed 'TRADER_MA_TYPE_SMA' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\xampp\GTrader\config\GTrader\Indicators\Bbands.php on line 9

Warning: Use of undefined constant TRADER_MA_TYPE_EMA - assumed 'TRADER_MA_TYPE_EMA' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\xampp\GTrader\config\GTrader\Indicators\Ma.php on line 7
image

support "future market data " USDⓈ-M Futures

Bot

  • Run, pause bots

Chart settings UI

  • Select charting engine
  • Select chart type: candles, OHLC, Heikin-Ashi, line ...

Its Broken Completely...

Hi when i install this software on php 8 nothing works.

Would it be possible for you to upgrade this to work on php 8 and using the latest laravel version.

Alternatively can you create some realistic human readable docker instructions.

As your current docker instructions do not mean nothing to anybody!

Problem with charts

Hello

I just installed the gtrader on a AMI EC2 Amazon, and the charts are black (not appearing)

Thanks for your help

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.