Code Monkey home page Code Monkey logo

opti-mora's Introduction

Trading View Optimizer

Perquisites

1.Python 3.7+ Download it from here https://www.python.org/downloads/release/python-370/ then install it 2.Google Chrome browser 3.Chrome driver: Download the chrome driver corresponding to chrome browser version from here (https://chromedriver.chromium.org/downloads). To know chrome browser version, click on the three dots and select help->About Google Chrome (version number We need is the first 3 numbers, i,e,:110.x). Download chrome driver and extract it inside the cloned repository

enter image description here

4.The path of your Chrome profile. To get the profile path, write chrome://version/ in the browser address bar and press enter . You will long list of configurations, and "Profile Path" is one of them. the value of "Profile Path" (after removing "\Default" from its end) is what u need. It should look like this C:\Users<USERNAME>\AppData\Local\Google\Chrome\User Data enter image description here Note that you need to be logged in automatically in Trading view in this profile, otherwise the app won't work

5.Install tesseract (used for OCR). The guide here explains how to install it properly. Note that we need the exe path, it will be something like C:\Program Files\Tesseract-OCR\tesseract.exe

Installing:

open terminal in the folder having the code and run:

python -m pip install -r requirements.txt

Configuring the code:

Open the .env file near the code and edit the following:

  • TESSERACT_CMD: path to tesseract.exe (Perquisites step no.5)

Running the code:

In a cmd terminal in the folder having the cloned code run here is how

python app.py

Operation:

  1. Fill the following data in the UI: a. Strategy Chart URL: The share link of the chat (example: https://www.tradingview.com/chart/XYZABC/) b. Google Chrome profile path: Path to google chrome profile having trading view auto logged-in (Perquisites step no.4) c. Output CSV: name of the output csv file enter image description here

  2. Strategy paramters: For the first time for a strategy, the app needs to know the strategy parameters. To do so, click on "Capture" button. It will open the strategy and figures its parameters by looping over them. Next times, you do not need to re-capture (unless the strategy is changed). Just click "Load parameters" and the previously captured parameters will be auto loaded

  3. Parameters values: The app shows the available parameters for strategy. To include some parameter in the optimization process, tick its use checkbox. For numeric values you have to specify maximum value, minimum value and step size for the values enter image description here

  4. Optimization To start optimization, click "Execute. Google chrome will start and will navigate to the chart doing scan over the selected parameters (while keeping the rest on their default value). It waits for a yellow label to change its data then parses its content (using OCR). Finally, it saves the parsed data into a csv and continues till all selected parameters and their combinations are scanned.

opti-mora's People

Contributors

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