Git Product home page Git Product logo

slovke / autoview-tradingview-chrome-docker-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamtheiam/autoview-tradingview-chrome-docker-bot

0.0 1.0 0.0 7.21 MB

24/7 cryptocurrency trading powered by TradingView.com Charts and Autoview. Runs an Autoview bot as a Chrome extension in a Docker Container to enable serverside execution of all AutoView bot commands.

License: MIT License

Dockerfile 0.91% TypeScript 1.77% CSS 1.64% HTML 29.03% JavaScript 65.90% Shell 0.75%

autoview-tradingview-chrome-docker-bot's Introduction

24/7 Crypto Trading Bot: TradingView.com Charts plus Autoview = ♥

TradingView.com provides powerful charting and indicator tools to create robust trading strategies. However, it does not allow automated trading.

Autoview is a chrome extension that bridges the gap between TradingView.com Charts and your exchange and executes trades automatically based on Alerts you program in TradingView.com Charts.

This project aimed at solving the problem of running a bot locally which does not work when the computer is off. A server was needed, and so I created this Docker image to enable myself and anyone to easily fire up a new container that runs Autoview as a service.

While I could have used a Windows VPS and set it up easily through remote desktop, I did not think of it before creating this, and so I created an Ubuntu 16.04 Docker image with an X-server installed and a VNC server to enable VNC connections (remote desktop). It works perfectly at running Autoview as a service and is easy to setup, only a couple simple steps.

Steps to get up and running:

  1. Create an Unbuntu 17.10 server with at least 2GB RAM
  2. Run sudo apt update && sudo apt upgrade to update all dependencies
  3. Install Docker and Docker-compose.

To use the pre-compiled Docker Image:

  1. Login via SSH to your server
  2. Run docker pull iamtheiam/autoview-bot. This will pull the image from the public docker repository I created
  3. Follow the steps in Deployment and Startup.

To build the image from source:

  1. Run git clone https://github.com/IAMtheIAM/autoview-tradingview-chrome-docker-bot.git :
  2. Run npm install
  3. Run npm run build:docker
  4. Upload the docker image to your server either via Dockerhub or SSH, see instructions:
    1. (From your local machine) docker save autoview-bot:latest | bzip2 | pv | \ ssh user@host 'bunzip2 | docker load'
  5. Follow the steps in Deployment and Startup.

Deployment and Startup

  1. Upload docker-compose.yml and launch-virtual-display.sh to your server. NOTE 1: The default VNC password is yourpassword - you should change this in docker-compose.yml to a secure password. NOTE 2: By default it runs on port 3903 for security. You can change this to any port you want inside ./launch-virtual-server.sh on line 82.

  2. From that same directory, run sudo docker-compose up

  3. Connect to your Docker container through VNC Viewer.

  4. Right click on the Desktop > Applications > Shell > Bash

  5. OPTIONAL: To automate logging in to TradingView.com, nano bot.ts and enter your username and password on lines 3 and 4. NOTE: The automation library this script depends on is Chromeless, which sometimes acts funny and doesn't open the browser tabs correctly. Just manually open tradingview.com and localhost:9222 if this happens.

  6. Manually setup your Autoview credentials like normal in the extension options (click the Autoview extension icon and go to Settings). OPTIONAL: To automate adding API credentials into Autoview, nano bot-setup.ts and customize the script for the exchanges you will use and your API keys. Then run npm run setup to run the Autoview setup script (and load the Autoview extension automatically). Delete the bot-setup.ts script when you are done with rm bot-setup.ts

  7. Run npm run start to run load Chrome with the Autoview extension automatically installed. If you did not enter your username and password into bot.ts, you will need to manually enter it when the login screen automatically appears after a few seconds (the bot will click login for you).

  8. Within tab localhost:9222, click the one that says Autoview. Now you can see the debugging output for autoview to see if its working.

  9. Setup your TradingView.com alerts and watch them get triggered automatically 24/7!

  10. OPTIONAL, but strongly recommended: Install a strong firewall with bruteforce detection

apt install apf-firewall

To install BFD, see: http://www.webhostgear.com/60.html

Configure your ports as desired. It is strongly suggested to run your VNC on a non-standard port for security purposes

If you have any tips or suggestions for improvement, or constructive critisism, open an issue ticket here on GitHub and I will respond to you soon.

autoview-tradingview-chrome-docker-bot's People

Contributors

iamtheiam avatar

Watchers

 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.