Trading bot python github
This means for use to parametrise a trendline all we need are the start and end points whose x, y coordinates are in fact time, price. Open a terminal in the python-bittrex directory. An example Bitcoin buy order of 1 BTC along a trendline on the 1 hour chart looks like this.
The arguments p0 and p1 are the end points of the trendline that we get from the tradingview. I should warn you this is a real trading bot and will buy or sell cryptocurrencies automatically.
The programme will terminate automatically after a buy or sell order is fulfilled or the user closes the terminal. This means we can set a moving stoploss or buy a dip on an inclined support line automatically without supervision.
At present this only works on Bittrex. You must have Python 2. This will not work in Python 3 without modification. By default, this should already be installed on linux machines and Macs 2. Make sure to tick all options. Download python-bittrex API bindings from Github: Copy or download this script and make sure it is saved as trendlineTrader. If using Windows make sure the file extension is.
Finished, just make sure to save the file. USE This is a command line programme. There is no GUI. However it is relatively easy. Open your python console, e. Open a chart of the market you want to trade in tradingview. In your browser draw the trendline that you want to trade on.
You will need to enter the coordinates of the end points in the python script. In the terminal enter the following command all on one line: It allows you to set a margin of error either side of your trendline, e. Use a positive number to set the variance above the trendline. The arguments p0 and p1 are the end points of the trendline that we get from the tradingview.
I should warn you this is a real trading bot and will buy or sell cryptocurrencies automatically. The programme will terminate automatically after a buy or sell order is fulfilled or the user closes the terminal. This means we can set a moving stoploss or buy a dip on an inclined support line automatically without supervision.
At present this only works on Bittrex. You must have Python 2. This will not work in Python 3 without modification. By default, this should already be installed on linux machines and Macs 2. Make sure to tick all options. Download python-bittrex API bindings from Github: Copy or download this script and make sure it is saved as trendlineTrader. If using Windows make sure the file extension is.
Finished, just make sure to save the file. USE This is a command line programme. There is no GUI. However it is relatively easy.
Open your python console, e. Open a chart of the market you want to trade in tradingview. In your browser draw the trendline that you want to trade on. You will need to enter the coordinates of the end points in the python script. In the terminal enter the following command all on one line: It allows you to set a margin of error either side of your trendline, e. Use a positive number to set the variance above the trendline.
Running the script is just one line. For each interval, the script calculates your buy or sell price and automatically places an order for you. If the order is not filled during the interval, it cancels the order and recalculates a new target and then places a new order for the next interval.