• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A lightweight app for practicing your trading on Tradingview

demopic

Tradingview-trainer

tv-trainer is a lightweight application written in python using selenium and Tkinter, designed to work with tradingview.com to help users practice their trading on historical data.

Installation

tv-trainer comes in two forms, the executable version and the python version.

Python Version

Executable Version

How to Use

Getting Started

To launch the executable version, double click the app.exe after extracting the .zip. To launch the python version, run in a command line, in the app.py directory; python app.py. After the app luanches, a browswer window to tradingview.com's sign-in page will open. As of May 2019, you will need to have an account to access the replay function (accounts are free to create!). Sign in with your credentials and then navigate to your chart.

Once you have configured your chart to your liking, you are ready to start! Click the bar replay button in the top nav bar of the chart. Move the vertical red line to the time you wish to start practicing on the historical data and click. Next, move to the tv-trainer window. Click the ▮▶ next bar button. This will advance the chart 1 bar and get the information to the tv-trainer app. Keep in mind, the values you see in the tv-trainer app represent the close of the previous bar, values are only updated during user actions. You are now ready to place your orders!

Orders

There are two types of orders available with tv-trainer. The two most basic orders intrinsic to most exchanges. The limit order and the market order.

Market Order

To submit a simulated market order, ensure market is selected via radio-button near the top of the app. When you reach a point where you feel you wish to buy, click Buy. When you reach a point where you wish to sell, click Sell. Your order will instantly be executed, using simulated FIFO.

Limit Order

To submit a simulated limit order, ensure limit is selected via radio-button near the top of the app. Next, type in the limit price entry box the price of your limit order. You can also click last to auto-fill the last close, making it easier to quickly change the price. Once the price crosses or touches your limit order, the order will be executed at the limit price, using simulated FIFO.

FIFO

A more detailed explaination can be found here. FIFO stands for "First In First Out". This means orders are filled in the order they are submitted. For this app, since there are only the user orders, the best part of FIFO (in my humble opinion) has been simulated. Simply put, when you are long you are 100 APPL @ $100 for example. When you are short, you are -100 APPL @ $100. To close a short/long simply make your position = 0. Again, a more detailed explaination can be found here.

Exiting

Upon exiting, a file named trades.csv is created. This contains your trades, it can be easily viewed with excel or similar. When you exit, ensure both the chromedriver browser and tv-trainer window are closed. If you run into any issues please report them! https://github.com/Robswc/tradingview-trainer/issues

Common Errors and how to fix them

You can check out the wiki page: https://github.com/Robswc/tradingview-trainer/wiki/Errors

This will list and show you how to fix the more common errors.

About

That's about it! Thank you for trying my app if this helps you in anyway feel free to follow me on twitter for more tools and updates!

More Repositories

1

tradingview-webhooks-bot

a framework 🏗 for trading with tradingview webhooks!
Python
606
star
2

stratis

a python-based framework for creating and testing trading strategies
Python
35
star
3

tradingview-indicators

a repository for tradingview indicators I go over on my youtube channel
20
star
4

ubuntu-22-nvidia-suspend-fix-script

Fix for suspend not working on some instances of Ubuntu 22 w/Nvidia drivers
Shell
16
star
5

quickbase-json-api-client

Unofficial Quickbase JSON API wrapper for python. Provides objects and methods for querying and inserting records.
Python
13
star
6

tdameritrade-simple-api

Simple API for TD Ameritrade w/Python
Python
9
star
7

market-agent-sim

Agent-based market simulation, using various trading strategies.
Python
7
star
8

upreq

a small helper cli for python's requirements.txt
Go
6
star
9

bitmex-ranker

a tool to keep track of the bitmex leaderboards
Python
5
star
10

docker-essential-aliases

docker essential aliases (dea) makes working with docker just a little bit easier!
Go
4
star
11

hi-wonder-tank-chassis

Python
3
star
12

strategy-sandbox

A small tool designed to test variable targets in trading strategies
Python
2
star
13

nadocast-ui

an unofficial user interface for the nadocast project
Python
2
star
14

ssh-quick-config

Quickly and easily generates your SSH config file and handles ssh keys.
Shell
1
star
15

stratis-ui-legacy

a frontend, dynamic interface for Stratis
TypeScript
1
star
16

blocker

back and forward testing python framework
Python
1
star
17

orderex-api

The API used in the orderex application, in standalone form. Used to send API requests using multiple accounts, proxies and special options!
1
star
18

orderex

A single-line API/Tool for placing orders on multiple crypto-currency exchanges.
Python
1
star