top of page

Download

If you find this page useful, please consider donating by going to our donation page!

Step 1 

Setup a Tradingview account and sign up for any paid membership. This will allow our bot to communicate with the strategy via webhooks.

tv screenshot.png

Step 2

Create a free paper/real money trading account in Alpaca. 

alpaca login page.png

Step 3

Sign up up for a free google cloud account and start a new project in your console. (you can name it anything)

google cloud login.png

Step 4

In Alpaca, click on view, generate api keys, and save your api key and your secret key. (you will need them later)

alpaca api keys.png

Step 5

In your google cloud project, create a new function (you can name it anything) and select Python 3.10 as your runtime. Set the entry point as "trade_function"

cloud functionjs.png

Step 6

Create these three files and leave them blank for now:

​

main.py

config.py

requirements.txt

funciton in cloud.png

Step 7

Follow the Github link and paste each block of code in their respective location. (Use your api keys from before in config.py)

updated trade_function.png

Step 8

Lastly, run the function, paste the trigger url in your Tradingview webhook alert and paste the payload.json file into the message.

​

​

Congratulations, you just set up your first automated trading system!

TV TTT.png

What next?

The BrokerBot team suggests experimenting with many different strategies using paper money before using real money. More often than not, a strategy won't be viable forever and, as such, strategies should be continuously updated to better react to market conditions. With that said, happy trading!

bottom of page